diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2011-10-10 10:36:47 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2011-10-10 10:36:47 +0000 |
commit | e93cd1377e5a3a5d7e4327eaef0c9e38daa98b3f (patch) | |
tree | 51a18f80e83484e3e55cf9bf02cf3e62fc581c27 /src/transport/transport-testing.c | |
parent | 0513a75ca89a15c336fa380dfb69e08aaa621e7c (diff) | |
download | gnunet-e93cd1377e5a3a5d7e4327eaef0c9e38daa98b3f.tar.gz gnunet-e93cd1377e5a3a5d7e4327eaef0c9e38daa98b3f.zip |
naming
Diffstat (limited to 'src/transport/transport-testing.c')
-rw-r--r-- | src/transport/transport-testing.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/transport/transport-testing.c b/src/transport/transport-testing.c index 45ce444f1..76d88ab84 100644 --- a/src/transport/transport-testing.c +++ b/src/transport/transport-testing.c | |||
@@ -27,10 +27,10 @@ | |||
27 | 27 | ||
28 | #include "transport-testing.h" | 28 | #include "transport-testing.h" |
29 | 29 | ||
30 | #define VERBOSE GNUNET_EXTRA_LOGGING | 30 | #define VERBOSE GNUNET_YES |
31 | 31 | ||
32 | struct PeerContext * | 32 | struct PeerContext * |
33 | find_peer_context_by_pc ( struct TransportTestingHandle *tth, | 33 | find_peer_context_by_pc ( struct GNUNET_TRANSPORT_TESTING_handle *tth, |
34 | struct PeerContext *p) | 34 | struct PeerContext *p) |
35 | { | 35 | { |
36 | GNUNET_assert (tth != NULL); | 36 | GNUNET_assert (tth != NULL); |
@@ -48,7 +48,7 @@ find_peer_context_by_pc ( struct TransportTestingHandle *tth, | |||
48 | 48 | ||
49 | 49 | ||
50 | struct PeerContext * | 50 | struct PeerContext * |
51 | find_peer_context ( struct TransportTestingHandle *tth, | 51 | find_peer_context ( struct GNUNET_TRANSPORT_TESTING_handle *tth, |
52 | const struct GNUNET_PeerIdentity *peer) | 52 | const struct GNUNET_PeerIdentity *peer) |
53 | { | 53 | { |
54 | GNUNET_assert (tth != NULL); | 54 | GNUNET_assert (tth != NULL); |
@@ -65,7 +65,7 @@ find_peer_context ( struct TransportTestingHandle *tth, | |||
65 | } | 65 | } |
66 | 66 | ||
67 | struct ConnectingContext * | 67 | struct ConnectingContext * |
68 | find_connecting_context ( struct TransportTestingHandle *tth, | 68 | find_connecting_context ( struct GNUNET_TRANSPORT_TESTING_handle *tth, |
69 | struct PeerContext *p1, | 69 | struct PeerContext *p1, |
70 | struct PeerContext * p2) | 70 | struct PeerContext * p2) |
71 | { | 71 | { |
@@ -243,7 +243,7 @@ try_connect (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
243 | * @return the peer context | 243 | * @return the peer context |
244 | */ | 244 | */ |
245 | struct PeerContext * | 245 | struct PeerContext * |
246 | GNUNET_TRANSPORT_TESTING_start_peer (struct TransportTestingHandle * tth, | 246 | GNUNET_TRANSPORT_TESTING_start_peer (struct GNUNET_TRANSPORT_TESTING_handle * tth, |
247 | const char *cfgname, | 247 | const char *cfgname, |
248 | int peer_id, | 248 | int peer_id, |
249 | GNUNET_TRANSPORT_ReceiveCallback rec, | 249 | GNUNET_TRANSPORT_ReceiveCallback rec, |
@@ -309,7 +309,7 @@ GNUNET_TRANSPORT_TESTING_start_peer (struct TransportTestingHandle * tth, | |||
309 | * @param p the peer | 309 | * @param p the peer |
310 | */ | 310 | */ |
311 | void | 311 | void |
312 | GNUNET_TRANSPORT_TESTING_stop_peer (struct TransportTestingHandle * tth, | 312 | GNUNET_TRANSPORT_TESTING_stop_peer (struct GNUNET_TRANSPORT_TESTING_handle * tth, |
313 | struct PeerContext *p) | 313 | struct PeerContext *p) |
314 | { | 314 | { |
315 | GNUNET_assert (p != NULL); | 315 | GNUNET_assert (p != NULL); |
@@ -359,7 +359,7 @@ GNUNET_TRANSPORT_TESTING_stop_peer (struct TransportTestingHandle * tth, | |||
359 | * @return connect context | 359 | * @return connect context |
360 | */ | 360 | */ |
361 | GNUNET_TRANSPORT_TESTING_ConnectRequest | 361 | GNUNET_TRANSPORT_TESTING_ConnectRequest |
362 | GNUNET_TRANSPORT_TESTING_connect_peers (struct TransportTestingHandle * tth, | 362 | GNUNET_TRANSPORT_TESTING_connect_peers (struct GNUNET_TRANSPORT_TESTING_handle * tth, |
363 | struct PeerContext *p1, | 363 | struct PeerContext *p1, |
364 | struct PeerContext *p2, | 364 | struct PeerContext *p2, |
365 | GNUNET_TRANSPORT_TESTING_connect_cb cb, | 365 | GNUNET_TRANSPORT_TESTING_connect_cb cb, |
@@ -389,8 +389,8 @@ GNUNET_TRANSPORT_TESTING_connect_peers (struct TransportTestingHandle * tth, | |||
389 | GNUNET_CONTAINER_DLL_insert (tth->cc_head, tth->cc_tail, cc); | 389 | GNUNET_CONTAINER_DLL_insert (tth->cc_head, tth->cc_tail, cc); |
390 | 390 | ||
391 | cc->tct = GNUNET_SCHEDULER_add_now (&try_connect, cc); | 391 | cc->tct = GNUNET_SCHEDULER_add_now (&try_connect, cc); |
392 | GNUNET_log_from (GNUNET_ERROR_TYPE_ERROR, "transport-testing", | 392 | GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG, "transport-testing", |
393 | "connect request %X!\n", cc); | 393 | "New connect request %X\n", cc); |
394 | 394 | ||
395 | return cc; | 395 | return cc; |
396 | } | 396 | } |
@@ -401,7 +401,7 @@ GNUNET_TRANSPORT_TESTING_connect_peers (struct TransportTestingHandle * tth, | |||
401 | * @param cc a connect request handle | 401 | * @param cc a connect request handle |
402 | */ | 402 | */ |
403 | void GNUNET_TRANSPORT_TESTING_connect_peers_cancel | 403 | void GNUNET_TRANSPORT_TESTING_connect_peers_cancel |
404 | (struct TransportTestingHandle * tth, | 404 | (struct GNUNET_TRANSPORT_TESTING_handle * tth, |
405 | GNUNET_TRANSPORT_TESTING_ConnectRequest ccr) | 405 | GNUNET_TRANSPORT_TESTING_ConnectRequest ccr) |
406 | { | 406 | { |
407 | struct ConnectingContext *cc = ccr; | 407 | struct ConnectingContext *cc = ccr; |
@@ -425,7 +425,7 @@ void GNUNET_TRANSPORT_TESTING_connect_peers_cancel | |||
425 | * @param tth transport testing handle | 425 | * @param tth transport testing handle |
426 | */ | 426 | */ |
427 | void | 427 | void |
428 | GNUNET_TRANSPORT_TESTING_done (struct TransportTestingHandle * tth) | 428 | GNUNET_TRANSPORT_TESTING_done (struct GNUNET_TRANSPORT_TESTING_handle * tth) |
429 | { | 429 | { |
430 | struct ConnectingContext *cc = tth->cc_head; | 430 | struct ConnectingContext *cc = tth->cc_head; |
431 | struct ConnectingContext *ct = NULL; | 431 | struct ConnectingContext *ct = NULL; |
@@ -460,10 +460,10 @@ GNUNET_TRANSPORT_TESTING_done (struct TransportTestingHandle * tth) | |||
460 | * Initialize the transport testing | 460 | * Initialize the transport testing |
461 | * @return transport testing handle | 461 | * @return transport testing handle |
462 | */ | 462 | */ |
463 | struct TransportTestingHandle * | 463 | struct GNUNET_TRANSPORT_TESTING_handle * |
464 | GNUNET_TRANSPORT_TESTING_init () | 464 | GNUNET_TRANSPORT_TESTING_init () |
465 | { | 465 | { |
466 | struct TransportTestingHandle * tth = GNUNET_malloc (sizeof (struct TransportTestingHandle)); | 466 | struct GNUNET_TRANSPORT_TESTING_handle * tth = GNUNET_malloc (sizeof (struct GNUNET_TRANSPORT_TESTING_handle)); |
467 | 467 | ||
468 | return tth; | 468 | return tth; |
469 | } | 469 | } |