@@ -242,8 +242,8 @@ pub struct Struct_Unnamed11 {
242242 pub connectTimeout : :: libc:: c_int ,
243243 pub retryInterval : :: libc:: c_int ,
244244 pub ssl : * mut MQTTAsync_SSLOptions ,
245- pub onSuccess : * mut :: std:: option:: Option < extern "C" fn ( context : * const :: libc :: c_void , response : * const MQTTAsync_successData ) -> ( ) > ,
246- pub onFailure : * mut :: std:: option:: Option < extern "C" fn ( context : * const :: libc :: c_void , response : * const MQTTAsync_failureData ) -> ( ) > ,
245+ pub onSuccess : :: std:: option:: Option < MQTTAsync_onSuccess > ,
246+ pub onFailure : :: std:: option:: Option < MQTTAsync_onFailure > ,
247247 pub context : * mut :: libc:: c_void ,
248248 pub serverURIcount : :: libc:: c_int ,
249249 pub serverURIs : * const * mut :: libc:: c_char ,
@@ -301,16 +301,9 @@ pub type MQTTAsync_nameValue = Struct_Unnamed13;
301301extern "C" {
302302 pub fn MQTTAsync_setCallbacks ( handle : MQTTAsync ,
303303 context : * mut :: libc:: c_void ,
304- cl :
305- * mut :: std:: option:: Option < extern "C" fn ( context : * const :: libc:: c_void , cause : * const :: libc:: c_char )
306- -> ( ) > ,
307- ma :
308- * mut :: std:: option:: Option < extern "C" fn ( context : * const :: libc:: c_void , topicName : * const :: libc:: c_char , topicLen : :: libc:: c_int , message : * const MQTTAsync_message )
309- ->
310- :: libc:: c_int > ,
311- dc :
312- * mut :: std:: option:: Option < extern "C" fn ( context : * const :: libc:: c_void , token : MQTTAsync_token )
313- -> ( ) > )
304+ cl : :: std:: option:: Option < MQTTAsync_connectionLost > ,
305+ ma : :: std:: option:: Option < MQTTAsync_messageArrived > ,
306+ dc : :: std:: option:: Option < MQTTAsync_deliveryComplete > )
314307 -> :: libc:: c_int ;
315308 pub fn MQTTAsync_create ( handle : * mut MQTTAsync ,
316309 serverURI : * const :: libc:: c_char ,
0 commit comments