diff options
Diffstat (limited to 'src/include/gnunet_social_service.h')
-rw-r--r-- | src/include/gnunet_social_service.h | 72 |
1 files changed, 36 insertions, 36 deletions
diff --git a/src/include/gnunet_social_service.h b/src/include/gnunet_social_service.h index 36a7e7ed2..aa20f7925 100644 --- a/src/include/gnunet_social_service.h +++ b/src/include/gnunet_social_service.h | |||
@@ -93,14 +93,14 @@ struct GNUNET_SOCIAL_Slicer; | |||
93 | * @param flags Message flags indicating fragmentation status. | 93 | * @param flags Message flags indicating fragmentation status. |
94 | */ | 94 | */ |
95 | typedef int (*GNUNET_SOCIAL_Method)(void *cls, | 95 | typedef int (*GNUNET_SOCIAL_Method)(void *cls, |
96 | const char *full_method_name, | 96 | const char *full_method_name, |
97 | uint64_t message_id, | 97 | uint64_t message_id, |
98 | size_t header_length, | 98 | size_t header_length, |
99 | GNUNET_PSYC_Modifier *header, | 99 | GNUNET_PSYC_Modifier *header, |
100 | uint64_t data_offset, | 100 | uint64_t data_offset, |
101 | size_t data_size, | 101 | size_t data_size, |
102 | const void *data, | 102 | const void *data, |
103 | enum GNUNET_PSYC_MessageFlags flags); | 103 | enum GNUNET_PSYC_MessageFlags flags); |
104 | 104 | ||
105 | 105 | ||
106 | /** | 106 | /** |
@@ -126,9 +126,9 @@ GNUNET_SOCIAL_slicer_create (void); | |||
126 | */ | 126 | */ |
127 | void | 127 | void |
128 | GNUNET_SOCIAL_slicer_add (struct GNUNET_SOCIAL_Slicer *slicer, | 128 | GNUNET_SOCIAL_slicer_add (struct GNUNET_SOCIAL_Slicer *slicer, |
129 | const char *method_name, | 129 | const char *method_name, |
130 | GNUNET_SOCIAL_Method method, | 130 | GNUNET_SOCIAL_Method method, |
131 | void *method_cls); | 131 | void *method_cls); |
132 | 132 | ||
133 | 133 | ||
134 | /** | 134 | /** |
@@ -193,11 +193,11 @@ GNUNET_SOCIAL_ego_destroy (struct GNUNET_SOCIAL_Ego *ego); | |||
193 | * @param data Payload given on enter (e.g. a password). | 193 | * @param data Payload given on enter (e.g. a password). |
194 | */ | 194 | */ |
195 | typedef void (*GNUNET_SOCIAL_AnswerDoorCallback)(void *cls, | 195 | typedef void (*GNUNET_SOCIAL_AnswerDoorCallback)(void *cls, |
196 | struct GNUNET_SOCIAL_Nym *nym, | 196 | struct GNUNET_SOCIAL_Nym *nym, |
197 | size_t header_length, | 197 | size_t header_length, |
198 | GNUNET_PSYC_Modifier *header, | 198 | GNUNET_PSYC_Modifier *header, |
199 | size_t data_size, | 199 | size_t data_size, |
200 | const void *data); | 200 | const void *data); |
201 | 201 | ||
202 | 202 | ||
203 | /** | 203 | /** |
@@ -212,7 +212,7 @@ typedef void (*GNUNET_SOCIAL_AnswerDoorCallback)(void *cls, | |||
212 | * @param header Modifiers present in the message. | 212 | * @param header Modifiers present in the message. |
213 | */ | 213 | */ |
214 | typedef void (*GNUNET_SOCIAL_FarewellCallback)(void *cls, | 214 | typedef void (*GNUNET_SOCIAL_FarewellCallback)(void *cls, |
215 | struct GNUNET_SOCIAL_Nym *nym, | 215 | struct GNUNET_SOCIAL_Nym *nym, |
216 | size_t header_length, | 216 | size_t header_length, |
217 | GNUNET_PSYC_Modifier *header); | 217 | GNUNET_PSYC_Modifier *header); |
218 | 218 | ||
@@ -226,7 +226,7 @@ typedef void (*GNUNET_SOCIAL_FarewellCallback)(void *cls, | |||
226 | * | 226 | * |
227 | * @param cfg Configuration to contact the social service. | 227 | * @param cfg Configuration to contact the social service. |
228 | * @param home_keyfile File with the private key for the home, | 228 | * @param home_keyfile File with the private key for the home, |
229 | * created if the file does not exist; | 229 | * created if the file does not exist; |
230 | * pass NULL for ephemeral homes. | 230 | * pass NULL for ephemeral homes. |
231 | * @param join_policy What is our policy for allowing people in? | 231 | * @param join_policy What is our policy for allowing people in? |
232 | * @param ego Owner of the home (host). | 232 | * @param ego Owner of the home (host). |
@@ -238,13 +238,13 @@ typedef void (*GNUNET_SOCIAL_FarewellCallback)(void *cls, | |||
238 | */ | 238 | */ |
239 | struct GNUNET_SOCIAL_Home * | 239 | struct GNUNET_SOCIAL_Home * |
240 | GNUNET_SOCIAL_home_enter (const struct GNUNET_CONFIGURATION_Handle *cfg, | 240 | GNUNET_SOCIAL_home_enter (const struct GNUNET_CONFIGURATION_Handle *cfg, |
241 | const char *home_keyfile, | 241 | const char *home_keyfile, |
242 | enum GNUNET_MULTICAST_JoinPolicy join_policy, | 242 | enum GNUNET_MULTICAST_JoinPolicy join_policy, |
243 | struct GNUNET_SOCIAL_Ego *ego, | 243 | struct GNUNET_SOCIAL_Ego *ego, |
244 | struct GNUNET_SOCIAL_Slicer *slicer, | 244 | struct GNUNET_SOCIAL_Slicer *slicer, |
245 | GNUNET_SOCIAL_AnswerDoorCallback listener_cb, | 245 | GNUNET_SOCIAL_AnswerDoorCallback listener_cb, |
246 | GNUNET_SOCIAL_FarewellCallback farewell_cb, | 246 | GNUNET_SOCIAL_FarewellCallback farewell_cb, |
247 | void *cls); | 247 | void *cls); |
248 | 248 | ||
249 | 249 | ||
250 | /** | 250 | /** |
@@ -258,7 +258,7 @@ GNUNET_SOCIAL_home_enter (const struct GNUNET_CONFIGURATION_Handle *cfg, | |||
258 | */ | 258 | */ |
259 | void | 259 | void |
260 | GNUNET_SOCIAL_home_admit (struct GNUNET_SOCIAL_Home *home, | 260 | GNUNET_SOCIAL_home_admit (struct GNUNET_SOCIAL_Home *home, |
261 | struct GNUNET_SOCIAL_Nym *nym); | 261 | struct GNUNET_SOCIAL_Nym *nym); |
262 | 262 | ||
263 | 263 | ||
264 | /** | 264 | /** |
@@ -305,7 +305,7 @@ GNUNET_SOCIAL_home_reject_entry (struct GNUNET_SOCIAL_Home *home, | |||
305 | */ | 305 | */ |
306 | void | 306 | void |
307 | GNUNET_SOCIAL_nym_get_identity (struct GNUNET_SOCIAL_Nym *nym, | 307 | GNUNET_SOCIAL_nym_get_identity (struct GNUNET_SOCIAL_Nym *nym, |
308 | struct GNUNET_CRYPTO_ShortHashCode *identity); | 308 | struct GNUNET_CRYPTO_ShortHashCode *identity); |
309 | 309 | ||
310 | 310 | ||
311 | /** | 311 | /** |
@@ -317,7 +317,7 @@ GNUNET_SOCIAL_nym_get_identity (struct GNUNET_SOCIAL_Nym *nym, | |||
317 | */ | 317 | */ |
318 | void | 318 | void |
319 | GNUNET_SOCIAL_home_get_address (struct GNUNET_SOCIAL_Home *home, | 319 | GNUNET_SOCIAL_home_get_address (struct GNUNET_SOCIAL_Home *home, |
320 | struct GNUNET_HashCode *crypto_address); | 320 | struct GNUNET_HashCode *crypto_address); |
321 | 321 | ||
322 | 322 | ||
323 | 323 | ||
@@ -463,9 +463,9 @@ struct GNUNET_SOCIAL_WatchHandle; | |||
463 | */ | 463 | */ |
464 | struct GNUNET_SOCIAL_WatchHandle * | 464 | struct GNUNET_SOCIAL_WatchHandle * |
465 | GNUNET_SOCIAL_place_watch (struct GNUNET_SOCIAL_Place *place, | 465 | GNUNET_SOCIAL_place_watch (struct GNUNET_SOCIAL_Place *place, |
466 | const char *object_filter, | 466 | const char *object_filter, |
467 | GNUNET_PSYC_StateCallback state_cb, | 467 | GNUNET_PSYC_StateCallback state_cb, |
468 | void *state_cb_cls); | 468 | void *state_cb_cls); |
469 | 469 | ||
470 | 470 | ||
471 | /** | 471 | /** |
@@ -490,8 +490,8 @@ struct GNUNET_SOCIAL_LookHandle; | |||
490 | */ | 490 | */ |
491 | struct GNUNET_SOCIAL_LookHandle * | 491 | struct GNUNET_SOCIAL_LookHandle * |
492 | GNUNET_SOCIAL_place_look (struct GNUNET_SOCIAL_Place *place, | 492 | GNUNET_SOCIAL_place_look (struct GNUNET_SOCIAL_Place *place, |
493 | GNUNET_PSYC_StateCallback state_cb, | 493 | GNUNET_PSYC_StateCallback state_cb, |
494 | void *state_cb_cls); | 494 | void *state_cb_cls); |
495 | 495 | ||
496 | 496 | ||
497 | /** | 497 | /** |
@@ -506,9 +506,9 @@ GNUNET_SOCIAL_place_look (struct GNUNET_SOCIAL_Place *place, | |||
506 | */ | 506 | */ |
507 | struct GNUNET_SOCIAL_LookHandle * | 507 | struct GNUNET_SOCIAL_LookHandle * |
508 | GNUNET_SOCIAL_place_look_for (struct GNUNET_SOCIAL_Place *place, | 508 | GNUNET_SOCIAL_place_look_for (struct GNUNET_SOCIAL_Place *place, |
509 | const char *object_filter, | 509 | const char *object_filter, |
510 | GNUNET_PSYC_StateCallback state_cb, | 510 | GNUNET_PSYC_StateCallback state_cb, |
511 | void *state_cb_cls); | 511 | void *state_cb_cls); |
512 | 512 | ||
513 | 513 | ||
514 | /** | 514 | /** |
@@ -531,8 +531,8 @@ GNUNET_SOCIAL_place_look_cancel (struct GNUNET_SOCIAL_LookHandle *lh); | |||
531 | */ | 531 | */ |
532 | const void * | 532 | const void * |
533 | GNUNET_SOCIAL_place_look_at (struct GNUNET_SOCIAL_Place *place, | 533 | GNUNET_SOCIAL_place_look_at (struct GNUNET_SOCIAL_Place *place, |
534 | const char *object_name, | 534 | const char *object_name, |
535 | size_t *value_size); | 535 | size_t *value_size); |
536 | 536 | ||
537 | 537 | ||
538 | /** | 538 | /** |
@@ -596,8 +596,8 @@ struct GNUNET_SOCIAL_HistoryLesson; | |||
596 | */ | 596 | */ |
597 | struct GNUNET_SOCIAL_HistoryLesson * | 597 | struct GNUNET_SOCIAL_HistoryLesson * |
598 | GNUNET_SOCIAL_place_get_history (struct GNUNET_SOCIAL_Place *place, | 598 | GNUNET_SOCIAL_place_get_history (struct GNUNET_SOCIAL_Place *place, |
599 | uint64_t start_message_id, | 599 | uint64_t start_message_id, |
600 | uint64_t end_message_id, | 600 | uint64_t end_message_id, |
601 | const struct GNUNET_SOCIAL_Slicer *slicer, | 601 | const struct GNUNET_SOCIAL_Slicer *slicer, |
602 | void (*finish_cb)(void *), | 602 | void (*finish_cb)(void *), |
603 | void *finish_cb_cls); | 603 | void *finish_cb_cls); |