summary refs log tree commit diff stats
path: root/src/internals.rs
diff options
context:
space:
mode:
authorSoniEx2 <endermoneymod@gmail.com>2018-08-12 10:45:24 -0300
committerSoniEx2 <endermoneymod@gmail.com>2018-08-12 10:45:24 -0300
commitea4fc42c0ddc9b4d97b587926a0b99167778bff0 (patch)
tree0362abf3d957a51b21e4a221a6a67cc3864e5bad /src/internals.rs
parent4c60c6022980357640d3e2afcfb29e9d84cddddb (diff)
maybe-working _attrs hooks?
Diffstat (limited to 'src/internals.rs')
-rw-r--r--src/internals.rs8
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),
 }