diff options
author | Gabor X Toth <*@tg-x.net> | 2013-08-27 07:29:52 +0000 |
---|---|---|
committer | Gabor X Toth <*@tg-x.net> | 2013-08-27 07:29:52 +0000 |
commit | d8ab7f76a1a9db992bc4295d1fddc0d1b324b55b (patch) | |
tree | 70e8ae8117f415a76cc968f3c717ef3203481872 | |
parent | 5a4c0bfabee2d251b31a7279f3bf6f81065442ce (diff) | |
download | gnunet-d8ab7f76a1a9db992bc4295d1fddc0d1b324b55b.tar.gz gnunet-d8ab7f76a1a9db992bc4295d1fddc0d1b324b55b.zip |
multicast/psyc/psycstore api: fix typos / type names
-rw-r--r-- | src/include/gnunet_env_lib.h | 34 | ||||
-rw-r--r-- | src/include/gnunet_multicast_service.h | 14 | ||||
-rw-r--r-- | src/include/gnunet_psyc_service.h | 8 | ||||
-rw-r--r-- | src/include/gnunet_psycstore_service.h | 4 |
4 files changed, 44 insertions, 16 deletions
diff --git a/src/include/gnunet_env_lib.h b/src/include/gnunet_env_lib.h index e086882ed..42d9590d5 100644 --- a/src/include/gnunet_env_lib.h +++ b/src/include/gnunet_env_lib.h | |||
@@ -26,6 +26,18 @@ | |||
26 | */ | 26 | */ |
27 | 27 | ||
28 | 28 | ||
29 | #ifndef GNUNET_ENV_LIB_H | ||
30 | #define GNUNET_ENV_LIB_H | ||
31 | |||
32 | #ifdef __cplusplus | ||
33 | extern "C" | ||
34 | { | ||
35 | #if 0 /* keep Emacsens' auto-indent happy */ | ||
36 | } | ||
37 | #endif | ||
38 | #endif | ||
39 | |||
40 | |||
29 | /** | 41 | /** |
30 | * Possible operations on PSYC state (persistent) and transient variables (per message). | 42 | * Possible operations on PSYC state (persistent) and transient variables (per message). |
31 | */ | 43 | */ |
@@ -85,7 +97,7 @@ struct GNUNET_ENV_Modifier { | |||
85 | /** | 97 | /** |
86 | * State operation. | 98 | * State operation. |
87 | */ | 99 | */ |
88 | GNUNET_ENV_Operator oper; | 100 | enum GNUNET_ENV_Operator oper; |
89 | 101 | ||
90 | /** | 102 | /** |
91 | * Variable name. | 103 | * Variable name. |
@@ -213,7 +225,7 @@ GNUNET_ENV_value_to_number (size_t size, const void *value, int64_t *number); | |||
213 | * @return #GNUNET_OK on success, #GNUNET_SYSERR if an error occurred (e.g. the value is invalid). | 225 | * @return #GNUNET_OK on success, #GNUNET_SYSERR if an error occurred (e.g. the value is invalid). |
214 | */ | 226 | */ |
215 | int | 227 | int |
216 | GNUNET_ENV_value_to_list (size_t size, const void *value, GNUNET_CONTAINER_SList **list); | 228 | GNUNET_ENV_value_to_list (size_t size, const void *value, struct GNUNET_CONTAINER_SList **list); |
217 | 229 | ||
218 | 230 | ||
219 | /** | 231 | /** |
@@ -226,7 +238,7 @@ GNUNET_ENV_value_to_list (size_t size, const void *value, GNUNET_CONTAINER_SList | |||
226 | * @return #GNUNET_OK on success, #GNUNET_SYSERR if an error occurred (e.g. the value is invalid). | 238 | * @return #GNUNET_OK on success, #GNUNET_SYSERR if an error occurred (e.g. the value is invalid). |
227 | */ | 239 | */ |
228 | int | 240 | int |
229 | GNUNET_ENV_value_to_dict (size_t size, const void *value, GNUNET_CONTAINER_MultiHashMap **dict); | 241 | GNUNET_ENV_value_to_dict (size_t size, const void *value, struct GNUNET_CONTAINER_MultiHashMap **dict); |
230 | 242 | ||
231 | 243 | ||
232 | /** | 244 | /** |
@@ -250,7 +262,7 @@ GNUNET_ENV_value_from_number (int64_t number, size_t *value_size); | |||
250 | * @return A newly allocated value or NULL on error. | 262 | * @return A newly allocated value or NULL on error. |
251 | */ | 263 | */ |
252 | void * | 264 | void * |
253 | GNUNET_ENV_value_from_list (GNUNET_CONTAINER_SList *list, size_t *value_size); | 265 | GNUNET_ENV_value_from_list (struct GNUNET_CONTAINER_SList *list, size_t *value_size); |
254 | 266 | ||
255 | 267 | ||
256 | /** | 268 | /** |
@@ -262,4 +274,16 @@ GNUNET_ENV_value_from_list (GNUNET_CONTAINER_SList *list, size_t *value_size); | |||
262 | * @return A newly allocated value or NULL on error. | 274 | * @return A newly allocated value or NULL on error. |
263 | */ | 275 | */ |
264 | void * | 276 | void * |
265 | GNUNET_ENV_value_from_dict (GNUNET_CONTAINER_MultiHashMap *dict, size_t *value_size); | 277 | GNUNET_ENV_value_from_dict (struct GNUNET_CONTAINER_MultiHashMap *dict, size_t *value_size); |
278 | |||
279 | |||
280 | #if 0 /* keep Emacsens' auto-indent happy */ | ||
281 | { | ||
282 | #endif | ||
283 | #ifdef __cplusplus | ||
284 | } | ||
285 | #endif | ||
286 | |||
287 | /* ifndef GNUNET_ENV_LIB_H */ | ||
288 | #endif | ||
289 | /* end of gnunet_env_lib.h */ | ||
diff --git a/src/include/gnunet_multicast_service.h b/src/include/gnunet_multicast_service.h index 01074358e..edd4984a2 100644 --- a/src/include/gnunet_multicast_service.h +++ b/src/include/gnunet_multicast_service.h | |||
@@ -314,7 +314,7 @@ GNUNET_MULTICAST_join_decision (struct GNUNET_MULTICAST_JoinHandle *jh, | |||
314 | */ | 314 | */ |
315 | typedef void | 315 | typedef void |
316 | (*GNUNET_MULTICAST_JoinCallback) (void *cls, | 316 | (*GNUNET_MULTICAST_JoinCallback) (void *cls, |
317 | const struct GNUNET_EccPublicKey *member_key, | 317 | const struct GNUNET_CRYPTO_EccPublicKey *member_key, |
318 | const struct GNUNET_MessageHeader *join_req, | 318 | const struct GNUNET_MessageHeader *join_req, |
319 | struct GNUNET_MULTICAST_JoinHandle *jh); | 319 | struct GNUNET_MULTICAST_JoinHandle *jh); |
320 | 320 | ||
@@ -370,7 +370,7 @@ typedef void | |||
370 | */ | 370 | */ |
371 | typedef void | 371 | typedef void |
372 | (*GNUNET_MULTICAST_RequestCallback) (void *cls, | 372 | (*GNUNET_MULTICAST_RequestCallback) (void *cls, |
373 | const struct GNUNET_EccPublicKey *member_key, | 373 | const struct GNUNET_CRYPTO_EccPublicKey *member_key, |
374 | const struct GNUNET_MessageHeader *req, | 374 | const struct GNUNET_MessageHeader *req, |
375 | enum GNUNET_MULTICAST_MessageFlags flags); | 375 | enum GNUNET_MULTICAST_MessageFlags flags); |
376 | 376 | ||
@@ -580,8 +580,9 @@ GNUNET_MULTICAST_origin_start (const struct GNUNET_CONFIGURATION_Handle *cfg, | |||
580 | const struct GNUNET_CRYPTO_EccPrivateKey *priv_key, | 580 | const struct GNUNET_CRYPTO_EccPrivateKey *priv_key, |
581 | uint64_t last_fragment_id, | 581 | uint64_t last_fragment_id, |
582 | GNUNET_MULTICAST_JoinCallback join_cb, | 582 | GNUNET_MULTICAST_JoinCallback join_cb, |
583 | GNUNET_MULITCAST_MembershipTestCallback test_cb, | 583 | GNUNET_MULTICAST_MembershipTestCallback test_cb, |
584 | GNUNET_MULITCAST_ReplayCallback replay_cb, | 584 | GNUNET_MULTICAST_ReplayFragmentCallback replay_frag_cb, |
585 | GNUNET_MULTICAST_ReplayMessageCallback replay_msg_cb, | ||
585 | GNUNET_MULTICAST_RequestCallback request_cb, | 586 | GNUNET_MULTICAST_RequestCallback request_cb, |
586 | GNUNET_MULTICAST_MessageCallback message_cb, | 587 | GNUNET_MULTICAST_MessageCallback message_cb, |
587 | void *cls); | 588 | void *cls); |
@@ -694,8 +695,9 @@ GNUNET_MULTICAST_member_join (const struct GNUNET_CONFIGURATION_Handle *cfg, | |||
694 | const struct GNUNET_PeerIdentity *relays, | 695 | const struct GNUNET_PeerIdentity *relays, |
695 | const struct GNUNET_MessageHeader *join_request, | 696 | const struct GNUNET_MessageHeader *join_request, |
696 | GNUNET_MULTICAST_JoinCallback join_cb, | 697 | GNUNET_MULTICAST_JoinCallback join_cb, |
697 | GNUNET_MULITCAST_MembershipTestCallback test_cb, | 698 | GNUNET_MULTICAST_MembershipTestCallback test_cb, |
698 | GNUNET_MULITCAST_ReplayCallback replay_cb, | 699 | GNUNET_MULTICAST_ReplayFragmentCallback replay_frag_cb, |
700 | GNUNET_MULTICAST_ReplayMessageCallback replay_msg_cb, | ||
699 | GNUNET_MULTICAST_MessageCallback message_cb, | 701 | GNUNET_MULTICAST_MessageCallback message_cb, |
700 | void *cls); | 702 | void *cls); |
701 | 703 | ||
diff --git a/src/include/gnunet_psyc_service.h b/src/include/gnunet_psyc_service.h index 7caf8a40f..8e43b387e 100644 --- a/src/include/gnunet_psyc_service.h +++ b/src/include/gnunet_psyc_service.h | |||
@@ -86,7 +86,7 @@ extern "C" | |||
86 | #endif | 86 | #endif |
87 | 87 | ||
88 | #include "gnunet_util_lib.h" | 88 | #include "gnunet_util_lib.h" |
89 | #include "gnunet_psyc_lib.h" | 89 | #include "gnunet_env_lib.h" |
90 | #include "gnunet_multicast_service.h" | 90 | #include "gnunet_multicast_service.h" |
91 | 91 | ||
92 | 92 | ||
@@ -219,7 +219,7 @@ typedef int | |||
219 | uint64_t message_id, | 219 | uint64_t message_id, |
220 | const char *method_name, | 220 | const char *method_name, |
221 | size_t modifier_count, | 221 | size_t modifier_count, |
222 | const GNUNET_ENV_Modifier *modifiers, | 222 | const struct GNUNET_ENV_Modifier *modifiers, |
223 | uint64_t data_offset, | 223 | uint64_t data_offset, |
224 | size_t data_size, | 224 | size_t data_size, |
225 | const void *data, | 225 | const void *data, |
@@ -243,7 +243,7 @@ typedef int | |||
243 | const struct GNUNET_CRYPTO_EccPublicKey *slave_key, | 243 | const struct GNUNET_CRYPTO_EccPublicKey *slave_key, |
244 | const char *method_name, | 244 | const char *method_name, |
245 | size_t variable_count, | 245 | size_t variable_count, |
246 | const GNUNET_ENV_Modifier *variables, | 246 | const struct GNUNET_ENV_Modifier *variables, |
247 | size_t data_size, | 247 | size_t data_size, |
248 | const void *data, | 248 | const void *data, |
249 | struct GNUNET_PSYC_JoinHandle *jh); | 249 | struct GNUNET_PSYC_JoinHandle *jh); |
@@ -398,7 +398,7 @@ GNUNET_PSYC_master_transmit (struct GNUNET_PSYC_Master *master, | |||
398 | const struct GNUNET_ENV_Environment *env, | 398 | const struct GNUNET_ENV_Environment *env, |
399 | GNUNET_PSYC_MasterTransmitNotify notify, | 399 | GNUNET_PSYC_MasterTransmitNotify notify, |
400 | void *notify_cls, | 400 | void *notify_cls, |
401 | enum GNUNET_PSYC_TransmitFlags flags); | 401 | enum GNUNET_PSYC_MasterTransmitFlags flags); |
402 | 402 | ||
403 | 403 | ||
404 | /** | 404 | /** |
diff --git a/src/include/gnunet_psycstore_service.h b/src/include/gnunet_psycstore_service.h index 8fc7dbcd7..660ad0a2a 100644 --- a/src/include/gnunet_psycstore_service.h +++ b/src/include/gnunet_psycstore_service.h | |||
@@ -37,6 +37,8 @@ extern "C" | |||
37 | 37 | ||
38 | #include "gnunet_util_lib.h" | 38 | #include "gnunet_util_lib.h" |
39 | #include "gnunet_env_lib.h" | 39 | #include "gnunet_env_lib.h" |
40 | #include "gnunet_multicast_service.h" | ||
41 | #include "gnunet_psyc_service.h" | ||
40 | 42 | ||
41 | /** | 43 | /** |
42 | * Version number of GNUnet PSYCstore API. | 44 | * Version number of GNUnet PSYCstore API. |
@@ -107,7 +109,7 @@ typedef void | |||
107 | */ | 109 | */ |
108 | struct GNUNET_PSYCSTORE_OperationHandle * | 110 | struct GNUNET_PSYCSTORE_OperationHandle * |
109 | GNUNET_PSYCSTORE_counters_get (struct GNUNET_PSYCSTORE_Handle *h, | 111 | GNUNET_PSYCSTORE_counters_get (struct GNUNET_PSYCSTORE_Handle *h, |
110 | GNUNET_CRYPTO_EccPublicKey *channel_key, | 112 | struct GNUNET_CRYPTO_EccPublicKey *channel_key, |
111 | GNUNET_PSYCSTORE_CountersCallback *cb, | 113 | GNUNET_PSYCSTORE_CountersCallback *cb, |
112 | void *cb_cls); | 114 | void *cb_cls); |
113 | 115 | ||