Function gnunet_sys::GNUNET_MQ_copy_handlers2 [−][src]
pub unsafe extern "C" fn GNUNET_MQ_copy_handlers2(
handlers: *const GNUNET_MQ_MessageHandler,
agpl_handler: GNUNET_MQ_MessageCallback,
agpl_cls: *mut c_void
) -> *mut GNUNET_MQ_MessageHandler
Copy an array of handlers, appending AGPL handler.
Useful if the array has been declared in local memory and needs to be persisted for future use.
@param handlers Array of handlers to be copied. Can be NULL (nothing done). @param agpl_handler function to call for AGPL handling @param agpl_cls closure for @a agpl_handler @return A newly allocated array of handlers. Needs to be freed with #GNUNET_free.