26#ifndef GNUNET_SERVICE_MESSENGER_SUBSCRIPTION_H
27#define GNUNET_SERVICE_MESSENGER_SUBSCRIPTION_H
static uint64_t timestamp(void)
Get current timestamp.
void update_subscription(struct GNUNET_MESSENGER_Subscription *subscribtion, struct GNUNET_TIME_Absolute timestamp, struct GNUNET_TIME_Relative duration)
enum GNUNET_GenericReturnValue has_subscription_of_timestamp(const struct GNUNET_MESSENGER_Subscription *subscribtion, struct GNUNET_TIME_Absolute timestamp)
void update_subscription_timing(struct GNUNET_MESSENGER_Subscription *subscribtion)
const struct GNUNET_ShortHashCode * get_subscription_discourse(const struct GNUNET_MESSENGER_Subscription *subscribtion)
void destroy_subscription(struct GNUNET_MESSENGER_Subscription *subscribtion)
struct GNUNET_MESSENGER_Subscription * create_subscription(struct GNUNET_MESSENGER_SrvRoom *room, struct GNUNET_MESSENGER_Member *member, const struct GNUNET_ShortHashCode *discourse, struct GNUNET_TIME_Absolute timestamp, struct GNUNET_TIME_Relative duration)
static struct GNUNET_TIME_Relative duration
Option '-d': duration of the mapping.
GNUNET_GenericReturnValue
Named constants for return values.
struct GNUNET_MESSENGER_Member * member
struct GNUNET_SCHEDULER_Task * task
struct GNUNET_TIME_Absolute start
struct GNUNET_TIME_Absolute end
struct GNUNET_MESSENGER_SrvRoom * room
struct GNUNET_ShortHashCode discourse
Entry in list of pending tasks.
Time for absolute times used by GNUnet, in microseconds.
Time for relative time used by GNUnet, in microseconds.