Created
May 26, 2020 11:48
-
-
Save jan-schreib/665611335dbcaa99349fec15c4dbba5c to your computer and use it in GitHub Desktop.
Rust FFI Functionpointer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extern "C" { | |
pub fn mosquitto_message_callback_set( | |
mosq: *mut mosquitto, | |
on_message: ::std::option::Option< | |
unsafe extern "C" fn( | |
arg1: *mut mosquitto, | |
arg2: *mut ::std::os::raw::c_void, | |
arg3: *const mosquitto_message, | |
), | |
>, | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment