diff options
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/gnunet_core_service.h | 2 | ||||
-rw-r--r-- | src/include/gnunet_datacache_lib.h | 2 | ||||
-rw-r--r-- | src/include/gnunet_datacache_plugin.h | 2 | ||||
-rw-r--r-- | src/include/gnunet_getopt_lib.h | 17 | ||||
-rw-r--r-- | src/include/gnunet_protocols.h | 6 |
5 files changed, 28 insertions, 1 deletions
diff --git a/src/include/gnunet_core_service.h b/src/include/gnunet_core_service.h index ace223c11..77af465ce 100644 --- a/src/include/gnunet_core_service.h +++ b/src/include/gnunet_core_service.h | |||
@@ -220,7 +220,7 @@ enum GNUNET_CORE_KxState | |||
220 | /** | 220 | /** |
221 | * No handshake yet. | 221 | * No handshake yet. |
222 | */ | 222 | */ |
223 | GNUNET_CORE_KX_STATE_DOWN, | 223 | GNUNET_CORE_KX_STATE_DOWN = 0, |
224 | 224 | ||
225 | /** | 225 | /** |
226 | * We've sent our session key. | 226 | * We've sent our session key. |
diff --git a/src/include/gnunet_datacache_lib.h b/src/include/gnunet_datacache_lib.h index 39a312b17..05ac779d6 100644 --- a/src/include/gnunet_datacache_lib.h +++ b/src/include/gnunet_datacache_lib.h | |||
@@ -105,6 +105,7 @@ typedef int | |||
105 | * | 105 | * |
106 | * @param h handle to the datacache | 106 | * @param h handle to the datacache |
107 | * @param key key to store data under | 107 | * @param key key to store data under |
108 | * @param how close is @a key to our pid? | ||
108 | * @param data_size number of bytes in @a data | 109 | * @param data_size number of bytes in @a data |
109 | * @param data data to store | 110 | * @param data data to store |
110 | * @param type type of the value | 111 | * @param type type of the value |
@@ -116,6 +117,7 @@ typedef int | |||
116 | int | 117 | int |
117 | GNUNET_DATACACHE_put (struct GNUNET_DATACACHE_Handle *h, | 118 | GNUNET_DATACACHE_put (struct GNUNET_DATACACHE_Handle *h, |
118 | const struct GNUNET_HashCode *key, | 119 | const struct GNUNET_HashCode *key, |
120 | uint32_t xor_distance, | ||
119 | size_t data_size, | 121 | size_t data_size, |
120 | const char *data, | 122 | const char *data, |
121 | enum GNUNET_BLOCK_Type type, | 123 | enum GNUNET_BLOCK_Type type, |
diff --git a/src/include/gnunet_datacache_plugin.h b/src/include/gnunet_datacache_plugin.h index 166c7bc3b..726108c64 100644 --- a/src/include/gnunet_datacache_plugin.h +++ b/src/include/gnunet_datacache_plugin.h | |||
@@ -109,6 +109,7 @@ struct GNUNET_DATACACHE_PluginFunctions | |||
109 | * | 109 | * |
110 | * @param cls closure (internal context for the plugin) | 110 | * @param cls closure (internal context for the plugin) |
111 | * @param key key to store the value under | 111 | * @param key key to store the value under |
112 | * @param xor_distance how close is @a key to our PID? | ||
112 | * @param size number of bytes in @a data | 113 | * @param size number of bytes in @a data |
113 | * @param data data to store | 114 | * @param data data to store |
114 | * @param type type of the value | 115 | * @param type type of the value |
@@ -119,6 +120,7 @@ struct GNUNET_DATACACHE_PluginFunctions | |||
119 | */ | 120 | */ |
120 | ssize_t (*put) (void *cls, | 121 | ssize_t (*put) (void *cls, |
121 | const struct GNUNET_HashCode *key, | 122 | const struct GNUNET_HashCode *key, |
123 | uint32_t xor_distance, | ||
122 | size_t size, | 124 | size_t size, |
123 | const char *data, | 125 | const char *data, |
124 | enum GNUNET_BLOCK_Type type, | 126 | enum GNUNET_BLOCK_Type type, |
diff --git a/src/include/gnunet_getopt_lib.h b/src/include/gnunet_getopt_lib.h index e38925f14..88c7825d0 100644 --- a/src/include/gnunet_getopt_lib.h +++ b/src/include/gnunet_getopt_lib.h | |||
@@ -287,6 +287,23 @@ GNUNET_GETOPT_option_uint (char shortName, | |||
287 | 287 | ||
288 | 288 | ||
289 | /** | 289 | /** |
290 | * Allow user to specify an uint16_t. | ||
291 | * | ||
292 | * @param shortName short name of the option | ||
293 | * @param name long name of the option | ||
294 | * @param argumentHelp help text for the option argument | ||
295 | * @param description long help text for the option | ||
296 | * @param[out] val set to the value specified at the command line | ||
297 | */ | ||
298 | struct GNUNET_GETOPT_CommandLineOption | ||
299 | GNUNET_GETOPT_option_uint16 (char shortName, | ||
300 | const char *name, | ||
301 | const char *argumentHelp, | ||
302 | const char *description, | ||
303 | uint16_t *val); | ||
304 | |||
305 | |||
306 | /** | ||
290 | * Allow user to specify an `unsigned long long`. | 307 | * Allow user to specify an `unsigned long long`. |
291 | * | 308 | * |
292 | * @param shortName short name of the option | 309 | * @param shortName short name of the option |
diff --git a/src/include/gnunet_protocols.h b/src/include/gnunet_protocols.h index c5e45d5c1..7040f2cbf 100644 --- a/src/include/gnunet_protocols.h +++ b/src/include/gnunet_protocols.h | |||
@@ -252,6 +252,12 @@ extern "C" | |||
252 | #define GNUNET_MESSAGE_TYPE_DV_BOX 53 | 252 | #define GNUNET_MESSAGE_TYPE_DV_BOX 53 |
253 | 253 | ||
254 | 254 | ||
255 | /** | ||
256 | * Experimental message type. | ||
257 | */ | ||
258 | #define GNUNET_MESSAGE_TYPE_TRANSPORT_XU_MESSAGE 55 | ||
259 | |||
260 | |||
255 | /******************************************************************************* | 261 | /******************************************************************************* |
256 | * Transport-UDP message types | 262 | * Transport-UDP message types |
257 | ******************************************************************************/ | 263 | ******************************************************************************/ |