26#ifndef GNUNET_SERVICE_MESSENGER_OPERATION_H 
   27#define GNUNET_SERVICE_MESSENGER_OPERATION_H 
static struct GNUNET_ARM_Operation * op
Current operation.
 
static uint32_t type
Type string converted to DNS type value.
 
struct GNUNET_MESSENGER_Operation * create_operation(const struct GNUNET_HashCode *hash)
Creates and allocates a new operation under a given hash.
 
enum GNUNET_GenericReturnValue stop_operation(struct GNUNET_MESSENGER_Operation *op)
Stops an active operation and resets its type to be GNUNET_MESSENGER_OP_UNKNOWN.
 
struct GNUNET_MESSENGER_Operation * load_operation(struct GNUNET_MESSENGER_OperationStore *store, const char *path)
Loads data from a configuration file at a selected path into a new allocated and created operation fo...
 
enum GNUNET_GenericReturnValue start_operation(struct GNUNET_MESSENGER_Operation *op, enum GNUNET_MESSENGER_OperationType type, struct GNUNET_MESSENGER_OperationStore *store, struct GNUNET_TIME_Relative delay)
Starts an inactive operation with a given delay in a specific operation store.
 
void save_operation(const struct GNUNET_MESSENGER_Operation *op, const char *path)
Saves data from an operation into a configuration file at a selected path which can be load to restor...
 
GNUNET_MESSENGER_OperationType
 
@ GNUNET_MESSENGER_OP_UNKNOWN
 
@ GNUNET_MESSENGER_OP_REQUEST
 
@ GNUNET_MESSENGER_OP_DELETE
 
@ GNUNET_MESSENGER_OP_MERGE
 
void destroy_operation(struct GNUNET_MESSENGER_Operation *op)
Destroys an operation and frees its memory fully.
 
API to schedule computations using continuation passing style.
 
Functions related to time.
 
GNUNET_GenericReturnValue
Named constants for return values.
 
enum GNUNET_MESSENGER_OperationType type
 
struct GNUNET_TIME_Absolute timestamp
 
struct GNUNET_MESSENGER_OperationStore * store
 
struct GNUNET_HashCode hash
 
struct GNUNET_SCHEDULER_Task * task
 
Entry in list of pending tasks.
 
Time for absolute times used by GNUnet, in microseconds.
 
Time for relative time used by GNUnet, in microseconds.