| ... | ... | @@ -11,9 +11,9 @@ extern "c" fn _errnop() *c_int; |
| 11 | 11 | |
| 12 | 12 | pub const _errno = _errnop; |
| 13 | 13 | |
| 14 | | pub extern "c" fn find_directory(which: c_int, volume: i32, createIt: bool, path_ptr: [*]u8, length: i32) status_t; |
| 14 | pub extern "c" fn find_directory(which: directory_which, volume: i32, createIt: bool, path_ptr: [*]u8, length: i32) status_t; |
| 15 | 15 | |
| 16 | | pub extern "c" fn find_path(codePointer: *const u8, baseDirectory: c_int, subPath: [*:0]const u8, pathBuffer: [*:0]u8, bufferSize: usize) status_t; |
| 16 | pub extern "c" fn find_path(codePointer: *const u8, baseDirectory: path_base_directory, subPath: [*:0]const u8, pathBuffer: [*:0]u8, bufferSize: usize) status_t; |
| 17 | 17 | |
| 18 | 18 | pub extern "c" fn find_thread(thread_name: ?*anyopaque) i32; |
| 19 | 19 | |
| ... | ... | @@ -1024,6 +1024,13 @@ pub const directory_which = enum(c_int) { |
| 1024 | 1024 | _, |
| 1025 | 1025 | }; |
| 1026 | 1026 | |
| 1027 | // TODO fill out if needed |
| 1028 | pub const path_base_directory = enum(c_int) { |
| 1029 | B_FIND_PATH_IMAGE_PATH = 1000, |
| 1030 | }; |
| 1031 | |
| 1032 | pub const B_APP_IMAGE_SYMBOL = null; |
| 1033 | |
| 1027 | 1034 | pub const cc_t = u8; |
| 1028 | 1035 | pub const speed_t = u8; |
| 1029 | 1036 | pub const tcflag_t = u32; |