diff options
author | Gabor X Toth <*@tg-x.net> | 2015-09-26 17:10:17 +0000 |
---|---|---|
committer | Gabor X Toth <*@tg-x.net> | 2015-09-26 17:10:17 +0000 |
commit | 0219647545ddc7c66dcab13414541cf57d792618 (patch) | |
tree | 40b99ee9f9b042828a28c7b27b22be4bf000f443 /src/include/gnunet_multicast_service.h | |
parent | f5a9bac85b73508da6794e1171b857e2582c8216 (diff) | |
download | gnunet-0219647545ddc7c66dcab13414541cf57d792618.tar.gz gnunet-0219647545ddc7c66dcab13414541cf57d792618.zip |
multicast: removed membership test callback as clients check that already during join & replay
Diffstat (limited to 'src/include/gnunet_multicast_service.h')
-rw-r--r-- | src/include/gnunet_multicast_service.h | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/src/include/gnunet_multicast_service.h b/src/include/gnunet_multicast_service.h index bc4d0f970..056cfa642 100644 --- a/src/include/gnunet_multicast_service.h +++ b/src/include/gnunet_multicast_service.h | |||
@@ -326,53 +326,6 @@ typedef void | |||
326 | 326 | ||
327 | 327 | ||
328 | /** | 328 | /** |
329 | * Handle to pass back for the answer of a membership test. | ||
330 | */ | ||
331 | struct GNUNET_MULTICAST_MembershipTestHandle; | ||
332 | |||
333 | |||
334 | /** | ||
335 | * Call informing multicast about the decision taken for a membership test. | ||
336 | * | ||
337 | * @param mth | ||
338 | * Handle that was given for the query. | ||
339 | * @param result | ||
340 | * #GNUNET_YES if peer was a member, #GNUNET_NO if peer was not a member, | ||
341 | * #GNUNET_SYSERR if we cannot answer the membership test. | ||
342 | */ | ||
343 | void | ||
344 | GNUNET_MULTICAST_membership_test_result (struct GNUNET_MULTICAST_MembershipTestHandle *mth, | ||
345 | int result); | ||
346 | |||
347 | |||
348 | /** | ||
349 | * Method called to test if a member was in the group at a particular time. | ||
350 | * | ||
351 | * It is called when a replay request is received to determine if the requested | ||
352 | * message can be replayed. | ||
353 | * | ||
354 | * @param cls | ||
355 | * Closure. | ||
356 | * @param member_key | ||
357 | * Identity of the member that we want to test. | ||
358 | * @param message_id | ||
359 | * Message ID for which to perform the test. | ||
360 | * @param group_generation | ||
361 | * Group generation of the message. It has relevance if | ||
362 | * the message consists of multiple fragments with different group | ||
363 | * generations. | ||
364 | * @param mth | ||
365 | * Handle to give to GNUNET_MULTICAST_membership_test_answer(). | ||
366 | */ | ||
367 | typedef void | ||
368 | (*GNUNET_MULTICAST_MembershipTestCallback) (void *cls, | ||
369 | const struct GNUNET_CRYPTO_EcdsaPublicKey *member_key, | ||
370 | uint64_t message_id, | ||
371 | uint64_t group_generation, | ||
372 | struct GNUNET_MULTICAST_MembershipTestHandle *mth); | ||
373 | |||
374 | |||
375 | /** | ||
376 | * Function called whenever a group member has transmitted a request | 329 | * Function called whenever a group member has transmitted a request |
377 | * to the origin (other than joining or leaving). | 330 | * to the origin (other than joining or leaving). |
378 | * | 331 | * |
@@ -619,8 +572,6 @@ GNUNET_MULTICAST_replay_response2 (struct GNUNET_MULTICAST_ReplayHandle *rh, | |||
619 | * 0 for a new group. | 572 | * 0 for a new group. |
620 | * @param join_request_cb | 573 | * @param join_request_cb |
621 | * Function called to approve / disapprove joining of a peer. | 574 | * Function called to approve / disapprove joining of a peer. |
622 | * @param member_test_cb | ||
623 | * Function multicast can use to test group membership. | ||
624 | * @param replay_frag_cb | 575 | * @param replay_frag_cb |
625 | * Function that can be called to replay a message fragment. | 576 | * Function that can be called to replay a message fragment. |
626 | * @param replay_msg_cb | 577 | * @param replay_msg_cb |
@@ -641,7 +592,6 @@ GNUNET_MULTICAST_origin_start (const struct GNUNET_CONFIGURATION_Handle *cfg, | |||
641 | const struct GNUNET_CRYPTO_EddsaPrivateKey *priv_key, | 592 | const struct GNUNET_CRYPTO_EddsaPrivateKey *priv_key, |
642 | uint64_t max_fragment_id, | 593 | uint64_t max_fragment_id, |
643 | GNUNET_MULTICAST_JoinRequestCallback join_request_cb, | 594 | GNUNET_MULTICAST_JoinRequestCallback join_request_cb, |
644 | GNUNET_MULTICAST_MembershipTestCallback member_test_cb, | ||
645 | GNUNET_MULTICAST_ReplayFragmentCallback replay_frag_cb, | 595 | GNUNET_MULTICAST_ReplayFragmentCallback replay_frag_cb, |
646 | GNUNET_MULTICAST_ReplayMessageCallback replay_msg_cb, | 596 | GNUNET_MULTICAST_ReplayMessageCallback replay_msg_cb, |
647 | GNUNET_MULTICAST_RequestCallback request_cb, | 597 | GNUNET_MULTICAST_RequestCallback request_cb, |
@@ -774,8 +724,6 @@ GNUNET_MULTICAST_origin_stop (struct GNUNET_MULTICAST_Origin *origin, | |||
774 | * Function called to approve / disapprove joining of a peer. | 724 | * Function called to approve / disapprove joining of a peer. |
775 | * @param join_decision_cb | 725 | * @param join_decision_cb |
776 | * Function called to inform about the join decision. | 726 | * Function called to inform about the join decision. |
777 | * @param member_test_cb | ||
778 | * Function multicast can use to test group membership. | ||
779 | * @param replay_frag_cb | 727 | * @param replay_frag_cb |
780 | * Function that can be called to replay message fragments | 728 | * Function that can be called to replay message fragments |
781 | * this peer already knows from this group. NULL if this | 729 | * this peer already knows from this group. NULL if this |
@@ -803,7 +751,6 @@ GNUNET_MULTICAST_member_join (const struct GNUNET_CONFIGURATION_Handle *cfg, | |||
803 | const struct GNUNET_MessageHeader *join_request, | 751 | const struct GNUNET_MessageHeader *join_request, |
804 | GNUNET_MULTICAST_JoinRequestCallback join_request_cb, | 752 | GNUNET_MULTICAST_JoinRequestCallback join_request_cb, |
805 | GNUNET_MULTICAST_JoinDecisionCallback join_decision_cb, | 753 | GNUNET_MULTICAST_JoinDecisionCallback join_decision_cb, |
806 | GNUNET_MULTICAST_MembershipTestCallback mem_test_cb, | ||
807 | GNUNET_MULTICAST_ReplayFragmentCallback replay_frag_cb, | 754 | GNUNET_MULTICAST_ReplayFragmentCallback replay_frag_cb, |
808 | GNUNET_MULTICAST_ReplayMessageCallback replay_msg_cb, | 755 | GNUNET_MULTICAST_ReplayMessageCallback replay_msg_cb, |
809 | GNUNET_MULTICAST_MessageCallback message_cb, | 756 | GNUNET_MULTICAST_MessageCallback message_cb, |