diff options
author | Gabor X Toth <*@tg-x.net> | 2013-08-15 10:09:43 +0000 |
---|---|---|
committer | Gabor X Toth <*@tg-x.net> | 2013-08-15 10:09:43 +0000 |
commit | 3c8feec5381491be406c1032fb72464b0f177a1d (patch) | |
tree | 53fd8e6adad1d22e532941215e8ce9eaee623a1a /src/include/gnunet_social_service.h | |
parent | 9b731d2b45c2ddc2ea24de7a0c87a672a6856f3a (diff) | |
download | gnunet-3c8feec5381491be406c1032fb72464b0f177a1d.tar.gz gnunet-3c8feec5381491be406c1032fb72464b0f177a1d.zip |
social api: use ego from identity service
Diffstat (limited to 'src/include/gnunet_social_service.h')
-rw-r--r-- | src/include/gnunet_social_service.h | 34 |
1 files changed, 3 insertions, 31 deletions
diff --git a/src/include/gnunet_social_service.h b/src/include/gnunet_social_service.h index a71272327..a00f1682a 100644 --- a/src/include/gnunet_social_service.h +++ b/src/include/gnunet_social_service.h | |||
@@ -46,11 +46,6 @@ extern "C" | |||
46 | */ | 46 | */ |
47 | #define GNUNET_SOCIAL_VERSION 0x00000000 | 47 | #define GNUNET_SOCIAL_VERSION 0x00000000 |
48 | 48 | ||
49 | /** | ||
50 | * Handle for our own presence in the network (we can of course have | ||
51 | * alter-egos). | ||
52 | */ | ||
53 | struct GNUNET_SOCIAL_Ego; | ||
54 | 49 | ||
55 | /** | 50 | /** |
56 | * Handle for another user (who is likely pseudonymous) in the network. | 51 | * Handle for another user (who is likely pseudonymous) in the network. |
@@ -153,29 +148,6 @@ GNUNET_SOCIAL_slicer_destroy (struct GNUNET_SOCIAL_Slicer *slicer); | |||
153 | 148 | ||
154 | 149 | ||
155 | /** | 150 | /** |
156 | * Create an ego using the given private key. | ||
157 | * | ||
158 | * The identity service is used to manage egos, the | ||
159 | * GNUNET_IDENTITY_ego_get_key() function returns an ego's private key that can | ||
160 | * be passed into this function. | ||
161 | * | ||
162 | * @param key Private key for the ego, NULL for ephemeral egos. | ||
163 | * @return Handle to the ego, NULL on error. | ||
164 | */ | ||
165 | struct GNUNET_SOCIAL_Ego * | ||
166 | GNUNET_SOCIAL_ego_create (const struct GNUNET_CRYPTO_EccPrivateKey *key); | ||
167 | |||
168 | |||
169 | /** | ||
170 | * Destroy a handle to an ego. | ||
171 | * | ||
172 | * @param ego Ego to destroy. | ||
173 | */ | ||
174 | void | ||
175 | GNUNET_SOCIAL_ego_destroy (struct GNUNET_SOCIAL_Ego *ego); | ||
176 | |||
177 | |||
178 | /** | ||
179 | * Function called asking for nym to be admitted to the place. | 151 | * Function called asking for nym to be admitted to the place. |
180 | * | 152 | * |
181 | * Should call either GNUNET_SOCIAL_home_admit() or | 153 | * Should call either GNUNET_SOCIAL_home_admit() or |
@@ -239,7 +211,7 @@ struct GNUNET_SOCIAL_Home * | |||
239 | GNUNET_SOCIAL_home_enter (const struct GNUNET_CONFIGURATION_Handle *cfg, | 211 | GNUNET_SOCIAL_home_enter (const struct GNUNET_CONFIGURATION_Handle *cfg, |
240 | const char *home_keyfile, | 212 | const char *home_keyfile, |
241 | enum GNUNET_MULTICAST_GroupPolicy policy, | 213 | enum GNUNET_MULTICAST_GroupPolicy policy, |
242 | struct GNUNET_SOCIAL_Ego *ego, | 214 | struct GNUNET_IDENTITY_Ego *ego, |
243 | struct GNUNET_SOCIAL_Slicer *slicer, | 215 | struct GNUNET_SOCIAL_Slicer *slicer, |
244 | GNUNET_SOCIAL_AnswerDoorCallback listener_cb, | 216 | GNUNET_SOCIAL_AnswerDoorCallback listener_cb, |
245 | GNUNET_SOCIAL_FarewellCallback farewell_cb, | 217 | GNUNET_SOCIAL_FarewellCallback farewell_cb, |
@@ -437,7 +409,7 @@ GNUNET_SOCIAL_home_leave (struct GNUNET_SOCIAL_Home *home); | |||
437 | */ | 409 | */ |
438 | struct GNUNET_SOCIAL_Place * | 410 | struct GNUNET_SOCIAL_Place * |
439 | GNUNET_SOCIAL_place_enter (const struct GNUNET_CONFIGURATION_Handle *cfg, | 411 | GNUNET_SOCIAL_place_enter (const struct GNUNET_CONFIGURATION_Handle *cfg, |
440 | struct GNUNET_SOCIAL_Ego *ego, | 412 | struct GNUNET_IDENTITY_Ego *ego, |
441 | char *address, | 413 | char *address, |
442 | const struct GNUNET_ENV_Environment *env, | 414 | const struct GNUNET_ENV_Environment *env, |
443 | size_t data_size, | 415 | size_t data_size, |
@@ -459,7 +431,7 @@ GNUNET_SOCIAL_place_enter (const struct GNUNET_CONFIGURATION_Handle *cfg, | |||
459 | */ | 431 | */ |
460 | struct GNUNET_SOCIAL_Place * | 432 | struct GNUNET_SOCIAL_Place * |
461 | GNUNET_SOCIAL_place_enter2 (const struct GNUNET_CONFIGURATION_Handle *cfg, | 433 | GNUNET_SOCIAL_place_enter2 (const struct GNUNET_CONFIGURATION_Handle *cfg, |
462 | struct GNUNET_SOCIAL_Ego *ego, | 434 | struct GNUNET_IDENTITY_Ego *ego, |
463 | struct GNUNET_CRYPTO_EccPublicKey *crypto_address, | 435 | struct GNUNET_CRYPTO_EccPublicKey *crypto_address, |
464 | struct GNUNET_PeerIdentity *peer, | 436 | struct GNUNET_PeerIdentity *peer, |
465 | struct GNUNET_SOCIAL_Slicer *slicer, | 437 | struct GNUNET_SOCIAL_Slicer *slicer, |