pomp_ctx_new

Function pomp_ctx_new 

Source
pub unsafe extern "C" fn pomp_ctx_new(
    cb: pomp_event_cb_t,
    userdata: *mut c_void,
) -> *mut pomp_ctx
Expand description

Create a new context structure. @param cb : function to be called when connection/disconnection/message events occur. @param userdata : user data to give in cb. @return context structure or NULL in case of error.