Function gnunet_sys::GNUNET_OP_add[][src]

pub unsafe extern "C" fn GNUNET_OP_add(
    h: *mut GNUNET_OP_Handle,
    result_cb: GNUNET_ResultCallback,
    cls: *mut c_void,
    ctx: *mut c_void
) -> u64

Add a new operation.

@param h Operations handle. @param result_cb Function to call with the result of the operation. @param cls Closure for @a result_cb. @param ctx User context.

@return ID of the new operation.