| ... | @@ -10,7 +10,7 @@ pub const SimpleTextInputExProtocol = extern struct { | ... | @@ -10,7 +10,7 @@ pub const SimpleTextInputExProtocol = extern struct { |
| 10 | _read_key_stroke_ex: std.meta.FnPtr(fn (*const SimpleTextInputExProtocol, *KeyData) callconv(.C) Status), | 10 | _read_key_stroke_ex: std.meta.FnPtr(fn (*const SimpleTextInputExProtocol, *KeyData) callconv(.C) Status), |
| 11 | wait_for_key_ex: Event, | 11 | wait_for_key_ex: Event, |
| 12 | _set_state: std.meta.FnPtr(fn (*const SimpleTextInputExProtocol, *const u8) callconv(.C) Status), | 12 | _set_state: std.meta.FnPtr(fn (*const SimpleTextInputExProtocol, *const u8) callconv(.C) Status), |
| 13 | _register_key_notify: std.meta.FnPtr(fn (*const SimpleTextInputExProtocol, *const KeyData, fn (*const KeyData) callconv(.C) usize, **anyopaque) callconv(.C) Status), | 13 | _register_key_notify: std.meta.FnPtr(fn (*const SimpleTextInputExProtocol, *const KeyData, std.meta.FnPtr(fn (*const KeyData) callconv(.C) usize), **anyopaque) callconv(.C) Status), |
| 14 | _unregister_key_notify: std.meta.FnPtr(fn (*const SimpleTextInputExProtocol, *const anyopaque) callconv(.C) Status), | 14 | _unregister_key_notify: std.meta.FnPtr(fn (*const SimpleTextInputExProtocol, *const anyopaque) callconv(.C) Status), |
| 15 | | 15 | |
| 16 | /// Resets the input device hardware. | 16 | /// Resets the input device hardware. |
| ... | @@ -29,7 +29,7 @@ pub const SimpleTextInputExProtocol = extern struct { | ... | @@ -29,7 +29,7 @@ pub const SimpleTextInputExProtocol = extern struct { |
| 29 | } | 29 | } |
| 30 | | 30 | |
| 31 | /// Register a notification function for a particular keystroke for the input device. | 31 | /// Register a notification function for a particular keystroke for the input device. |
| 32 | pub fn registerKeyNotify(self: *const SimpleTextInputExProtocol, key_data: *const KeyData, notify: fn (*const KeyData) callconv(.C) usize, handle: **anyopaque) Status { | 32 | pub fn registerKeyNotify(self: *const SimpleTextInputExProtocol, key_data: *const KeyData, notify: std.meta.FnPtr(fn (*const KeyData) callconv(.C) usize), handle: **anyopaque) Status { |
| 33 | return self._register_key_notify(self, key_data, notify, handle); | 33 | return self._register_key_notify(self, key_data, notify, handle); |
| 34 | } | 34 | } |
| 35 | | 35 | |