From 2c9979487f50ce3e6d38c7fa69f5ad5de4c60474 Mon Sep 17 00:00:00 2001
From: Jussi Viiri <[email protected]>
Date: Tue, 7 Jun 2022 21:00:19 +0300
Subject: [PATCH] Make Sched* struct fields public so they can be constructed
---
src/sched.rs | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/src/sched.rs b/src/sched.rs
index bc069e4..2114d40 100644
--- a/src/sched.rs
+++ b/src/sched.rs
@@ -8,25 +8,25 @@ use evl_sys::{
pub struct SchedAttrs(pub(crate) evl_sched_attrs);
pub struct SchedFifo {
- prio: i32,
+ pub prio: i32,
}
pub struct SchedRR {
- prio: i32,
+ pub prio: i32,
}
pub struct SchedWeak {
- prio: i32,
+ pub prio: i32,
}
pub struct SchedQuota {
- group: i32,
- prio: i32,
+ pub group: i32,
+ pub prio: i32,
}
pub struct SchedTP {
- part: i32,
- prio: i32,
+ pub part: i32,
+ pub prio: i32,
}
pub trait PolicyParam {
--
2.25.1