Function gnunet_sys::GNUNET_MQ_queue_for_callbacks[][src]

pub unsafe extern "C" fn GNUNET_MQ_queue_for_callbacks(
    send: GNUNET_MQ_SendImpl,
    destroy: GNUNET_MQ_DestroyImpl,
    cancel: GNUNET_MQ_CancelImpl,
    impl_state: *mut c_void,
    handlers: *const GNUNET_MQ_MessageHandler,
    error_handler: GNUNET_MQ_ErrorHandler,
    cls: *mut c_void
) -> *mut GNUNET_MQ_Handle

Create a message queue for the specified handlers.

@param send function the implements sending messages @param destroy function that implements destroying the queue @param cancel function that implements canceling a message @param impl_state for the queue, passed to @a send, @a destroy and @a cancel @param handlers array of message handlers @param error_handler handler for read and write errors @param cls closure for message handlers and error handler @return a new message queue