mosquitto-sys

Dependencies

clang
libmosquitto-dev

Demode code

```use std::os::raw::{cchar, cint, c_void};

use mosquittoio::{ mosquittoauthcheckpassword, mosquittoauthplugininit, mosquittoauthunpwdcheck, mosquittounpwdcheckcallback, MOSQERR_AUTH, };

[no_mangle]

pub extern "C" fn mosquittoauthplugininit( userdata: *mut *mut cvoid, opts: *const cchar, authcb: *mut mosquittoauthcheckpassword, unauthcb: *mut mosquittounpwdcheckcallback, ) -> cint { // Initialize your plugin here println!("Mosquitto authentication plugin initialized"); MOSQERR_SUCCESS } ```