Remove the use of bytes in zbus signatures

This commit is contained in:
Luke D. Jones
2024-02-23 21:50:53 +13:00
parent 7613eded95
commit 96f281d789
11 changed files with 23 additions and 22 deletions

View File

@@ -180,7 +180,7 @@ impl From<CPUGovernor> for String {
}
#[typeshare]
#[repr(u8)]
#[repr(u32)]
#[derive(
Deserialize,
Serialize,
@@ -194,7 +194,7 @@ impl From<CPUGovernor> for String {
Clone,
Copy,
)]
#[zvariant(signature = "y")]
#[zvariant(signature = "u")]
pub enum CPUEPP {
#[default]
Default = 0,

View File

@@ -249,7 +249,7 @@ impl Display for GpuMode {
}
#[typeshare]
#[repr(u8)]
#[repr(u32)]
#[derive(
Deserialize,
Serialize,
@@ -266,7 +266,7 @@ impl Display for GpuMode {
Clone,
Copy,
)]
#[zvariant(signature = "y")]
#[zvariant(signature = "u")]
/// `throttle_thermal_policy` in asus_wmi
pub enum ThrottlePolicy {
#[default]