From b2be734b53e74caf087f0d112b432fcbeb1b72e9 Mon Sep 17 00:00:00 2001 From: SoniEx2 Date: Sat, 31 Mar 2018 11:31:52 -0300 Subject: Version 0.2.1 --- src/internals.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/internals.rs') diff --git a/src/internals.rs b/src/internals.rs index 71ac93f..2a8febc 100644 --- a/src/internals.rs +++ b/src/internals.rs @@ -66,18 +66,18 @@ 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, user_data: *mut libc::c_void) -> libc::c_int, userdata: *mut libc::c_void) -> *const HexchatHook, pub hexchat_hook_print: 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, user_data: *mut libc::c_void) -> libc::c_int, userdata: *mut libc::c_void) -> *const HexchatHook, pub hexchat_hook_timer: unsafe extern "C" fn(ph: *mut HexchatPlugin, timeout: libc::c_int, /* CALLBACK */ - callback: Option libc::c_int>, + callback: unsafe extern "C" fn(user_data: *mut libc::c_void) -> libc::c_int, userdata: *mut libc::c_void) -> *const HexchatHook, pub hexchat_hook_fd: unsafe extern "C" fn(ph: *mut HexchatPlugin, fd: libc::c_int, -- cgit 1.4.1