aboutsummaryrefslogtreecommitdiff
path: root/src/testbed/testbed_api_peers.h
diff options
context:
space:
mode:
authorSree Harsha Totakura <totakura@in.tum.de>2013-03-08 17:06:49 +0000
committerSree Harsha Totakura <totakura@in.tum.de>2013-03-08 17:06:49 +0000
commitd336aef5c16128f72d4d6e226148e2520841049f (patch)
tree22dc982b681a412bd7d719ffe8d9fb475a350ea5 /src/testbed/testbed_api_peers.h
parenta61c2d6c9375867837816f62ca13c474026fd2f1 (diff)
downloadgnunet-d336aef5c16128f72d4d6e226148e2520841049f.tar.gz
gnunet-d336aef5c16128f72d4d6e226148e2520841049f.zip
- cleanup peers after shutdown operation
Diffstat (limited to 'src/testbed/testbed_api_peers.h')
-rw-r--r--src/testbed/testbed_api_peers.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/src/testbed/testbed_api_peers.h b/src/testbed/testbed_api_peers.h
index 8598cc177..49f875607 100644
--- a/src/testbed/testbed_api_peers.h
+++ b/src/testbed/testbed_api_peers.h
@@ -66,6 +66,16 @@ enum PeerState
66struct GNUNET_TESTBED_Peer 66struct GNUNET_TESTBED_Peer
67{ 67{
68 /** 68 /**
69 * peer list DLL
70 */
71 struct GNUNET_TESTBED_Peer *next;
72
73 /**
74 * peer list DLL
75 */
76 struct GNUNET_TESTBED_Peer *prev;
77
78 /**
69 * Our controller context (not necessarily the controller 79 * Our controller context (not necessarily the controller
70 * that is responsible for starting/running the peer!). 80 * that is responsible for starting/running the peer!).
71 */ 81 */
@@ -248,5 +258,30 @@ struct GNUNET_TESTBED_PeerGetConfigurationMessage *
248GNUNET_TESTBED_generate_peergetconfig_msg_ (uint32_t peer_id, 258GNUNET_TESTBED_generate_peergetconfig_msg_ (uint32_t peer_id,
249 uint64_t operation_id); 259 uint64_t operation_id);
250 260
261
262/**
263 * Adds a peer to the peer list
264 *
265 * @param peer the peer to add to the peer list
266 */
267void
268GNUNET_TESTBED_peer_register_ (struct GNUNET_TESTBED_Peer *peer);
269
270
271/**
272 * Removes a peer from the peer list
273 *
274 * @param peer the peer to remove
275 */
276void
277GNUNET_TESTBED_peer_deregister_ (struct GNUNET_TESTBED_Peer *peer);
278
279
280/**
281 * Frees all peers
282 */
283void
284GNUNET_TESTBED_cleanup_peers_ (void);
285
251#endif 286#endif
252/* end of testbed_api_peers.h */ 287/* end of testbed_api_peers.h */