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 52abf3a commit 1b00ae7
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
1 change: 0 additions & 1 deletion Cargo.toml
Expand Up @@ -11,4 +11,3 @@ license = "GPL-3.0-only"

[dependencies]
xenctrl-sys = { git = "https://github.com/Wenzel/xenctrl-sys.git" }
libc = "0.2.58"
4 changes: 3 additions & 1 deletion rustfmt.toml
@@ -1,4 +1,6 @@
edition = "2018"
indent_style = "block"
format_strings = true
merge_imports = true
merge_imports = true
reorder_imports = true
wrap_comments = true
10 changes: 10 additions & 0 deletions src/consts.rs
@@ -0,0 +1,10 @@
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 1b00ae7

Please sign in to comment.