26 #ifndef GNUNET_SERVICE_MESSENGER_OPERATION_H
27 #define GNUNET_SERVICE_MESSENGER_OPERATION_H
static struct GNUNET_ARM_Operation * op
Current operation.
static struct GNUNET_TIME_Relative delay
When should dkg communication start?
int 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.
int 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...
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.
struct GNUNET_MESSENGER_Operation * create_operation(const struct GNUNET_HashCode *hash)
Creates and allocates a new operation under a given hash.
API to schedule computations using continuation passing style.
Functions related to time.
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.
enum GNUNET_TESTBED_UnderlayLinkModelType type
the type of this model