Skip to content

Commit

Permalink
reexport constants
Browse files Browse the repository at this point in the history
  • Loading branch information
tathanhdinh committed Jul 6, 2019
1 parent cab0306 commit 6d1cb29
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/consts.rs
@@ -0,0 +1,11 @@
pub const PAGE_SHIFT: u32 = xenctrl_sys::XC_PAGE_SHIFT;
pub const PAGE_SIZE: u32 = xenctrl_sys::XC_PAGE_SIZE;
pub const PAGE_MASK: i32 = xenctrl_sys::XC_PAGE_MASK;

pub const CORE_MAGIC: u32 = xenctrl_sys::XC_CORE_MAGIC;
pub const CORE_MAGIC_HVM: u32 = xenctrl_sys::XC_CORE_MAGIC_HVM;

pub const CPUPOOL_POOLID_ANY: u32 = xenctrl_sys::XC_CPUPOOL_POOLID_ANY;

pub const MAX_ERROR_MSG_LEN: u32 = xenctrl_sys::XC_MAX_ERROR_MSG_LEN;

1 change: 1 addition & 0 deletions src/lib.rs
@@ -1,5 +1,6 @@
pub mod error;
pub mod support;
pub mod consts;

#[macro_use]
mod macros;
Expand Down

0 comments on commit 6d1cb29

Please sign in to comment.