Skip to content

Instantly share code, notes, and snippets.

@jan-schreib
Created May 26, 2020 11:48
Show Gist options
  • Save jan-schreib/665611335dbcaa99349fec15c4dbba5c to your computer and use it in GitHub Desktop.
Save jan-schreib/665611335dbcaa99349fec15c4dbba5c to your computer and use it in GitHub Desktop.
Rust FFI Functionpointer
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