aboutsummaryrefslogtreecommitdiff
path: root/src/transport/transport-testing.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-08-15 21:46:35 +0000
committerChristian Grothoff <christian@grothoff.org>2011-08-15 21:46:35 +0000
commit502af2167f7c218366666ca4944bd7cc54b5b19a (patch)
treea91fec5cc9769d260640bd91c6633cb9cf395524 /src/transport/transport-testing.h
parent03af5a603b7cc53432249d5854cd412aa90dde0d (diff)
downloadgnunet-502af2167f7c218366666ca4944bd7cc54b5b19a.tar.gz
gnunet-502af2167f7c218366666ca4944bd7cc54b5b19a.zip
indentation
Diffstat (limited to 'src/transport/transport-testing.h')
-rw-r--r--src/transport/transport-testing.h32
1 files changed, 17 insertions, 15 deletions
diff --git a/src/transport/transport-testing.h b/src/transport/transport-testing.h
index 10ef030f4..a867df4c1 100644
--- a/src/transport/transport-testing.h
+++ b/src/transport/transport-testing.h
@@ -53,16 +53,18 @@ struct PeerContext
53 53
54 GNUNET_TRANSPORT_NotifyDisconnect nd; 54 GNUNET_TRANSPORT_NotifyDisconnect nd;
55 55
56 void * cb_cls; 56 void *cb_cls;
57 57
58 char * servicehome; 58 char *servicehome;
59}; 59};
60 60
61/** 61/**
62 * Callback when two peers are connected and both have called the connect callback 62 * Callback when two peers are connected and both have called the connect callback
63 * to notify clients about a new peer 63 * to notify clients about a new peer
64 */ 64 */
65typedef void (*GNUNET_TRANSPORT_TESTING_connect_cb) (struct PeerContext * p1, struct PeerContext * p2, void *cls); 65typedef void (*GNUNET_TRANSPORT_TESTING_connect_cb) (struct PeerContext * p1,
66 struct PeerContext * p2,
67 void *cls);
66 68
67 69
68/** 70/**
@@ -74,12 +76,13 @@ typedef void (*GNUNET_TRANSPORT_TESTING_connect_cb) (struct PeerContext * p1, st
74 * if NULL passed the PeerContext * will be used! 76 * if NULL passed the PeerContext * will be used!
75 * @return the peer context 77 * @return the peer context
76 */ 78 */
77struct PeerContext * 79struct PeerContext *GNUNET_TRANSPORT_TESTING_start_peer (const char *cfgname,
78GNUNET_TRANSPORT_TESTING_start_peer (const char * cfgname, 80 GNUNET_TRANSPORT_ReceiveCallback
79 GNUNET_TRANSPORT_ReceiveCallback rec, 81 rec,
80 GNUNET_TRANSPORT_NotifyConnect nc, 82 GNUNET_TRANSPORT_NotifyConnect
81 GNUNET_TRANSPORT_NotifyDisconnect nd, 83 nc,
82 void * cb_cls); 84 GNUNET_TRANSPORT_NotifyDisconnect
85 nd, void *cb_cls);
83 86
84 87
85/** 88/**
@@ -87,8 +90,7 @@ GNUNET_TRANSPORT_TESTING_start_peer (const char * cfgname,
87 * @param p the peer 90 * @param p the peer
88 */ 91 */
89 92
90void 93void GNUNET_TRANSPORT_TESTING_stop_peer (struct PeerContext *pc);
91GNUNET_TRANSPORT_TESTING_stop_peer (struct PeerContext * pc);
92 94
93 95
94/** 96/**
@@ -101,9 +103,9 @@ GNUNET_TRANSPORT_TESTING_stop_peer (struct PeerContext * pc);
101 * @param cb_cls callback cls 103 * @param cb_cls callback cls
102 */ 104 */
103void 105void
104GNUNET_TRANSPORT_TESTING_connect_peers (struct PeerContext * p1, 106GNUNET_TRANSPORT_TESTING_connect_peers (struct PeerContext *p1,
105 struct PeerContext * p2, 107 struct PeerContext *p2,
106 GNUNET_TRANSPORT_TESTING_connect_cb cb, 108 GNUNET_TRANSPORT_TESTING_connect_cb cb,
107 void * cls); 109 void *cls);
108 110
109/* end of transport_testing.h */ 111/* end of transport_testing.h */