diff options
author | Christian Grothoff <christian@grothoff.org> | 2019-04-21 14:54:04 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2019-04-21 14:54:04 +0200 |
commit | 1c24355745a810d20b9fd7545631be6300d0b71c (patch) | |
tree | 11769eba5e038d1970a5f085f08ea4b2a7d4e15a /src/include | |
parent | fe3cc0e1a6f83c6ba4e0e1ec1185f1173ff16570 (diff) | |
download | gnunet-1c24355745a810d20b9fd7545631be6300d0b71c.tar.gz gnunet-1c24355745a810d20b9fd7545631be6300d0b71c.zip |
define constant
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/gnunet_peerstore_service.h | 30 |
1 files changed, 16 insertions, 14 deletions
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 @@ | |||
36 | #include "gnunet_util_lib.h" | 36 | #include "gnunet_util_lib.h" |
37 | 37 | ||
38 | #ifdef __cplusplus | 38 | #ifdef __cplusplus |
39 | extern "C" | 39 | extern "C" { |
40 | { | 40 | #if 0 /* keep Emacsens' auto-indent happy */ |
41 | #if 0 /* keep Emacsens' auto-indent happy */ | ||
42 | } | 41 | } |
43 | #endif | 42 | #endif |
44 | #endif | 43 | #endif |
@@ -54,6 +53,12 @@ extern "C" | |||
54 | */ | 53 | */ |
55 | #define GNUNET_PEERSTORE_TRANSPORT_HELLO_KEY "transport-peer-hello" | 54 | #define GNUNET_PEERSTORE_TRANSPORT_HELLO_KEY "transport-peer-hello" |
56 | 55 | ||
56 | /** | ||
57 | * Key used to store sender's monotonic time from backchannel | ||
58 | * messages. | ||
59 | */ | ||
60 | #define GNUNET_PEERSTORE_TRANSPORT_BACKCHANNEL_MONOTIME \ | ||
61 | "transport-backchannel-monotonic-time" | ||
57 | 62 | ||
58 | /** | 63 | /** |
59 | * Options for storing values in PEERSTORE | 64 | * Options for storing values in PEERSTORE |
@@ -134,9 +139,7 @@ struct GNUNET_PEERSTORE_Record | |||
134 | * @param cls closure | 139 | * @param cls closure |
135 | * @param success #GNUNET_OK or #GNUNET_SYSERR | 140 | * @param success #GNUNET_OK or #GNUNET_SYSERR |
136 | */ | 141 | */ |
137 | typedef void | 142 | typedef void (*GNUNET_PEERSTORE_Continuation) (void *cls, int success); |
138 | (*GNUNET_PEERSTORE_Continuation)(void *cls, | ||
139 | int success); | ||
140 | 143 | ||
141 | 144 | ||
142 | /** | 145 | /** |
@@ -146,10 +149,10 @@ typedef void | |||
146 | * @param record peerstore record information | 149 | * @param record peerstore record information |
147 | * @param emsg error message, or NULL if no errors | 150 | * @param emsg error message, or NULL if no errors |
148 | */ | 151 | */ |
149 | typedef void | 152 | typedef void (*GNUNET_PEERSTORE_Processor) ( |
150 | (*GNUNET_PEERSTORE_Processor) (void *cls, | 153 | void *cls, |
151 | const struct GNUNET_PEERSTORE_Record *record, | 154 | const struct GNUNET_PEERSTORE_Record *record, |
152 | const char *emsg); | 155 | const char *emsg); |
153 | 156 | ||
154 | 157 | ||
155 | /** | 158 | /** |
@@ -170,8 +173,7 @@ GNUNET_PEERSTORE_connect (const struct GNUNET_CONFIGURATION_Handle *cfg); | |||
170 | * @param sync_first send any pending STORE requests before disconnecting | 173 | * @param sync_first send any pending STORE requests before disconnecting |
171 | */ | 174 | */ |
172 | void | 175 | void |
173 | GNUNET_PEERSTORE_disconnect (struct GNUNET_PEERSTORE_Handle *h, | 176 | GNUNET_PEERSTORE_disconnect (struct GNUNET_PEERSTORE_Handle *h, int sync_first); |
174 | int sync_first); | ||
175 | 177 | ||
176 | 178 | ||
177 | /** | 179 | /** |
@@ -271,7 +273,7 @@ void | |||
271 | GNUNET_PEERSTORE_watch_cancel (struct GNUNET_PEERSTORE_WatchContext *wc); | 273 | GNUNET_PEERSTORE_watch_cancel (struct GNUNET_PEERSTORE_WatchContext *wc); |
272 | 274 | ||
273 | 275 | ||
274 | #if 0 /* keep Emacsens' auto-indent happy */ | 276 | #if 0 /* keep Emacsens' auto-indent happy */ |
275 | { | 277 | { |
276 | #endif | 278 | #endif |
277 | #ifdef __cplusplus | 279 | #ifdef __cplusplus |
@@ -280,4 +282,4 @@ GNUNET_PEERSTORE_watch_cancel (struct GNUNET_PEERSTORE_WatchContext *wc); | |||
280 | 282 | ||
281 | #endif | 283 | #endif |
282 | 284 | ||
283 | /** @} */ /* end of group */ | 285 | /** @} */ /* end of group */ |