aboutsummaryrefslogtreecommitdiff
path: root/src/dht
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-10-22 21:59:27 +0000
committerChristian Grothoff <christian@grothoff.org>2011-10-22 21:59:27 +0000
commitf44c0036572d5557d2496748a4190a61e40e61ff (patch)
treebceb908e8542883ed246f96b4c619c0c49a06782 /src/dht
parent9d87d51965287d83ee332b8c50baff95bd62649a (diff)
downloadgnunet-f44c0036572d5557d2496748a4190a61e40e61ff.tar.gz
gnunet-f44c0036572d5557d2496748a4190a61e40e61ff.zip
replacing 0-terminated atsi-array with array+length in core API (and the core-connect IPC)
Diffstat (limited to 'src/dht')
-rw-r--r--src/dht/gnunet-service-dht_neighbours.c16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/dht/gnunet-service-dht_neighbours.c b/src/dht/gnunet-service-dht_neighbours.c
index 9d0bd996d..45df22b89 100644
--- a/src/dht/gnunet-service-dht_neighbours.c
+++ b/src/dht/gnunet-service-dht_neighbours.c
@@ -600,10 +600,12 @@ send_find_peer_message (void *cls,
600 * @param cls closure 600 * @param cls closure
601 * @param peer peer identity this notification is about 601 * @param peer peer identity this notification is about
602 * @param atsi performance data 602 * @param atsi performance data
603 * @param atsi_count number of records in 'atsi'
603 */ 604 */
604static void 605static void
605handle_core_connect (void *cls, const struct GNUNET_PeerIdentity *peer, 606handle_core_connect (void *cls, const struct GNUNET_PeerIdentity *peer,
606 const struct GNUNET_ATS_Information *atsi) 607 const struct GNUNET_ATS_Information *atsi,
608 unsigned int atsi_count)
607{ 609{
608 struct PeerInfo *ret; 610 struct PeerInfo *ret;
609 int peer_bucket; 611 int peer_bucket;
@@ -1508,6 +1510,7 @@ core_init (void *cls, struct GNUNET_CORE_Handle *server,
1508 * @param message message 1510 * @param message message
1509 * @param peer peer identity this notification is about 1511 * @param peer peer identity this notification is about
1510 * @param atsi performance data 1512 * @param atsi performance data
1513 * @param atsi_count number of records in 'atsi'
1511 * @return GNUNET_OK to keep the connection open, 1514 * @return GNUNET_OK to keep the connection open,
1512 * GNUNET_SYSERR to close it (signal serious error) 1515 * GNUNET_SYSERR to close it (signal serious error)
1513 */ 1516 */
@@ -1516,7 +1519,8 @@ handle_dht_p2p_put (void *cls,
1516 const struct GNUNET_PeerIdentity *peer, 1519 const struct GNUNET_PeerIdentity *peer,
1517 const struct GNUNET_MessageHeader *message, 1520 const struct GNUNET_MessageHeader *message,
1518 const struct GNUNET_ATS_Information 1521 const struct GNUNET_ATS_Information
1519 *atsi) 1522 *atsi,
1523 unsigned int atsi_count)
1520{ 1524{
1521 const struct PeerPutMessage *put; 1525 const struct PeerPutMessage *put;
1522 const struct GNUNET_PeerIdentity *put_path; 1526 const struct GNUNET_PeerIdentity *put_path;
@@ -1729,6 +1733,7 @@ handle_find_peer (const struct GNUNET_PeerIdentity *sender,
1729 * @param message message 1733 * @param message message
1730 * @param peer peer identity this notification is about 1734 * @param peer peer identity this notification is about
1731 * @param atsi performance data 1735 * @param atsi performance data
1736 * @param atsi_count number of records in 'atsi'
1732 * @return GNUNET_OK to keep the connection open, 1737 * @return GNUNET_OK to keep the connection open,
1733 * GNUNET_SYSERR to close it (signal serious error) 1738 * GNUNET_SYSERR to close it (signal serious error)
1734 */ 1739 */
@@ -1736,7 +1741,8 @@ static int
1736handle_dht_p2p_get (void *cls, const struct GNUNET_PeerIdentity *peer, 1741handle_dht_p2p_get (void *cls, const struct GNUNET_PeerIdentity *peer,
1737 const struct GNUNET_MessageHeader *message, 1742 const struct GNUNET_MessageHeader *message,
1738 const struct GNUNET_ATS_Information 1743 const struct GNUNET_ATS_Information
1739 *atsi) 1744 *atsi,
1745 unsigned int atsi_count)
1740{ 1746{
1741 struct PeerGetMessage *get; 1747 struct PeerGetMessage *get;
1742 uint32_t xquery_size; 1748 uint32_t xquery_size;
@@ -1865,13 +1871,15 @@ handle_dht_p2p_get (void *cls, const struct GNUNET_PeerIdentity *peer,
1865 * @param message message 1871 * @param message message
1866 * @param peer peer identity this notification is about 1872 * @param peer peer identity this notification is about
1867 * @param atsi performance data 1873 * @param atsi performance data
1874 * @param atsi_count number of records in 'atsi'
1868 * @return GNUNET_YES (do not cut p2p connection) 1875 * @return GNUNET_YES (do not cut p2p connection)
1869 */ 1876 */
1870static int 1877static int
1871handle_dht_p2p_result (void *cls, const struct GNUNET_PeerIdentity *peer, 1878handle_dht_p2p_result (void *cls, const struct GNUNET_PeerIdentity *peer,
1872 const struct GNUNET_MessageHeader *message, 1879 const struct GNUNET_MessageHeader *message,
1873 const struct GNUNET_ATS_Information 1880 const struct GNUNET_ATS_Information
1874 *atsi) 1881 *atsi,
1882 unsigned int atsi_count)
1875{ 1883{
1876 const struct PeerResultMessage *prm; 1884 const struct PeerResultMessage *prm;
1877 const struct GNUNET_PeerIdentity *put_path; 1885 const struct GNUNET_PeerIdentity *put_path;