aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_social_service.h
diff options
context:
space:
mode:
authorGabor X Toth <*@tg-x.net>2014-05-27 11:10:35 +0000
committerGabor X Toth <*@tg-x.net>2014-05-27 11:10:35 +0000
commitcfeccc1b56def35ac586ac2c09ac70b523b59ef5 (patch)
treee0cb2abc1ce4c11514c29eb5c0c067443b3a6fbd /src/include/gnunet_social_service.h
parent10f2f102658f935148475d5aa2b29afd8a4e85c2 (diff)
downloadgnunet-cfeccc1b56def35ac586ac2c09ac70b523b59ef5.tar.gz
gnunet-cfeccc1b56def35ac586ac2c09ac70b523b59ef5.zip
add social service
Diffstat (limited to 'src/include/gnunet_social_service.h')
-rw-r--r--src/include/gnunet_social_service.h27
1 files changed, 16 insertions, 11 deletions
diff --git a/src/include/gnunet_social_service.h b/src/include/gnunet_social_service.h
index 98ad88346..ba698aee6 100644
--- a/src/include/gnunet_social_service.h
+++ b/src/include/gnunet_social_service.h
@@ -36,9 +36,9 @@ extern "C"
36#endif 36#endif
37 37
38#include "gnunet_util_lib.h" 38#include "gnunet_util_lib.h"
39#include "gnunet_psyc_lib.h" 39#include "gnunet_env_lib.h"
40#include "gnunet_identity_service.h"
40#include "gnunet_psyc_service.h" 41#include "gnunet_psyc_service.h"
41#include "gnunet_multicast_service.h"
42 42
43 43
44/** 44/**
@@ -94,7 +94,7 @@ typedef int
94 const char *full_method_name, 94 const char *full_method_name,
95 uint64_t message_id, 95 uint64_t message_id,
96 size_t modifier_count, 96 size_t modifier_count,
97 GNUNET_PSYC_Modifier *modifiers, 97 struct GNUNET_ENV_Modifier *modifiers,
98 uint64_t data_offset, 98 uint64_t data_offset,
99 const void *data, 99 const void *data,
100 size_t data_size, 100 size_t data_size,
@@ -173,7 +173,7 @@ typedef void
173 struct GNUNET_SOCIAL_Nym *nym, 173 struct GNUNET_SOCIAL_Nym *nym,
174 size_t variable_count, 174 size_t variable_count,
175 const char *method_name, 175 const char *method_name,
176 GNUNET_PSYC_Modifier *variables, 176 struct GNUNET_ENV_Modifier *variables,
177 const void *data, 177 const void *data,
178 size_t data_size); 178 size_t data_size);
179 179
@@ -193,7 +193,7 @@ typedef void
193(*GNUNET_SOCIAL_FarewellCallback) (void *cls, 193(*GNUNET_SOCIAL_FarewellCallback) (void *cls,
194 struct GNUNET_SOCIAL_Nym *nym, 194 struct GNUNET_SOCIAL_Nym *nym,
195 size_t variable_count, 195 size_t variable_count,
196 GNUNET_PSYC_Modifier *variables); 196 struct GNUNET_ENV_Modifier *variables);
197 197
198 198
199/** 199/**
@@ -313,22 +313,24 @@ GNUNET_SOCIAL_home_advertise (struct GNUNET_SOCIAL_Home *home,
313 const char *name, 313 const char *name,
314 size_t peer_count, 314 size_t peer_count,
315 const struct GNUNET_PeerIdentity *peers, 315 const struct GNUNET_PeerIdentity *peers,
316 GNUNET_TIME_Relative expiration_time, 316 struct GNUNET_TIME_Relative expiration_time,
317 const char *password); 317 const char *password);
318 318
319 319
320/** 320/**
321 * Flags for announcements in a home. 321 * Flags for announcements in a home.
322 */ 322 */
323enum GNUNET_PSYC_AnnouncementFlags 323enum GNUNET_SOCIAL_AnnounceFlags
324{ 324{
325 GNUNET_SOCIAL_ANNOUNCE_NONE = 0,
326
325 /** 327 /**
326 * Whether this announcement removes all objects from the home. 328 * Whether this announcement removes all objects from the home.
327 * 329 *
328 * New objects can be still added to the now empty home using the @e env 330 * New objects can be still added to the now empty home using the @e env
329 * parameter of the same announcement. 331 * parameter of the same announcement.
330 */ 332 */
331 GNUNET_SOCIAL_ANNOUNCEMENT_CLEAR_OBJECTS = 1 << 0 333 GNUNET_SOCIAL_ANNOUNCE_CLEAR_OBJECTS = 1 << 0
332}; 334};
333 335
334 336
@@ -359,7 +361,7 @@ GNUNET_SOCIAL_home_announce (struct GNUNET_SOCIAL_Home *home,
359 const struct GNUNET_ENV_Environment *env, 361 const struct GNUNET_ENV_Environment *env,
360 GNUNET_CONNECTION_TransmitReadyNotify notify, 362 GNUNET_CONNECTION_TransmitReadyNotify notify,
361 void *notify_cls, 363 void *notify_cls,
362 GNUNET_SOCIAL_AnnouncementFlags flags); 364 enum GNUNET_SOCIAL_AnnounceFlags flags);
363 365
364 366
365/** 367/**
@@ -529,7 +531,10 @@ GNUNET_SOCIAL_place_look_at (struct GNUNET_SOCIAL_Place *place,
529/** 531/**
530 * Flags for talking to the host of a place. 532 * Flags for talking to the host of a place.
531 */ 533 */
532enum GNUNET_SOCIAL_TalkFlags; 534enum GNUNET_SOCIAL_TalkFlags
535{
536 GNUNET_SOCIAL_TALK_NONE = 0
537};
533 538
534 539
535/** 540/**
@@ -555,7 +560,7 @@ GNUNET_SOCIAL_place_talk (struct GNUNET_SOCIAL_Place *place,
555 const struct GNUNET_ENV_Environment *env, 560 const struct GNUNET_ENV_Environment *env,
556 GNUNET_CONNECTION_TransmitReadyNotify notify, 561 GNUNET_CONNECTION_TransmitReadyNotify notify,
557 void *notify_cls, 562 void *notify_cls,
558 GNUNET_SOCIAL_TalkFlags flags); 563 enum GNUNET_SOCIAL_TalkFlags flags);
559 564
560 565
561/** 566/**