diff options
author | Gabor X Toth <*@tg-x.net> | 2015-09-08 01:36:33 +0000 |
---|---|---|
committer | Gabor X Toth <*@tg-x.net> | 2015-09-08 01:36:33 +0000 |
commit | a86a539258282bedabd24919e8af9bd113a6538a (patch) | |
tree | 84d67a3ed9adca66e71709dda6c86f69ad3e9360 /src/include | |
parent | 8752370da610cd9313b4dbfcb261420b6c181344 (diff) | |
download | gnunet-a86a539258282bedabd24919e8af9bd113a6538a.tar.gz gnunet-a86a539258282bedabd24919e8af9bd113a6538a.zip |
social: advertise; farewell fix
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/gnunet_social_service.h | 43 |
1 files changed, 34 insertions, 9 deletions
diff --git a/src/include/gnunet_social_service.h b/src/include/gnunet_social_service.h index 62f6ab7c7..0af48d168 100644 --- a/src/include/gnunet_social_service.h +++ b/src/include/gnunet_social_service.h | |||
@@ -38,6 +38,7 @@ extern "C" | |||
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_identity_service.h" | 40 | #include "gnunet_identity_service.h" |
41 | #include "gnunet_namestore_service.h" | ||
41 | #include "gnunet_psyc_service.h" | 42 | #include "gnunet_psyc_service.h" |
42 | 43 | ||
43 | 44 | ||
@@ -459,22 +460,44 @@ GNUNET_SOCIAL_host_eject (struct GNUNET_SOCIAL_Host *host, | |||
459 | * @param nym | 460 | * @param nym |
460 | * Pseudonym to map to a cryptographic identifier. | 461 | * Pseudonym to map to a cryptographic identifier. |
461 | * | 462 | * |
462 | * @return Public key of nym; | 463 | * @return Public key of nym. |
463 | */ | 464 | */ |
464 | const struct GNUNET_CRYPTO_EcdsaPublicKey * | 465 | const struct GNUNET_CRYPTO_EcdsaPublicKey * |
465 | GNUNET_SOCIAL_nym_get_key (const struct GNUNET_SOCIAL_Nym *nym); | 466 | GNUNET_SOCIAL_nym_get_key (const struct GNUNET_SOCIAL_Nym *nym); |
466 | 467 | ||
467 | 468 | ||
468 | /** | 469 | /** |
470 | * Get the hash of the public key of a @a nym. | ||
471 | * | ||
472 | * @param nym | ||
473 | * Pseudonym to map to a cryptographic identifier. | ||
474 | * | ||
475 | * @return Hash of the public key of nym. | ||
476 | */ | ||
477 | const struct GNUNET_HashCode * | ||
478 | GNUNET_SOCIAL_nym_get_key_hash (const struct GNUNET_SOCIAL_Nym *nym); | ||
479 | |||
480 | |||
481 | /** | ||
469 | * Advertise the place in the GNS zone of the @e ego of the @a host. | 482 | * Advertise the place in the GNS zone of the @e ego of the @a host. |
470 | * | 483 | * |
471 | * @param host Host of the place. | 484 | * @param hst |
472 | * @param name The name for the PLACE record to put in the zone. | 485 | * Host of the place. |
473 | * @param peer_count Number of elements in the @a peers array. | 486 | * @param name |
474 | * @param peers List of peers in the PLACE record that can be used to send join | 487 | * The name for the PLACE record to put in the zone. |
475 | * requests to. | 488 | * @param peer_count |
476 | * @param expiration_time Expiration time of the record, use 0 to remove the record. | 489 | * Number of elements in the @a peers array. |
477 | * @param password Password used to encrypt the record. | 490 | * @param peers |
491 | * List of peers to put in the PLACE record to advertise | ||
492 | * as entry points to the place in addition to the origin. | ||
493 | * @param expiration_time | ||
494 | * Expiration time of the record, use 0 to remove the record. | ||
495 | * @param password | ||
496 | * Password used to encrypt the record. | ||
497 | * @param result_cb | ||
498 | * Function called with the result of the operation. | ||
499 | * @param result_cls | ||
500 | * Closure for @a result_cb | ||
478 | */ | 501 | */ |
479 | void | 502 | void |
480 | GNUNET_SOCIAL_host_advertise (struct GNUNET_SOCIAL_Host *host, | 503 | GNUNET_SOCIAL_host_advertise (struct GNUNET_SOCIAL_Host *host, |
@@ -482,7 +505,9 @@ GNUNET_SOCIAL_host_advertise (struct GNUNET_SOCIAL_Host *host, | |||
482 | size_t peer_count, | 505 | size_t peer_count, |
483 | const struct GNUNET_PeerIdentity *peers, | 506 | const struct GNUNET_PeerIdentity *peers, |
484 | struct GNUNET_TIME_Relative expiration_time, | 507 | struct GNUNET_TIME_Relative expiration_time, |
485 | const char *password); | 508 | const char *password, |
509 | GNUNET_NAMESTORE_ContinuationWithStatus result_cb, | ||
510 | void *result_cls); | ||
486 | 511 | ||
487 | 512 | ||
488 | /** | 513 | /** |