diff options
author | Gabor X Toth <*@tg-x.net> | 2016-01-06 12:28:47 +0000 |
---|---|---|
committer | Gabor X Toth <*@tg-x.net> | 2016-01-06 12:28:47 +0000 |
commit | 80d2de6cdc4d253c7fbc6a4bc067d856aab9cca9 (patch) | |
tree | 86e33af618c53b82afd0cb4855d7da595fcd5acd /src/social/test_social.c | |
parent | 7d1dfe26d99376a341bb150eb89ba717bb883077 (diff) | |
download | gnunet-80d2de6cdc4d253c7fbc6a4bc067d856aab9cca9.tar.gz gnunet-80d2de6cdc4d253c7fbc6a4bc067d856aab9cca9.zip |
psyc/social: local join flag; social service: leave place, save _file
Diffstat (limited to 'src/social/test_social.c')
-rw-r--r-- | src/social/test_social.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/social/test_social.c b/src/social/test_social.c index 38710cd1a..1fb9cc568 100644 --- a/src/social/test_social.c +++ b/src/social/test_social.c | |||
@@ -402,7 +402,8 @@ static void | |||
402 | app_recv_host (void *cls, | 402 | app_recv_host (void *cls, |
403 | struct GNUNET_SOCIAL_HostConnection *hconn, | 403 | struct GNUNET_SOCIAL_HostConnection *hconn, |
404 | struct GNUNET_SOCIAL_Ego *ego, | 404 | struct GNUNET_SOCIAL_Ego *ego, |
405 | const struct GNUNET_CRYPTO_EddsaPublicKey *host_pub_key) | 405 | const struct GNUNET_CRYPTO_EddsaPublicKey *host_pub_key, |
406 | enum GNUNET_SOCIAL_PlaceState place_state) | ||
406 | { | 407 | { |
407 | struct GNUNET_HashCode host_pub_hash; | 408 | struct GNUNET_HashCode host_pub_hash; |
408 | GNUNET_CRYPTO_hash (host_pub_key, sizeof (*host_pub_key), &host_pub_hash); | 409 | GNUNET_CRYPTO_hash (host_pub_key, sizeof (*host_pub_key), &host_pub_hash); |
@@ -424,9 +425,10 @@ app_recv_host (void *cls, | |||
424 | 425 | ||
425 | static void | 426 | static void |
426 | app_recv_guest (void *cls, | 427 | app_recv_guest (void *cls, |
427 | struct GNUNET_SOCIAL_GuestConnection *gconn, | 428 | struct GNUNET_SOCIAL_GuestConnection *gconn, |
428 | struct GNUNET_SOCIAL_Ego *ego, | 429 | struct GNUNET_SOCIAL_Ego *ego, |
429 | const struct GNUNET_CRYPTO_EddsaPublicKey *guest_pub_key) | 430 | const struct GNUNET_CRYPTO_EddsaPublicKey *guest_pub_key, |
431 | enum GNUNET_SOCIAL_PlaceState place_state) | ||
430 | { | 432 | { |
431 | struct GNUNET_HashCode guest_pub_hash; | 433 | struct GNUNET_HashCode guest_pub_hash; |
432 | GNUNET_CRYPTO_hash (guest_pub_key, sizeof (*guest_pub_key), &guest_pub_hash); | 434 | GNUNET_CRYPTO_hash (guest_pub_key, sizeof (*guest_pub_key), &guest_pub_hash); |
@@ -439,8 +441,8 @@ app_recv_guest (void *cls, | |||
439 | { | 441 | { |
440 | if (0 == memcmp (&place_pub_key, guest_pub_key, sizeof (*guest_pub_key))) | 442 | if (0 == memcmp (&place_pub_key, guest_pub_key, sizeof (*guest_pub_key))) |
441 | { | 443 | { |
442 | gst = GNUNET_SOCIAL_guest_enter_reconnect (gconn, guest_slicer, | 444 | gst = GNUNET_SOCIAL_guest_enter_reconnect (gconn, GNUNET_PSYC_SLAVE_JOIN_NONE, |
443 | guest_reconnected, NULL); | 445 | guest_slicer, guest_reconnected, NULL); |
444 | } | 446 | } |
445 | } | 447 | } |
446 | } | 448 | } |
@@ -1122,6 +1124,7 @@ guest_enter () | |||
1122 | emsg->data, emsg->data_size); | 1124 | emsg->data, emsg->data_size); |
1123 | 1125 | ||
1124 | gst = GNUNET_SOCIAL_guest_enter (app, guest_ego, &place_pub_key, | 1126 | gst = GNUNET_SOCIAL_guest_enter (app, guest_ego, &place_pub_key, |
1127 | GNUNET_PSYC_SLAVE_JOIN_NONE, | ||
1125 | &this_peer, 0, NULL, emsg->msg, guest_slicer, | 1128 | &this_peer, 0, NULL, emsg->msg, guest_slicer, |
1126 | guest_recv_local_enter, | 1129 | guest_recv_local_enter, |
1127 | guest_recv_entry_decision, NULL); | 1130 | guest_recv_entry_decision, NULL); |