From ea4fc42c0ddc9b4d97b587926a0b99167778bff0 Mon Sep 17 00:00:00 2001 From: SoniEx2 Date: Sun, 12 Aug 2018 10:45:24 -0300 Subject: maybe-working _attrs hooks? --- src/internals.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/internals.rs') 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 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 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), } -- cgit 1.4.1