aboutsummaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2013-03-21 14:43:47 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2013-03-21 14:43:47 +0000
commit75c121f5ae37d3c7ccd95f4449aea33ccb4200f0 (patch)
tree3fb440657f99a826cc4f963db55e28cb426ed9d8 /src/core
parenteb2371484330014aaef9b0bfac1f1ae191bc2460 (diff)
downloadgnunet-75c121f5ae37d3c7ccd95f4449aea33ccb4200f0.tar.gz
gnunet-75c121f5ae37d3c7ccd95f4449aea33ccb4200f0.zip
change to core pai
Diffstat (limited to 'src/core')
-rw-r--r--src/core/core_api.c10
-rw-r--r--src/core/core_api_is_connected.c14
-rw-r--r--src/core/core_api_iterate_peers.c9
-rw-r--r--src/core/gnunet-core.c9
-rw-r--r--src/core/test_core_api.c16
-rw-r--r--src/core/test_core_api_reliability.c16
-rw-r--r--src/core/test_core_api_send_to_self.c6
-rw-r--r--src/core/test_core_api_start_only.c12
-rw-r--r--src/core/test_core_quota_compliance.c16
9 files changed, 34 insertions, 74 deletions
diff --git a/src/core/core_api.c b/src/core/core_api.c
index 511c7ee99..a123a3a26 100644
--- a/src/core/core_api.c
+++ b/src/core/core_api.c
@@ -800,7 +800,7 @@ main_notify_handler (void *cls, const struct GNUNET_MessageHeader *msg)
800 &h->me.hashPubKey, pr, 800 &h->me.hashPubKey, pr,
801 GNUNET_CONTAINER_MULTIHASHMAPOPTION_UNIQUE_FAST)); 801 GNUNET_CONTAINER_MULTIHASHMAPOPTION_UNIQUE_FAST));
802 if (NULL != h->connects) 802 if (NULL != h->connects)
803 h->connects (h->cls, &h->me, NULL, 0); 803 h->connects (h->cls, &h->me);
804 break; 804 break;
805 case GNUNET_MESSAGE_TYPE_CORE_NOTIFY_CONNECT: 805 case GNUNET_MESSAGE_TYPE_CORE_NOTIFY_CONNECT:
806 if (msize < sizeof (struct ConnectNotifyMessage)) 806 if (msize < sizeof (struct ConnectNotifyMessage))
@@ -841,7 +841,7 @@ main_notify_handler (void *cls, const struct GNUNET_MessageHeader *msg)
841 &cnm->peer.hashPubKey, pr, 841 &cnm->peer.hashPubKey, pr,
842 GNUNET_CONTAINER_MULTIHASHMAPOPTION_UNIQUE_FAST)); 842 GNUNET_CONTAINER_MULTIHASHMAPOPTION_UNIQUE_FAST));
843 if (NULL != h->connects) 843 if (NULL != h->connects)
844 h->connects (h->cls, &cnm->peer, NULL, 0); 844 h->connects (h->cls, &cnm->peer);
845 break; 845 break;
846 case GNUNET_MESSAGE_TYPE_CORE_NOTIFY_DISCONNECT: 846 case GNUNET_MESSAGE_TYPE_CORE_NOTIFY_DISCONNECT:
847 if (msize != sizeof (struct DisconnectNotifyMessage)) 847 if (msize != sizeof (struct DisconnectNotifyMessage))
@@ -924,14 +924,14 @@ main_notify_handler (void *cls, const struct GNUNET_MessageHeader *msg)
924 return; 924 return;
925 } 925 }
926 if (GNUNET_OK != 926 if (GNUNET_OK !=
927 h->handlers[hpos].callback (h->cls, &ntm->peer, em, NULL,0)) 927 h->handlers[hpos].callback (h->cls, &ntm->peer, em))
928 { 928 {
929 /* error in processing, do not process other messages! */ 929 /* error in processing, do not process other messages! */
930 break; 930 break;
931 } 931 }
932 } 932 }
933 if (NULL != h->inbound_notify) 933 if (NULL != h->inbound_notify)
934 h->inbound_notify (h->cls, &ntm->peer, em, NULL, 0); 934 h->inbound_notify (h->cls, &ntm->peer, em);
935 break; 935 break;
936 case GNUNET_MESSAGE_TYPE_CORE_NOTIFY_OUTBOUND: 936 case GNUNET_MESSAGE_TYPE_CORE_NOTIFY_OUTBOUND:
937 if (msize < sizeof (struct NotifyTrafficMessage)) 937 if (msize < sizeof (struct NotifyTrafficMessage))
@@ -966,7 +966,7 @@ main_notify_handler (void *cls, const struct GNUNET_MessageHeader *msg)
966 GNUNET_break (0); 966 GNUNET_break (0);
967 break; 967 break;
968 } 968 }
969 h->outbound_notify (h->cls, &ntm->peer, em, NULL, 0); 969 h->outbound_notify (h->cls, &ntm->peer, em);
970 break; 970 break;
971 case GNUNET_MESSAGE_TYPE_CORE_SEND_READY: 971 case GNUNET_MESSAGE_TYPE_CORE_SEND_READY:
972 if (msize != sizeof (struct SendMessageReady)) 972 if (msize != sizeof (struct SendMessageReady))
diff --git a/src/core/core_api_is_connected.c b/src/core/core_api_is_connected.c
index 10af88f5c..31edb94b4 100644
--- a/src/core/core_api_is_connected.c
+++ b/src/core/core_api_is_connected.c
@@ -83,7 +83,7 @@ receive_connect_info (void *cls, const struct GNUNET_MessageHeader *msg)
83 if (NULL == msg) 83 if (NULL == msg)
84 { 84 {
85 /* core died, failure */ 85 /* core died, failure */
86 cth->peer_cb (cth->cb_cls, NULL, NULL, 0); 86 cth->peer_cb (cth->cb_cls, NULL);
87 GNUNET_CORE_is_peer_connected_cancel (cth); 87 GNUNET_CORE_is_peer_connected_cancel (cth);
88 return; 88 return;
89 } 89 }
@@ -91,7 +91,7 @@ receive_connect_info (void *cls, const struct GNUNET_MessageHeader *msg)
91 (ntohs (msg->size) == sizeof (struct GNUNET_MessageHeader))) 91 (ntohs (msg->size) == sizeof (struct GNUNET_MessageHeader)))
92 { 92 {
93 /* end of transmissions */ 93 /* end of transmissions */
94 cth->peer_cb (cth->cb_cls, NULL, NULL, 0); 94 cth->peer_cb (cth->cb_cls, NULL);
95 GNUNET_CORE_is_peer_connected_cancel (cth); 95 GNUNET_CORE_is_peer_connected_cancel (cth);
96 return; 96 return;
97 } 97 }
@@ -101,7 +101,7 @@ receive_connect_info (void *cls, const struct GNUNET_MessageHeader *msg)
101 (msize < sizeof (struct ConnectNotifyMessage))) 101 (msize < sizeof (struct ConnectNotifyMessage)))
102 { 102 {
103 GNUNET_break (0); 103 GNUNET_break (0);
104 cth->peer_cb (cth->cb_cls, NULL, NULL, 0); 104 cth->peer_cb (cth->cb_cls, NULL);
105 GNUNET_CORE_is_peer_connected_cancel (cth); 105 GNUNET_CORE_is_peer_connected_cancel (cth);
106 return; 106 return;
107 } 107 }
@@ -109,12 +109,12 @@ receive_connect_info (void *cls, const struct GNUNET_MessageHeader *msg)
109 if (msize != sizeof (struct ConnectNotifyMessage)) 109 if (msize != sizeof (struct ConnectNotifyMessage))
110 { 110 {
111 GNUNET_break (0); 111 GNUNET_break (0);
112 cth->peer_cb (cth->cb_cls, NULL, NULL, 0); 112 cth->peer_cb (cth->cb_cls, NULL);
113 GNUNET_CORE_is_peer_connected_cancel (cth); 113 GNUNET_CORE_is_peer_connected_cancel (cth);
114 return; 114 return;
115 } 115 }
116 /* Normal case */ 116 /* Normal case */
117 cth->peer_cb (cth->cb_cls, &connect_message->peer, NULL, 0); 117 cth->peer_cb (cth->cb_cls, &connect_message->peer);
118 GNUNET_CLIENT_receive (cth->client, &receive_connect_info, 118 GNUNET_CLIENT_receive (cth->client, &receive_connect_info,
119 cth, GNUNET_TIME_UNIT_FOREVER_REL); 119 cth, GNUNET_TIME_UNIT_FOREVER_REL);
120} 120}
@@ -144,9 +144,7 @@ transmit_is_connected_request (void *cls, size_t size, void *buf)
144 sizeof (struct GNUNET_PeerIdentity); 144 sizeof (struct GNUNET_PeerIdentity);
145 if ( (NULL == buf) || (0 == size) ) 145 if ( (NULL == buf) || (0 == size) )
146 { 146 {
147 cth->peer_cb (cth->cb_cls, 147 cth->peer_cb (cth->cb_cls, NULL);
148 NULL,
149 NULL, 0);
150 GNUNET_CLIENT_disconnect (cth->client); 148 GNUNET_CLIENT_disconnect (cth->client);
151 GNUNET_free (cth); 149 GNUNET_free (cth);
152 return 0; 150 return 0;
diff --git a/src/core/core_api_iterate_peers.c b/src/core/core_api_iterate_peers.c
index 4cb73dc21..cc3db6476 100644
--- a/src/core/core_api_iterate_peers.c
+++ b/src/core/core_api_iterate_peers.c
@@ -78,7 +78,7 @@ receive_info (void *cls, const struct GNUNET_MessageHeader *msg)
78 (ntohs (msg->size) == sizeof (struct GNUNET_MessageHeader)))) 78 (ntohs (msg->size) == sizeof (struct GNUNET_MessageHeader))))
79 { 79 {
80 if (request_context->peer_cb != NULL) 80 if (request_context->peer_cb != NULL)
81 request_context->peer_cb (request_context->cb_cls, NULL, NULL, 0); 81 request_context->peer_cb (request_context->cb_cls, NULL);
82 GNUNET_CLIENT_disconnect (request_context->client); 82 GNUNET_CLIENT_disconnect (request_context->client);
83 GNUNET_free (request_context); 83 GNUNET_free (request_context);
84 return; 84 return;
@@ -91,7 +91,7 @@ receive_info (void *cls, const struct GNUNET_MessageHeader *msg)
91 { 91 {
92 GNUNET_break (0); 92 GNUNET_break (0);
93 if (request_context->peer_cb != NULL) 93 if (request_context->peer_cb != NULL)
94 request_context->peer_cb (request_context->cb_cls, NULL, NULL, 0); 94 request_context->peer_cb (request_context->cb_cls, NULL);
95 GNUNET_CLIENT_disconnect (request_context->client); 95 GNUNET_CLIENT_disconnect (request_context->client);
96 GNUNET_free (request_context); 96 GNUNET_free (request_context);
97 return; 97 return;
@@ -101,15 +101,14 @@ receive_info (void *cls, const struct GNUNET_MessageHeader *msg)
101 { 101 {
102 GNUNET_break (0); 102 GNUNET_break (0);
103 if (request_context->peer_cb != NULL) 103 if (request_context->peer_cb != NULL)
104 request_context->peer_cb (request_context->cb_cls, NULL, NULL, 0); 104 request_context->peer_cb (request_context->cb_cls, NULL);
105 GNUNET_CLIENT_disconnect (request_context->client); 105 GNUNET_CLIENT_disconnect (request_context->client);
106 GNUNET_free (request_context); 106 GNUNET_free (request_context);
107 return; 107 return;
108 } 108 }
109 /* Normal case */ 109 /* Normal case */
110 if (request_context->peer_cb != NULL) 110 if (request_context->peer_cb != NULL)
111 request_context->peer_cb (request_context->cb_cls, &connect_message->peer, 111 request_context->peer_cb (request_context->cb_cls, &connect_message->peer);
112 NULL , 0);
113 GNUNET_CLIENT_receive (request_context->client, &receive_info, 112 GNUNET_CLIENT_receive (request_context->client, &receive_info,
114 request_context, GNUNET_TIME_UNIT_FOREVER_REL); 113 request_context, GNUNET_TIME_UNIT_FOREVER_REL);
115} 114}
diff --git a/src/core/gnunet-core.c b/src/core/gnunet-core.c
index 17b840480..87a372f30 100644
--- a/src/core/gnunet-core.c
+++ b/src/core/gnunet-core.c
@@ -74,9 +74,7 @@ shutdown_task (void *cls,
74 * @param atsi_count number of records in 'atsi' 74 * @param atsi_count number of records in 'atsi'
75 */ 75 */
76static void 76static void
77connected_peer_callback (void *cls, const struct GNUNET_PeerIdentity *peer, 77connected_peer_callback (void *cls, const struct GNUNET_PeerIdentity *peer)
78 const struct GNUNET_ATS_Information *atsi,
79 unsigned int atsi_count)
80{ 78{
81 struct GNUNET_CRYPTO_HashAsciiEncoded enc; 79 struct GNUNET_CRYPTO_HashAsciiEncoded enc;
82 80
@@ -102,12 +100,9 @@ monitor_notify_startup (void *cls,
102 * 100 *
103 * @param cls closure 101 * @param cls closure
104 * @param peer the peer that connected 102 * @param peer the peer that connected
105 * @param ats performance data
106 * @param ats_count number of entries in ats (excluding 0-termination)
107 */ 103 */
108static void 104static void
109monitor_notify_connect (void *cls, const struct GNUNET_PeerIdentity *peer, 105monitor_notify_connect (void *cls, const struct GNUNET_PeerIdentity *peer)
110 const struct GNUNET_ATS_Information *ats, uint32_t ats_count)
111{ 106{
112 struct GNUNET_TIME_Absolute now = GNUNET_TIME_absolute_get(); 107 struct GNUNET_TIME_Absolute now = GNUNET_TIME_absolute_get();
113 const char *now_str; 108 const char *now_str;
diff --git a/src/core/test_core_api.c b/src/core/test_core_api.c
index ab96fb47e..c7865dd11 100644
--- a/src/core/test_core_api.c
+++ b/src/core/test_core_api.c
@@ -153,9 +153,7 @@ transmit_ready (void *cls, size_t size, void *buf)
153 153
154 154
155static void 155static void
156connect_notify (void *cls, const struct GNUNET_PeerIdentity *peer, 156connect_notify (void *cls, const struct GNUNET_PeerIdentity *peer)
157 const struct GNUNET_ATS_Information *atsi,
158 unsigned int atsi_count)
159{ 157{
160 struct PeerContext *pc = cls; 158 struct PeerContext *pc = cls;
161 159
@@ -207,9 +205,7 @@ disconnect_notify (void *cls, const struct GNUNET_PeerIdentity *peer)
207 205
208static int 206static int
209inbound_notify (void *cls, const struct GNUNET_PeerIdentity *other, 207inbound_notify (void *cls, const struct GNUNET_PeerIdentity *other,
210 const struct GNUNET_MessageHeader *message, 208 const struct GNUNET_MessageHeader *message)
211 const struct GNUNET_ATS_Information *atsi,
212 unsigned int atsi_count)
213{ 209{
214 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 210 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
215 "Core provides inbound data from `%4s'.\n", GNUNET_i2s (other)); 211 "Core provides inbound data from `%4s'.\n", GNUNET_i2s (other));
@@ -219,9 +215,7 @@ inbound_notify (void *cls, const struct GNUNET_PeerIdentity *other,
219 215
220static int 216static int
221outbound_notify (void *cls, const struct GNUNET_PeerIdentity *other, 217outbound_notify (void *cls, const struct GNUNET_PeerIdentity *other,
222 const struct GNUNET_MessageHeader *message, 218 const struct GNUNET_MessageHeader *message)
223 const struct GNUNET_ATS_Information *atsi,
224 unsigned int atsi_count)
225{ 219{
226 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 220 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
227 "Core notifies about outbound data for `%4s'.\n", 221 "Core notifies about outbound data for `%4s'.\n",
@@ -233,9 +227,7 @@ outbound_notify (void *cls, const struct GNUNET_PeerIdentity *other,
233 227
234static int 228static int
235process_mtype (void *cls, const struct GNUNET_PeerIdentity *peer, 229process_mtype (void *cls, const struct GNUNET_PeerIdentity *peer,
236 const struct GNUNET_MessageHeader *message, 230 const struct GNUNET_MessageHeader *message)
237 const struct GNUNET_ATS_Information *atsi,
238 unsigned int atsi_count)
239{ 231{
240 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Receiving message from `%4s'.\n", 232 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Receiving message from `%4s'.\n",
241 GNUNET_i2s (peer)); 233 GNUNET_i2s (peer));
diff --git a/src/core/test_core_api_reliability.c b/src/core/test_core_api_reliability.c
index 061158d71..47ade350c 100644
--- a/src/core/test_core_api_reliability.c
+++ b/src/core/test_core_api_reliability.c
@@ -231,9 +231,7 @@ transmit_ready (void *cls, size_t size, void *buf)
231 231
232 232
233static void 233static void
234connect_notify (void *cls, const struct GNUNET_PeerIdentity *peer, 234connect_notify (void *cls, const struct GNUNET_PeerIdentity *peer)
235 const struct GNUNET_ATS_Information *atsi,
236 unsigned int atsi_count)
237{ 235{
238 struct PeerContext *pc = cls; 236 struct PeerContext *pc = cls;
239 237
@@ -277,9 +275,7 @@ disconnect_notify (void *cls, const struct GNUNET_PeerIdentity *peer)
277 275
278static int 276static int
279inbound_notify (void *cls, const struct GNUNET_PeerIdentity *other, 277inbound_notify (void *cls, const struct GNUNET_PeerIdentity *other,
280 const struct GNUNET_MessageHeader *message, 278 const struct GNUNET_MessageHeader *message)
281 const struct GNUNET_ATS_Information *atsi,
282 unsigned int atsi_count)
283{ 279{
284 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 280 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
285 "Core provides inbound data from `%4s'.\n", GNUNET_i2s (other)); 281 "Core provides inbound data from `%4s'.\n", GNUNET_i2s (other));
@@ -289,9 +285,7 @@ inbound_notify (void *cls, const struct GNUNET_PeerIdentity *other,
289 285
290static int 286static int
291outbound_notify (void *cls, const struct GNUNET_PeerIdentity *other, 287outbound_notify (void *cls, const struct GNUNET_PeerIdentity *other,
292 const struct GNUNET_MessageHeader *message, 288 const struct GNUNET_MessageHeader *message)
293 const struct GNUNET_ATS_Information *atsi,
294 unsigned int atsi_count)
295{ 289{
296 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 290 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
297 "Core notifies about outbound data for `%4s'.\n", 291 "Core notifies about outbound data for `%4s'.\n",
@@ -306,9 +300,7 @@ transmit_ready (void *cls, size_t size, void *buf);
306 300
307static int 301static int
308process_mtype (void *cls, const struct GNUNET_PeerIdentity *peer, 302process_mtype (void *cls, const struct GNUNET_PeerIdentity *peer,
309 const struct GNUNET_MessageHeader *message, 303 const struct GNUNET_MessageHeader *message)
310 const struct GNUNET_ATS_Information *atsi,
311 unsigned int atsi_count)
312{ 304{
313 static int n; 305 static int n;
314 unsigned int s; 306 unsigned int s;
diff --git a/src/core/test_core_api_send_to_self.c b/src/core/test_core_api_send_to_self.c
index c56e227e5..82048ea92 100644
--- a/src/core/test_core_api_send_to_self.c
+++ b/src/core/test_core_api_send_to_self.c
@@ -71,8 +71,7 @@ cleanup (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tskctx)
71 71
72static int 72static int
73receive (void *cls, const struct GNUNET_PeerIdentity *other, 73receive (void *cls, const struct GNUNET_PeerIdentity *other,
74 const struct GNUNET_MessageHeader *message, 74 const struct GNUNET_MessageHeader *message)
75 const struct GNUNET_ATS_Information *atsi, unsigned int atsi_count)
76{ 75{
77 if (die_task != GNUNET_SCHEDULER_NO_TASK) 76 if (die_task != GNUNET_SCHEDULER_NO_TASK)
78 GNUNET_SCHEDULER_cancel (die_task); 77 GNUNET_SCHEDULER_cancel (die_task);
@@ -120,8 +119,7 @@ init (void *cls, struct GNUNET_CORE_Handle *core,
120 119
121 120
122static void 121static void
123connect_cb (void *cls, const struct GNUNET_PeerIdentity *peer, 122connect_cb (void *cls, const struct GNUNET_PeerIdentity *peer)
124 const struct GNUNET_ATS_Information *atsi, unsigned int atsi_count)
125{ 123{
126 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Connected to peer %s.\n", 124 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Connected to peer %s.\n",
127 GNUNET_i2s (peer)); 125 GNUNET_i2s (peer));
diff --git a/src/core/test_core_api_start_only.c b/src/core/test_core_api_start_only.c
index d9cb4150d..e98b374d2 100644
--- a/src/core/test_core_api_start_only.c
+++ b/src/core/test_core_api_start_only.c
@@ -60,9 +60,7 @@ static int ok;
60 60
61 61
62static void 62static void
63connect_notify (void *cls, const struct GNUNET_PeerIdentity *peer, 63connect_notify (void *cls, const struct GNUNET_PeerIdentity *peer)
64 const struct GNUNET_ATS_Information *atsi,
65 unsigned int atsi_count)
66{ 64{
67} 65}
68 66
@@ -75,9 +73,7 @@ disconnect_notify (void *cls, const struct GNUNET_PeerIdentity *peer)
75 73
76static int 74static int
77inbound_notify (void *cls, const struct GNUNET_PeerIdentity *other, 75inbound_notify (void *cls, const struct GNUNET_PeerIdentity *other,
78 const struct GNUNET_MessageHeader *message, 76 const struct GNUNET_MessageHeader *message)
79 const struct GNUNET_ATS_Information *atsi,
80 unsigned int atsi_count)
81{ 77{
82 return GNUNET_OK; 78 return GNUNET_OK;
83} 79}
@@ -85,9 +81,7 @@ inbound_notify (void *cls, const struct GNUNET_PeerIdentity *other,
85 81
86static int 82static int
87outbound_notify (void *cls, const struct GNUNET_PeerIdentity *other, 83outbound_notify (void *cls, const struct GNUNET_PeerIdentity *other,
88 const struct GNUNET_MessageHeader *message, 84 const struct GNUNET_MessageHeader *message)
89 const struct GNUNET_ATS_Information *atsi,
90 unsigned int atsi_count)
91{ 85{
92 return GNUNET_OK; 86 return GNUNET_OK;
93} 87}
diff --git a/src/core/test_core_quota_compliance.c b/src/core/test_core_quota_compliance.c
index 884d5fa5e..e09417642 100644
--- a/src/core/test_core_quota_compliance.c
+++ b/src/core/test_core_quota_compliance.c
@@ -360,9 +360,7 @@ transmit_ready (void *cls, size_t size, void *buf)
360 360
361 361
362static void 362static void
363connect_notify (void *cls, const struct GNUNET_PeerIdentity *peer, 363connect_notify (void *cls, const struct GNUNET_PeerIdentity *peer)
364 const struct GNUNET_ATS_Information *atsi,
365 unsigned int atsi_count)
366{ 364{
367 struct PeerContext *pc = cls; 365 struct PeerContext *pc = cls;
368 366
@@ -425,9 +423,7 @@ disconnect_notify (void *cls, const struct GNUNET_PeerIdentity *peer)
425 423
426static int 424static int
427inbound_notify (void *cls, const struct GNUNET_PeerIdentity *other, 425inbound_notify (void *cls, const struct GNUNET_PeerIdentity *other,
428 const struct GNUNET_MessageHeader *message, 426 const struct GNUNET_MessageHeader *message)
429 const struct GNUNET_ATS_Information *atsi,
430 unsigned int atsi_count)
431{ 427{
432 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 428 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
433 "Core provides inbound data from `%4s' %llu.\n", 429 "Core provides inbound data from `%4s' %llu.\n",
@@ -439,9 +435,7 @@ inbound_notify (void *cls, const struct GNUNET_PeerIdentity *other,
439 435
440static int 436static int
441outbound_notify (void *cls, const struct GNUNET_PeerIdentity *other, 437outbound_notify (void *cls, const struct GNUNET_PeerIdentity *other,
442 const struct GNUNET_MessageHeader *message, 438 const struct GNUNET_MessageHeader *message)
443 const struct GNUNET_ATS_Information *atsi,
444 unsigned int atsi_count)
445{ 439{
446 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 440 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
447 "Core notifies about outbound data for `%4s'.\n", 441 "Core notifies about outbound data for `%4s'.\n",
@@ -455,9 +449,7 @@ transmit_ready (void *cls, size_t size, void *buf);
455 449
456static int 450static int
457process_mtype (void *cls, const struct GNUNET_PeerIdentity *peer, 451process_mtype (void *cls, const struct GNUNET_PeerIdentity *peer,
458 const struct GNUNET_MessageHeader *message, 452 const struct GNUNET_MessageHeader *message)
459 const struct GNUNET_ATS_Information *atsi,
460 unsigned int atsi_count)
461{ 453{
462 static int n; 454 static int n;
463 const struct TestMessage *hdr; 455 const struct TestMessage *hdr;