Skip to content

Commit 6d1cb29

Browse files
committed
reexport constants
1 parent cab0306 commit 6d1cb29

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

src/consts.rs

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
pub const PAGE_SHIFT: u32 = xenctrl_sys::XC_PAGE_SHIFT;
2+
pub const PAGE_SIZE: u32 = xenctrl_sys::XC_PAGE_SIZE;
3+
pub const PAGE_MASK: i32 = xenctrl_sys::XC_PAGE_MASK;
4+
5+
pub const CORE_MAGIC: u32 = xenctrl_sys::XC_CORE_MAGIC;
6+
pub const CORE_MAGIC_HVM: u32 = xenctrl_sys::XC_CORE_MAGIC_HVM;
7+
8+
pub const CPUPOOL_POOLID_ANY: u32 = xenctrl_sys::XC_CPUPOOL_POOLID_ANY;
9+
10+
pub const MAX_ERROR_MSG_LEN: u32 = xenctrl_sys::XC_MAX_ERROR_MSG_LEN;
11+

src/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
pub mod error;
22
pub mod support;
3+
pub mod consts;
34

45
#[macro_use]
56
mod macros;

0 commit comments

Comments
 (0)