Type Definition paho_mqtt3as_sys::Persistence_put [] [src]

type Persistence_put = Option<unsafe extern "C" fn(_: *mut c_void, _: *mut c_char, _: c_int, _: *mut *mut c_char, _: *mut c_int) -> c_int>;

@brief Put the specified data into the persistent store.

@param handle The handle pointer from a successful call to Persistence_open(). @param key A string used as the key for the data to be put in the store. The key is later used to retrieve data from the store with Persistence_get(). @param bufcount The number of buffers to write to the persistence store. @param buffers An array of pointers to the data buffers associated with this key. @param buflens An array of lengths of the data buffers. buflen[n] gives the length of buffer[n]. @return Return 0 if the function completes successfully, otherwise return ::MQTTCLIENT_PERSISTENCE_ERROR.