From 69e51a4440604a7b75189f602bbea8f0f5ec2008 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 26 Oct 2011 07:13:55 +0000 Subject: fix --- src/chat/gnunet-service-chat.c | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) (limited to 'src/chat') diff --git a/src/chat/gnunet-service-chat.c b/src/chat/gnunet-service-chat.c index a70017759..a3637e454 100644 --- a/src/chat/gnunet-service-chat.c +++ b/src/chat/gnunet-service-chat.c @@ -981,6 +981,7 @@ handle_client_disconnect (void *cls, struct GNUNET_SERVER_Client *client) * @param other the other peer involved * @param message the actual message * @param atsi performance information + * @param atsi_count number of entries in atsi * @return GNUNET_OK to keep the connection open, * GNUNET_SYSERR to close it (signal serious error) */ @@ -989,7 +990,8 @@ handle_p2p_join_notification (void *cls, const struct GNUNET_PeerIdentity *other, const struct GNUNET_MessageHeader *message, const struct GNUNET_ATS_Information - *atsi) + *atsi, + unsigned int atsi_count) { const struct P2PJoinNotificationMessage *p2p_jnmsg; char *room_name; @@ -1097,6 +1099,7 @@ handle_p2p_join_notification (void *cls, * @param other the other peer involved * @param message the actual message * @param atsi performance information + * @param atsi_count number of entries in atsi * @return GNUNET_OK to keep the connection open, * GNUNET_SYSERR to close it (signal serious error) */ @@ -1105,7 +1108,8 @@ handle_p2p_leave_notification (void *cls, const struct GNUNET_PeerIdentity *other, const struct GNUNET_MessageHeader *message, const struct GNUNET_ATS_Information - *atsi) + *atsi, + unsigned int atsi_count) { const struct P2PLeaveNotificationMessage *p2p_lnmsg; GNUNET_HashCode id; @@ -1178,6 +1182,7 @@ handle_p2p_leave_notification (void *cls, * @param other the other peer involved * @param message the actual message * @param atsi performance information + * @param atsi_count number of entries in atsi * @return GNUNET_OK to keep the connection open, * GNUNET_SYSERR to close it (signal serious error) */ @@ -1186,7 +1191,8 @@ handle_p2p_message_notification (void *cls, const struct GNUNET_PeerIdentity *other, const struct GNUNET_MessageHeader *message, const struct GNUNET_ATS_Information - *atsi) + *atsi, + unsigned int atsi_count) { const struct P2PReceiveNotificationMessage *p2p_rnmsg; struct P2PReceiveNotificationMessage *my_p2p_rnmsg; @@ -1329,13 +1335,15 @@ handle_p2p_message_notification (void *cls, * @param other the other peer involved * @param message the actual message * @param atsi performance information + * @param atsi_count number of entries in atsi * @return GNUNET_OK to keep the connection open, * GNUNET_SYSERR to close it (signal serious error) */ static int handle_p2p_sync_request (void *cls, const struct GNUNET_PeerIdentity *other, const struct GNUNET_MessageHeader *message, - const struct GNUNET_ATS_Information *atsi) + const struct GNUNET_ATS_Information *atsi, + unsigned int atsi_count) { struct ChatClient *entry; struct GNUNET_CORE_TransmitHandle *th; @@ -1370,6 +1378,7 @@ handle_p2p_sync_request (void *cls, const struct GNUNET_PeerIdentity *other, * @param other the other peer involved * @param message the actual message * @param atsi performance information + * @param atsi_count number of entries in atsi * @return GNUNET_OK to keep the connection open, * GNUNET_SYSERR to close it (signal serious error) */ @@ -1378,7 +1387,8 @@ handle_p2p_confirmation_receipt (void *cls, const struct GNUNET_PeerIdentity *other, const struct GNUNET_MessageHeader *message, const struct GNUNET_ATS_Information - *atsi) + *atsi, + unsigned int atsi_count) { const struct P2PConfirmationReceiptMessage *p2p_crmsg; struct P2PConfirmationReceiptMessage *my_p2p_crmsg; @@ -1515,10 +1525,12 @@ transmit_sync_request_to_peer (void *cls, size_t size, void *buf) * @param cls closure * @param peer peer identity this notification is about * @param atsi performance data + * @param atsi_count number of entries in atsi */ static void peer_connect_handler (void *cls, const struct GNUNET_PeerIdentity *peer, - const struct GNUNET_ATS_Information *atsi) + const struct GNUNET_ATS_Information *atsi, + unsigned int atsi_count) { struct ConnectedPeer *cp; struct GNUNET_CORE_TransmitHandle *th; -- cgit v1.2.3