diff options
Diffstat (limited to 'src/internals.rs')
-rw-r--r-- | src/internals.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/internals.rs b/src/internals.rs index 2a8febc..1975182 100644 --- a/src/internals.rs +++ b/src/internals.rs @@ -48,7 +48,7 @@ pub enum PluginGuiHandle { #[repr(C)] pub struct HexchatEventAttrs { - server_time_utc: libc::time_t, + pub server_time_utc: libc::time_t, } pub type HexchatPlugin = Ph; @@ -181,17 +181,17 @@ pub struct Ph { name: *const libc::c_char, pri: libc::c_int, /* CALLBACK */ - callback: Option<unsafe extern "C" fn(word: *const *const libc::c_char, word_eol: *const *const libc::c_char, attrs: *const HexchatEventAttrs, user_data: *mut libc::c_void) -> libc::c_int>, + callback: unsafe extern "C" fn(word: *const *const libc::c_char, word_eol: *const *const libc::c_char, attrs: *const HexchatEventAttrs, user_data: *mut libc::c_void) -> libc::c_int, userdata: *mut libc::c_void) -> *const HexchatHook, pub hexchat_hook_print_attrs: unsafe extern "C" fn(ph: *mut HexchatPlugin, name: *const libc::c_char, pri: libc::c_int, /* CALLBACK */ - callback: Option<unsafe extern "C" fn(word: *const *const libc::c_char, attrs: *const HexchatEventAttrs, user_data: *mut libc::c_void) -> libc::c_int>, + callback: unsafe extern "C" fn(word: *const *const libc::c_char, attrs: *const HexchatEventAttrs, user_data: *mut libc::c_void) -> libc::c_int, userdata: *mut libc::c_void) -> *const HexchatHook, pub hexchat_emit_print_attrs: unsafe extern "C" fn(ph: *mut HexchatPlugin, attrs: *const HexchatEventAttrs, event_name: *const libc::c_char, ...) -> libc::c_int, pub hexchat_event_attrs_create: unsafe extern "C" fn(ph: *mut HexchatPlugin) -> *mut HexchatEventAttrs, pub hexchat_event_attrs_free: unsafe extern "C" fn(ph: *mut HexchatPlugin, - attrs: *const HexchatEventAttrs), + attrs: *mut HexchatEventAttrs), } |