diff options
author | Gabor X Toth <*@tg-x.net> | 2013-08-24 06:25:10 +0000 |
---|---|---|
committer | Gabor X Toth <*@tg-x.net> | 2013-08-24 06:25:10 +0000 |
commit | df6facef1ea4d8dd7fe836d78473aa66270d6684 (patch) | |
tree | e1a9e4585e0f549f1c9d9217e362cc2539527dd0 /src/include/gnunet_multicast_service.h | |
parent | 9602e23163e6d562197b40c361a46eead3276489 (diff) | |
download | gnunet-df6facef1ea4d8dd7fe836d78473aa66270d6684.tar.gz gnunet-df6facef1ea4d8dd7fe836d78473aa66270d6684.zip |
multicast: added replay_end(), returning replay handle from join_decision(); removed admitted/effective since where not needed; social: keep_active flag instead of away
Diffstat (limited to 'src/include/gnunet_multicast_service.h')
-rw-r--r-- | src/include/gnunet_multicast_service.h | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/src/include/gnunet_multicast_service.h b/src/include/gnunet_multicast_service.h index e187b963b..01074358e 100644 --- a/src/include/gnunet_multicast_service.h +++ b/src/include/gnunet_multicast_service.h | |||
@@ -277,7 +277,6 @@ struct GNUNET_MULTICAST_JoinHandle; | |||
277 | * @param jh Join request handle. | 277 | * @param jh Join request handle. |
278 | * @param is_admitted #GNUNET_YES if joining is approved, | 278 | * @param is_admitted #GNUNET_YES if joining is approved, |
279 | * #GNUNET_NO if it is disapproved | 279 | * #GNUNET_NO if it is disapproved |
280 | * @param admitted_since Message ID the member is admitted since. | ||
281 | * @param relay_count Number of relays given. | 280 | * @param relay_count Number of relays given. |
282 | * @param relays Array of suggested peers that might be useful relays to use | 281 | * @param relays Array of suggested peers that might be useful relays to use |
283 | * when joining the multicast group (essentially a list of peers that | 282 | * when joining the multicast group (essentially a list of peers that |
@@ -291,10 +290,9 @@ struct GNUNET_MULTICAST_JoinHandle; | |||
291 | * application layer; this response is to be transmitted to the | 290 | * application layer; this response is to be transmitted to the |
292 | * peer that issued the request even if admission is denied. | 291 | * peer that issued the request even if admission is denied. |
293 | */ | 292 | */ |
294 | void | 293 | struct GNUNET_MULTICAST_ReplayHandle * |
295 | GNUNET_MULTICAST_join_decision (struct GNUNET_MULTICAST_JoinHandle *jh, | 294 | GNUNET_MULTICAST_join_decision (struct GNUNET_MULTICAST_JoinHandle *jh, |
296 | int is_admitted, | 295 | int is_admitted, |
297 | uint64_t admitted_since, | ||
298 | unsigned int relay_count, | 296 | unsigned int relay_count, |
299 | const struct GNUNET_PeerIdentity *relays, | 297 | const struct GNUNET_PeerIdentity *relays, |
300 | const struct GNUNET_MessageHeader *join_response); | 298 | const struct GNUNET_MessageHeader *join_response); |
@@ -514,6 +512,17 @@ GNUNET_MULTICAST_replay (struct GNUNET_MULTICAST_ReplayHandle *rh, | |||
514 | const struct GNUNET_MessageHeader *msg, | 512 | const struct GNUNET_MessageHeader *msg, |
515 | enum GNUNET_MULTICAST_ReplayErrorCode ec); | 513 | enum GNUNET_MULTICAST_ReplayErrorCode ec); |
516 | 514 | ||
515 | |||
516 | /** | ||
517 | * Indicate the end of the replay session. | ||
518 | * | ||
519 | * Invalidates the replay handle. | ||
520 | * | ||
521 | * @param rh Replay session to end. | ||
522 | */ | ||
523 | void | ||
524 | GNUNET_MULTICAST_replay_end (struct GNUNET_MULTICAST_ReplayHandle *rh); | ||
525 | |||
517 | /** | 526 | /** |
518 | * Function called to provide data for a transmission for a replay. | 527 | * Function called to provide data for a transmission for a replay. |
519 | * | 528 | * |
@@ -684,7 +693,6 @@ GNUNET_MULTICAST_member_join (const struct GNUNET_CONFIGURATION_Handle *cfg, | |||
684 | size_t relay_count, | 693 | size_t relay_count, |
685 | const struct GNUNET_PeerIdentity *relays, | 694 | const struct GNUNET_PeerIdentity *relays, |
686 | const struct GNUNET_MessageHeader *join_request, | 695 | const struct GNUNET_MessageHeader *join_request, |
687 | uint64_t max_known_fragment_id, | ||
688 | GNUNET_MULTICAST_JoinCallback join_cb, | 696 | GNUNET_MULTICAST_JoinCallback join_cb, |
689 | GNUNET_MULITCAST_MembershipTestCallback test_cb, | 697 | GNUNET_MULITCAST_MembershipTestCallback test_cb, |
690 | GNUNET_MULITCAST_ReplayCallback replay_cb, | 698 | GNUNET_MULITCAST_ReplayCallback replay_cb, |