[][src]Type Definition paho_mqtt_sys::Persistence_put

type Persistence_put = Option<unsafe extern "C" fn(handle: *mut c_void, key: *mut c_char, bufcount: c_int, buffers: *mut *mut c_char, buflens: *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.