From 1c24355745a810d20b9fd7545631be6300d0b71c Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 21 Apr 2019 14:54:04 +0200 Subject: define constant --- src/include/gnunet_peerstore_service.h | 30 ++++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) (limited to 'src/include/gnunet_peerstore_service.h') diff --git a/src/include/gnunet_peerstore_service.h b/src/include/gnunet_peerstore_service.h index d9acf0576..b20c1f3c7 100644 --- a/src/include/gnunet_peerstore_service.h +++ b/src/include/gnunet_peerstore_service.h @@ -36,9 +36,8 @@ #include "gnunet_util_lib.h" #ifdef __cplusplus -extern "C" -{ -#if 0 /* keep Emacsens' auto-indent happy */ +extern "C" { +#if 0 /* keep Emacsens' auto-indent happy */ } #endif #endif @@ -54,6 +53,12 @@ extern "C" */ #define GNUNET_PEERSTORE_TRANSPORT_HELLO_KEY "transport-peer-hello" +/** + * Key used to store sender's monotonic time from backchannel + * messages. + */ +#define GNUNET_PEERSTORE_TRANSPORT_BACKCHANNEL_MONOTIME \ + "transport-backchannel-monotonic-time" /** * Options for storing values in PEERSTORE @@ -134,9 +139,7 @@ struct GNUNET_PEERSTORE_Record * @param cls closure * @param success #GNUNET_OK or #GNUNET_SYSERR */ -typedef void -(*GNUNET_PEERSTORE_Continuation)(void *cls, - int success); +typedef void (*GNUNET_PEERSTORE_Continuation) (void *cls, int success); /** @@ -146,10 +149,10 @@ typedef void * @param record peerstore record information * @param emsg error message, or NULL if no errors */ -typedef void -(*GNUNET_PEERSTORE_Processor) (void *cls, - const struct GNUNET_PEERSTORE_Record *record, - const char *emsg); +typedef void (*GNUNET_PEERSTORE_Processor) ( + void *cls, + const struct GNUNET_PEERSTORE_Record *record, + const char *emsg); /** @@ -170,8 +173,7 @@ GNUNET_PEERSTORE_connect (const struct GNUNET_CONFIGURATION_Handle *cfg); * @param sync_first send any pending STORE requests before disconnecting */ void -GNUNET_PEERSTORE_disconnect (struct GNUNET_PEERSTORE_Handle *h, - int sync_first); +GNUNET_PEERSTORE_disconnect (struct GNUNET_PEERSTORE_Handle *h, int sync_first); /** @@ -271,7 +273,7 @@ void GNUNET_PEERSTORE_watch_cancel (struct GNUNET_PEERSTORE_WatchContext *wc); -#if 0 /* keep Emacsens' auto-indent happy */ +#if 0 /* keep Emacsens' auto-indent happy */ { #endif #ifdef __cplusplus @@ -280,4 +282,4 @@ GNUNET_PEERSTORE_watch_cancel (struct GNUNET_PEERSTORE_WatchContext *wc); #endif -/** @} */ /* end of group */ +/** @} */ /* end of group */ -- cgit v1.2.3