summaryrefslogtreecommitdiff
path: root/src/testbed/testbed_api_peers.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/testbed/testbed_api_peers.h')
-rw-r--r--src/testbed/testbed_api_peers.h39
1 files changed, 24 insertions, 15 deletions
diff --git a/src/testbed/testbed_api_peers.h b/src/testbed/testbed_api_peers.h
index 6a9b89e7c..9ca104081 100644
--- a/src/testbed/testbed_api_peers.h
+++ b/src/testbed/testbed_api_peers.h
@@ -35,7 +35,8 @@
35/** 35/**
36 * Enumeration of possible states a peer could be in 36 * Enumeration of possible states a peer could be in
37 */ 37 */
38enum PeerState { 38enum PeerState
39{
39 /** 40 /**
40 * State to signify that this peer is invalid 41 * State to signify that this peer is invalid
41 */ 42 */
@@ -62,7 +63,8 @@ enum PeerState {
62 * A peer controlled by the testing framework. A peer runs 63 * A peer controlled by the testing framework. A peer runs
63 * at a particular host. 64 * at a particular host.
64 */ 65 */
65struct GNUNET_TESTBED_Peer { 66struct GNUNET_TESTBED_Peer
67{
66 /** 68 /**
67 * peer list DLL 69 * peer list DLL
68 */ 70 */
@@ -104,7 +106,8 @@ struct GNUNET_TESTBED_Peer {
104/** 106/**
105 * Data for the OperationType OP_PEER_CREATE 107 * Data for the OperationType OP_PEER_CREATE
106 */ 108 */
107struct PeerCreateData { 109struct PeerCreateData
110{
108 /** 111 /**
109 * The host where the peer has to be created 112 * The host where the peer has to be created
110 */ 113 */
@@ -135,7 +138,8 @@ struct PeerCreateData {
135/** 138/**
136 * Data for OperationType OP_PEER_START and OP_PEER_STOP 139 * Data for OperationType OP_PEER_START and OP_PEER_STOP
137 */ 140 */
138struct PeerEventData { 141struct PeerEventData
142{
139 /** 143 /**
140 * The handle of the peer to start 144 * The handle of the peer to start
141 */ 145 */
@@ -156,20 +160,22 @@ struct PeerEventData {
156/** 160/**
157 * Data for the OperationType OP_PEER_DESTROY; 161 * Data for the OperationType OP_PEER_DESTROY;
158 */ 162 */
159struct PeerDestroyData { 163struct PeerDestroyData
164{
160 /** 165 /**
161 * The peer structure 166 * The peer structure
162 */ 167 */
163 struct GNUNET_TESTBED_Peer *peer; 168 struct GNUNET_TESTBED_Peer *peer;
164 169
165 //PEERDESTROYDATA 170 // PEERDESTROYDATA
166}; 171};
167 172
168 173
169/** 174/**
170 * Data for the OperationType OP_PEER_INFO 175 * Data for the OperationType OP_PEER_INFO
171 */ 176 */
172struct PeerInfoData { 177struct PeerInfoData
178{
173 /** 179 /**
174 * The peer whose information has been requested 180 * The peer whose information has been requested
175 */ 181 */
@@ -195,7 +201,8 @@ struct PeerInfoData {
195/** 201/**
196 * Data for the operations of type OP_PEER_RECONFIGURE 202 * Data for the operations of type OP_PEER_RECONFIGURE
197 */ 203 */
198struct PeerReconfigureData { 204struct PeerReconfigureData
205{
199 /** 206 /**
200 * The peer whose information has been requested 207 * The peer whose information has been requested
201 */ 208 */
@@ -216,7 +223,8 @@ struct PeerReconfigureData {
216/** 223/**
217 * Data structure for OperationType OP_OVERLAY_CONNECT 224 * Data structure for OperationType OP_OVERLAY_CONNECT
218 */ 225 */
219struct OverlayConnectData { 226struct OverlayConnectData
227{
220 /** 228 /**
221 * Peer A to connect to peer B 229 * Peer A to connect to peer B
222 */ 230 */
@@ -246,7 +254,8 @@ struct OverlayConnectData {
246}; 254};
247 255
248 256
249struct ManageServiceData { 257struct ManageServiceData
258{
250 GNUNET_TESTBED_OperationCompletionCallback cb; 259 GNUNET_TESTBED_OperationCompletionCallback cb;
251 260
252 void *cb_cls; 261 void *cb_cls;
@@ -270,8 +279,8 @@ struct ManageServiceData {
270 * @return the PeerGetConfigurationMessage 279 * @return the PeerGetConfigurationMessage
271 */ 280 */
272struct GNUNET_TESTBED_PeerGetConfigurationMessage * 281struct GNUNET_TESTBED_PeerGetConfigurationMessage *
273GNUNET_TESTBED_generate_peergetconfig_msg_(uint32_t peer_id, 282GNUNET_TESTBED_generate_peergetconfig_msg_ (uint32_t peer_id,
274 uint64_t operation_id); 283 uint64_t operation_id);
275 284
276 285
277/** 286/**
@@ -280,7 +289,7 @@ GNUNET_TESTBED_generate_peergetconfig_msg_(uint32_t peer_id,
280 * @param peer the peer to add to the peer list 289 * @param peer the peer to add to the peer list
281 */ 290 */
282void 291void
283GNUNET_TESTBED_peer_register_(struct GNUNET_TESTBED_Peer *peer); 292GNUNET_TESTBED_peer_register_ (struct GNUNET_TESTBED_Peer *peer);
284 293
285 294
286/** 295/**
@@ -289,14 +298,14 @@ GNUNET_TESTBED_peer_register_(struct GNUNET_TESTBED_Peer *peer);
289 * @param peer the peer to remove 298 * @param peer the peer to remove
290 */ 299 */
291void 300void
292GNUNET_TESTBED_peer_deregister_(struct GNUNET_TESTBED_Peer *peer); 301GNUNET_TESTBED_peer_deregister_ (struct GNUNET_TESTBED_Peer *peer);
293 302
294 303
295/** 304/**
296 * Frees all peers 305 * Frees all peers
297 */ 306 */
298void 307void
299GNUNET_TESTBED_cleanup_peers_(void); 308GNUNET_TESTBED_cleanup_peers_ (void);
300 309
301#endif 310#endif
302/* end of testbed_api_peers.h */ 311/* end of testbed_api_peers.h */