diff options
author | Sree Harsha Totakura <totakura@in.tum.de> | 2012-07-08 22:25:06 +0000 |
---|---|---|
committer | Sree Harsha Totakura <totakura@in.tum.de> | 2012-07-08 22:25:06 +0000 |
commit | 71f190d1d34a96f7126e07128a975b798474f114 (patch) | |
tree | 14ef3ce2a8ee45aaeaa55f9879ce59ba168cec2c /src/testbed/testbed_api_peers.h | |
parent | 197f413ca268ec9f19a7491573290fe4835fae69 (diff) | |
download | gnunet-71f190d1d34a96f7126e07128a975b798474f114.tar.gz gnunet-71f190d1d34a96f7126e07128a975b798474f114.zip |
-client handle operation success
Diffstat (limited to 'src/testbed/testbed_api_peers.h')
-rw-r--r-- | src/testbed/testbed_api_peers.h | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/src/testbed/testbed_api_peers.h b/src/testbed/testbed_api_peers.h index 3a9244fc2..ee5ec3bd9 100644 --- a/src/testbed/testbed_api_peers.h +++ b/src/testbed/testbed_api_peers.h | |||
@@ -31,11 +31,64 @@ | |||
31 | 31 | ||
32 | 32 | ||
33 | /** | 33 | /** |
34 | * Details about a peer; kept in a separate struct to avoid bloating | ||
35 | * memory consumption everywhere... | ||
36 | */ | ||
37 | struct PeerDetails | ||
38 | { | ||
39 | /** | ||
40 | * Configuration of the peer; NULL if we are not sure what the peer's correct | ||
41 | * configuration actually is; non-NULL if this peer is controlled by this | ||
42 | * process. | ||
43 | */ | ||
44 | struct GNUNET_CONFIGURATION_Handle *cfg; | ||
45 | |||
46 | //PEER_DETAILS | ||
47 | }; | ||
48 | |||
49 | |||
50 | /** | ||
51 | * A peer controlled by the testing framework. A peer runs | ||
52 | * at a particular host. | ||
53 | */ | ||
54 | struct GNUNET_TESTBED_Peer | ||
55 | { | ||
56 | /** | ||
57 | * Our controller context (not necessarily the controller | ||
58 | * that is responsible for starting/running the peer!). | ||
59 | */ | ||
60 | struct GNUNET_TESTBED_Controller *controller; | ||
61 | |||
62 | /** | ||
63 | * Which host does this peer run on? | ||
64 | */ | ||
65 | struct GNUNET_TESTBED_Host *host; | ||
66 | |||
67 | /** | ||
68 | * Globally unique ID of the peer. | ||
69 | */ | ||
70 | uint32_t unique_id; | ||
71 | |||
72 | /** | ||
73 | * Internals of the peer for the controlling process; NULL if | ||
74 | * this process is not controlling this peer. | ||
75 | */ | ||
76 | struct PeerDetails *details; | ||
77 | |||
78 | }; | ||
79 | |||
80 | |||
81 | /** | ||
34 | * Data for the OperationType OP_PEER_DESTROY; | 82 | * Data for the OperationType OP_PEER_DESTROY; |
35 | */ | 83 | */ |
36 | struct PeerDestroyData | 84 | struct PeerDestroyData |
37 | { | 85 | { |
86 | /** | ||
87 | * The peer structure | ||
88 | */ | ||
38 | struct GNUNET_TESTBED_Peer *peer; | 89 | struct GNUNET_TESTBED_Peer *peer; |
90 | |||
91 | //PEERDESTROYDATA | ||
39 | }; | 92 | }; |
40 | 93 | ||
41 | 94 | ||