aboutsummaryrefslogtreecommitdiff
path: root/src/core/test_core_api.c
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/core/test_core_api.c
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/core/test_core_api.c')
-rw-r--r--src/core/test_core_api.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/test_core_api.c b/src/core/test_core_api.c
index 56b7412c3..be3edf974 100644
--- a/src/core/test_core_api.c
+++ b/src/core/test_core_api.c
@@ -165,7 +165,7 @@ transmit_ready (void *cls, size_t size, void *buf)
165 165
166static void 166static void
167connect_notify (void *cls, const struct GNUNET_PeerIdentity *peer, 167connect_notify (void *cls, const struct GNUNET_PeerIdentity *peer,
168 const struct GNUNET_ATS_Information *atsi) 168 const struct GNUNET_ATS_Information *atsi, unsigned int atsi_count)
169{ 169{
170 struct PeerContext *pc = cls; 170 struct PeerContext *pc = cls;
171 171
@@ -218,7 +218,7 @@ disconnect_notify (void *cls, const struct GNUNET_PeerIdentity *peer)
218static int 218static int
219inbound_notify (void *cls, const struct GNUNET_PeerIdentity *other, 219inbound_notify (void *cls, const struct GNUNET_PeerIdentity *other,
220 const struct GNUNET_MessageHeader *message, 220 const struct GNUNET_MessageHeader *message,
221 const struct GNUNET_ATS_Information *atsi) 221 const struct GNUNET_ATS_Information *atsi, unsigned int atsi_count)
222{ 222{
223 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 223 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
224 "Core provides inbound data from `%4s'.\n", GNUNET_i2s (other)); 224 "Core provides inbound data from `%4s'.\n", GNUNET_i2s (other));
@@ -229,7 +229,7 @@ inbound_notify (void *cls, const struct GNUNET_PeerIdentity *other,
229static int 229static int
230outbound_notify (void *cls, const struct GNUNET_PeerIdentity *other, 230outbound_notify (void *cls, const struct GNUNET_PeerIdentity *other,
231 const struct GNUNET_MessageHeader *message, 231 const struct GNUNET_MessageHeader *message,
232 const struct GNUNET_ATS_Information *atsi) 232 const struct GNUNET_ATS_Information *atsi, unsigned int atsi_count)
233{ 233{
234 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 234 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
235 "Core notifies about outbound data for `%4s'.\n", 235 "Core notifies about outbound data for `%4s'.\n",
@@ -242,7 +242,7 @@ outbound_notify (void *cls, const struct GNUNET_PeerIdentity *other,
242static int 242static int
243process_mtype (void *cls, const struct GNUNET_PeerIdentity *peer, 243process_mtype (void *cls, const struct GNUNET_PeerIdentity *peer,
244 const struct GNUNET_MessageHeader *message, 244 const struct GNUNET_MessageHeader *message,
245 const struct GNUNET_ATS_Information *atsi) 245 const struct GNUNET_ATS_Information *atsi, unsigned int atsi_count)
246{ 246{
247 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Receiving message from `%4s'.\n", 247 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Receiving message from `%4s'.\n",
248 GNUNET_i2s (peer)); 248 GNUNET_i2s (peer));