[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r26551 - gnunet/src/hostlist
From: |
gnunet |
Subject: |
[GNUnet-SVN] r26551 - gnunet/src/hostlist |
Date: |
Thu, 21 Mar 2013 15:49:23 +0100 |
Author: wachs
Date: 2013-03-21 15:49:23 +0100 (Thu, 21 Mar 2013)
New Revision: 26551
Modified:
gnunet/src/hostlist/gnunet-daemon-hostlist.c
gnunet/src/hostlist/hostlist-client.c
gnunet/src/hostlist/hostlist-server.c
gnunet/src/hostlist/test_gnunet_daemon_hostlist.c
gnunet/src/hostlist/test_gnunet_daemon_hostlist_learning.c
gnunet/src/hostlist/test_gnunet_daemon_hostlist_reconnect.c
Log:
fix core api changes
Modified: gnunet/src/hostlist/gnunet-daemon-hostlist.c
===================================================================
--- gnunet/src/hostlist/gnunet-daemon-hostlist.c 2013-03-21 14:48:32 UTC
(rev 26550)
+++ gnunet/src/hostlist/gnunet-daemon-hostlist.c 2013-03-21 14:49:23 UTC
(rev 26551)
@@ -148,12 +148,10 @@
*/
static int
advertisement_handler (void *cls, const struct GNUNET_PeerIdentity *peer,
- const struct GNUNET_MessageHeader *message,
- const struct GNUNET_ATS_Information *atsi,
- unsigned int atsi_count)
+ const struct GNUNET_MessageHeader *message)
{
GNUNET_assert (NULL != client_adv_handler);
- return (*client_adv_handler) (cls, peer, message, atsi, atsi_count);
+ return (*client_adv_handler) (cls, peer, message);
}
@@ -166,19 +164,19 @@
* @param atsi_count number of records in 'atsi'
*/
static void
-connect_handler (void *cls, const struct GNUNET_PeerIdentity *peer,
- const struct GNUNET_ATS_Information *atsi,
- unsigned int atsi_count)
+connect_handler (void *cls, const struct GNUNET_PeerIdentity *peer)
{
if (0 == memcmp (&me, peer, sizeof (struct GNUNET_PeerIdentity)))
return;
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"A new peer connected, notifying client and server\n");
if (NULL != client_ch)
- (*client_ch) (cls, peer, atsi, atsi_count);
+ {
+ (*client_ch) (cls, peer);
+ }
#if HAVE_MHD
if (NULL != server_ch)
- (*server_ch) (cls, peer, atsi, atsi_count);
+ (*server_ch) (cls, peer);
#endif
}
Modified: gnunet/src/hostlist/hostlist-client.c
===================================================================
--- gnunet/src/hostlist/hostlist-client.c 2013-03-21 14:48:32 UTC (rev
26550)
+++ gnunet/src/hostlist/hostlist-client.c 2013-03-21 14:49:23 UTC (rev
26551)
@@ -1100,9 +1100,7 @@
* @param atsi_count number of records in 'atsi'
*/
static void
-handler_connect (void *cls, const struct GNUNET_PeerIdentity *peer,
- const struct GNUNET_ATS_Information *atsi,
- unsigned int atsi_count)
+handler_connect (void *cls, const struct GNUNET_PeerIdentity *peer)
{
GNUNET_assert (stat_connection_count < UINT_MAX);
stat_connection_count++;
@@ -1140,9 +1138,7 @@
*/
static int
handler_advertisement (void *cls, const struct GNUNET_PeerIdentity *peer,
- const struct GNUNET_MessageHeader *message,
- const struct GNUNET_ATS_Information *atsi,
- unsigned int atsi_count)
+ const struct GNUNET_MessageHeader *message)
{
size_t size;
size_t uri_size;
Modified: gnunet/src/hostlist/hostlist-server.c
===================================================================
--- gnunet/src/hostlist/hostlist-server.c 2013-03-21 14:48:32 UTC (rev
26550)
+++ gnunet/src/hostlist/hostlist-server.c 2013-03-21 14:49:23 UTC (rev
26551)
@@ -353,9 +353,7 @@
* @param atsi_count number of records in 'atsi'
*/
static void
-connect_handler (void *cls, const struct GNUNET_PeerIdentity *peer,
- const struct GNUNET_ATS_Information *atsi,
- unsigned int atsi_count)
+connect_handler (void *cls, const struct GNUNET_PeerIdentity *peer)
{
size_t size;
Modified: gnunet/src/hostlist/test_gnunet_daemon_hostlist.c
===================================================================
--- gnunet/src/hostlist/test_gnunet_daemon_hostlist.c 2013-03-21 14:48:32 UTC
(rev 26550)
+++ gnunet/src/hostlist/test_gnunet_daemon_hostlist.c 2013-03-21 14:49:23 UTC
(rev 26551)
@@ -100,8 +100,7 @@
* @param distance in overlay hops, as given by transport plugin
*/
static void
-notify_connect (void *cls, const struct GNUNET_PeerIdentity *peer,
- const struct GNUNET_ATS_Information *ats, uint32_t ats_count)
+notify_connect (void *cls, const struct GNUNET_PeerIdentity *peer)
{
if (peer == NULL)
return;
Modified: gnunet/src/hostlist/test_gnunet_daemon_hostlist_learning.c
===================================================================
--- gnunet/src/hostlist/test_gnunet_daemon_hostlist_learning.c 2013-03-21
14:48:32 UTC (rev 26550)
+++ gnunet/src/hostlist/test_gnunet_daemon_hostlist_learning.c 2013-03-21
14:49:23 UTC (rev 26551)
@@ -313,9 +313,7 @@
*/
static int
ad_arrive_handler (void *cls, const struct GNUNET_PeerIdentity *peer,
- const struct GNUNET_MessageHeader *message,
- const struct GNUNET_ATS_Information *atsi,
- unsigned int atsi_count)
+ const struct GNUNET_MessageHeader *message)
{
char *hostname;
char *expected_uri;
Modified: gnunet/src/hostlist/test_gnunet_daemon_hostlist_reconnect.c
===================================================================
--- gnunet/src/hostlist/test_gnunet_daemon_hostlist_reconnect.c 2013-03-21
14:48:32 UTC (rev 26550)
+++ gnunet/src/hostlist/test_gnunet_daemon_hostlist_reconnect.c 2013-03-21
14:49:23 UTC (rev 26551)
@@ -100,8 +100,7 @@
* @param distance in overlay hops, as given by transport plugin
*/
static void
-notify_connect (void *cls, const struct GNUNET_PeerIdentity *peer,
- const struct GNUNET_ATS_Information *ats, uint32_t ats_count)
+notify_connect (void *cls, const struct GNUNET_PeerIdentity *peer)
{
if (peer == NULL)
return;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r26551 - gnunet/src/hostlist,
gnunet <=