| ... | @@ -10,8 +10,10 @@ pub const FileProtocol = extern struct { | ... | @@ -10,8 +10,10 @@ pub const FileProtocol = extern struct { |
| 10 | _delete: extern fn (*const FileProtocol) Status, | 10 | _delete: extern fn (*const FileProtocol) Status, |
| 11 | _read: extern fn (*const FileProtocol, *usize, [*]u8) Status, | 11 | _read: extern fn (*const FileProtocol, *usize, [*]u8) Status, |
| 12 | _write: extern fn (*const FileProtocol, *usize, [*]const u8) Status, | 12 | _write: extern fn (*const FileProtocol, *usize, [*]const u8) Status, |
| 13 | _get_info: extern fn (*const FileProtocol, *Guid, *usize, *c_void) Status, | 13 | _get_position: extern fn (*const FileProtocol, *u64) Status, |
| 14 | _set_info: extern fn (*const FileProtocol, *Guid, usize, *const c_void) Status, | 14 | _set_position: extern fn (*const FileProtocol, *const u64) Status, |
| | 15 | _get_info: extern fn (*const FileProtocol, *align(8) const Guid, *const usize, [*]u8) Status, |
| | 16 | _set_info: extern fn (*const FileProtocol, *align(8) const Guid, usize, [*]const u8) Status, |
| 15 | _flush: extern fn (*const FileProtocol) Status, | 17 | _flush: extern fn (*const FileProtocol) Status, |
| 16 | | 18 | |
| 17 | pub fn open(self: *const FileProtocol, new_handle: **const FileProtocol, file_name: [*:0]const u16, open_mode: u64, attributes: u64) Status { | 19 | pub fn open(self: *const FileProtocol, new_handle: **const FileProtocol, file_name: [*:0]const u16, open_mode: u64, attributes: u64) Status { |
| ... | @@ -34,11 +36,11 @@ pub const FileProtocol = extern struct { | ... | @@ -34,11 +36,11 @@ pub const FileProtocol = extern struct { |
| 34 | return self._write(self, buffer_size, buffer); | 36 | return self._write(self, buffer_size, buffer); |
| 35 | } | 37 | } |
| 36 | | 38 | |
| 37 | pub fn get_info(self: *const FileProtocol, information_type: *Guid, buffer_size: *usize, buffer: *c_void) Status { | 39 | pub fn get_info(self: *const FileProtocol, information_type: *align(8) Guid, buffer_size: *usize, buffer: [*]u8) Status { |
| 38 | return self._get_info(self, information_type, buffer_size, buffer); | 40 | return self._get_info(self, information_type, buffer_size, buffer); |
| 39 | } | 41 | } |
| 40 | | 42 | |
| 41 | pub fn set_info(self: *const FileProtocol, information_type: *Guid, buffer_size: usize, buffer: *const c_void) Status { | 43 | pub fn set_info(self: *const FileProtocol, information_type: *align(8) Guid, buffer_size: usize, buffer: [*]const u8) Status { |
| 42 | return self._set_info(self, information_type, buffer_size, buffer); | 44 | return self._set_info(self, information_type, buffer_size, buffer); |
| 43 | } | 45 | } |
| 44 | | 46 | |