From cd895073b6f44239ba65147783e0d305b1d49a64 Mon Sep 17 00:00:00 2001 From: SoniEx2 Date: Tue, 26 Apr 2022 22:55:06 -0300 Subject: Increase mocking --- src/internals.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/internals.rs') diff --git a/src/internals.rs b/src/internals.rs index dc93aaa..d1b714f 100644 --- a/src/internals.rs +++ b/src/internals.rs @@ -83,7 +83,7 @@ pub struct Ph { fd: libc::c_int, flags: libc::c_int, /* CALLBACK */ - callback: Option libc::c_int>, + callback: unsafe extern "C" fn(fd: libc::c_int, flags: libc::c_int, user_data: *mut libc::c_void) -> libc::c_int, userdata: *mut libc::c_void) -> *const HexchatHook, pub hexchat_unhook: unsafe extern "C" fn(ph: *mut HexchatPlugin, hook: *const HexchatHook) -> *const libc::c_void, -- cgit 1.4.1