Skip to content
This repository was archived by the owner on Mar 7, 2021. It is now read-only.

Commit 2a460fa

Browse files
committed
Make our c_types module public
1 parent 5666680 commit 2a460fa

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/lib.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use core::panic::PanicInfo;
77

88
mod allocator;
99
pub mod bindings;
10-
mod c_types;
10+
pub mod c_types;
1111
pub mod chrdev;
1212
mod error;
1313
pub mod filesystem;
@@ -19,14 +19,12 @@ pub mod user_ptr;
1919
pub use crate::error::{Error, KernelResult};
2020
pub use crate::types::{CStr, Mode};
2121

22-
pub type _InitResult = c_types::c_int;
23-
2422
#[macro_export]
2523
macro_rules! kernel_module {
2624
($module:ty, $($name:ident : $value:expr),*) => {
2725
static mut __MOD: Option<$module> = None;
2826
#[no_mangle]
29-
pub extern "C" fn init_module() -> $crate::_InitResult {
27+
pub extern "C" fn init_module() -> $crate::c_types::c_int {
3028
match <$module as $crate::KernelModule>::init() {
3129
Ok(m) => {
3230
unsafe {

0 commit comments

Comments
 (0)