[][src]Type Definition paho_mqtt_sys::MQTTPersistence_afterRead

type MQTTPersistence_afterRead = Option<unsafe extern "C" fn(context: *mut c_void, buffer: *mut *mut c_char, buflen: *mut c_int) -> c_int>;

A callback which is invoked just after a read from persistence. This can be used to transform the data, for instance to decrypt it. @param context The context as set in ::MQTTAsync_setAfterPersistenceRead @param buffer The address of a pointer to a buffer. @param buflen The address of an int that is the length of the buffer. @return Return 0 if the function completes successfully, otherwise non 0.