21#if !defined (__GNUNET_UTIL_LIB_H_INSIDE__) 
   22#error "Only <gnunet_util_lib.h> can be included directly." 
   45struct GNUNET_OP_Handle;
 
   51struct GNUNET_OP_Handle *
 
 static struct GNUNET_ARM_Handle * h
Connection with ARM.
 
static char * data
The data to insert into the dht.
 
static struct GNUNET_FS_Handle * ctx
 
static size_t data_size
Number of bytes in data.
 
uint64_t GNUNET_OP_get_next_id(struct GNUNET_OP_Handle *h)
Get a unique operation ID to distinguish between asynchronous requests.
 
int GNUNET_OP_result(struct GNUNET_OP_Handle *h, uint64_t op_id, int64_t result_code, const void *data, uint16_t data_size, void **ctx)
Call the result callback of an operation and remove it.
 
void(* GNUNET_ResultCallback)(void *cls, int64_t result_code, const void *data, uint16_t data_size)
Function called with the result of an asynchronous operation.
 
int GNUNET_OP_get(struct GNUNET_OP_Handle *h, uint64_t op_id, GNUNET_ResultCallback *result_cb, void **cls, void **ctx)
Find operation by ID.
 
int GNUNET_OP_remove(struct GNUNET_OP_Handle *h, uint64_t op_id)
Remove / cancel an operation.
 
void GNUNET_OP_destroy(struct GNUNET_OP_Handle *h)
Destroy operations handle.
 
uint64_t GNUNET_OP_add(struct GNUNET_OP_Handle *h, GNUNET_ResultCallback result_cb, void *cls, void *ctx)
Add a new operation.
 
struct GNUNET_OP_Handle * GNUNET_OP_create()
Create new operations handle.