diff options
author | harsha <harsha@140774ce-b5e7-0310-ab8b-a85725594a96> | 2012-09-09 13:46:21 +0000 |
---|---|---|
committer | harsha <harsha@140774ce-b5e7-0310-ab8b-a85725594a96> | 2012-09-09 13:46:21 +0000 |
commit | 63c35ae2fa479ae2b8264d02096762e0f894488a (patch) | |
tree | 94c970fb413547cc24e1d7f12d9949caae704d6c /src/testbed/testbed_api_peers.h | |
parent | c7e0aa086ad6785f7d22d3f5a14713df93d27c4d (diff) |
implemented continuations to testbed peer start/stop API
git-svn-id: https://gnunet.org/svn/gnunet@23723 140774ce-b5e7-0310-ab8b-a85725594a96
Diffstat (limited to 'src/testbed/testbed_api_peers.h')
-rw-r--r-- | src/testbed/testbed_api_peers.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/testbed/testbed_api_peers.h b/src/testbed/testbed_api_peers.h index 4996f1012b..357f45e51d 100644 --- a/src/testbed/testbed_api_peers.h +++ b/src/testbed/testbed_api_peers.h @@ -122,6 +122,29 @@ struct PeerCreateData /** + * Data for OperationType OP_PEER_START and OP_PEER_STOP + */ +struct PeerEventData +{ + /** + * The handle of the peer to start + */ + struct GNUNET_TESTBED_Peer *peer; + + /** + * The Peer churn callback to call when this operation is completed + */ + GNUNET_TESTBED_PeerChurnCallback pcc; + + /** + * Closure for the above callback + */ + void *pcc_cls; + +}; + + +/** * Data for the OperationType OP_PEER_DESTROY; */ struct PeerDestroyData |