diff options
author | Sree Harsha Totakura <totakura@in.tum.de> | 2012-08-31 10:36:28 +0000 |
---|---|---|
committer | Sree Harsha Totakura <totakura@in.tum.de> | 2012-08-31 10:36:28 +0000 |
commit | a94a1861d123fe850d2ab5ae74cbb59b132a15ea (patch) | |
tree | a16d2518067d13f2463e83cd9dc66bdd6b733621 /src/testbed/testbed_api_peers.h | |
parent | d0c55c3ee57913977b1497ea0e6f20573820b206 (diff) | |
download | gnunet-a94a1861d123fe850d2ab5ae74cbb59b132a15ea.tar.gz gnunet-a94a1861d123fe850d2ab5ae74cbb59b132a15ea.zip |
adhering to indentation standard
Diffstat (limited to 'src/testbed/testbed_api_peers.h')
-rw-r--r-- | src/testbed/testbed_api_peers.h | 39 |
1 files changed, 20 insertions, 19 deletions
diff --git a/src/testbed/testbed_api_peers.h b/src/testbed/testbed_api_peers.h index 9256bf54f..21cae976b 100644 --- a/src/testbed/testbed_api_peers.h +++ b/src/testbed/testbed_api_peers.h | |||
@@ -35,34 +35,34 @@ | |||
35 | /** | 35 | /** |
36 | * Enumeration of possible states a peer could be in | 36 | * Enumeration of possible states a peer could be in |
37 | */ | 37 | */ |
38 | enum PeerState | 38 | enum PeerState |
39 | { | 39 | { |
40 | /** | 40 | /** |
41 | * State to signify that this peer is invalid | 41 | * State to signify that this peer is invalid |
42 | */ | 42 | */ |
43 | PS_INVALID, | 43 | PS_INVALID, |
44 | 44 | ||
45 | /** | 45 | /** |
46 | * The peer has been created | 46 | * The peer has been created |
47 | */ | 47 | */ |
48 | PS_CREATED, | 48 | PS_CREATED, |
49 | 49 | ||
50 | /** | 50 | /** |
51 | * The peer is running | 51 | * The peer is running |
52 | */ | 52 | */ |
53 | PS_STARTED, | 53 | PS_STARTED, |
54 | 54 | ||
55 | /** | 55 | /** |
56 | * The peer is stopped | 56 | * The peer is stopped |
57 | */ | 57 | */ |
58 | PS_STOPPED, | 58 | PS_STOPPED, |
59 | }; | 59 | }; |
60 | 60 | ||
61 | 61 | ||
62 | /** | 62 | /** |
63 | * A peer controlled by the testing framework. A peer runs | 63 | * A peer controlled by the testing framework. A peer runs |
64 | * at a particular host. | 64 | * at a particular host. |
65 | */ | 65 | */ |
66 | struct GNUNET_TESTBED_Peer | 66 | struct GNUNET_TESTBED_Peer |
67 | { | 67 | { |
68 | /** | 68 | /** |
@@ -70,7 +70,7 @@ struct GNUNET_TESTBED_Peer | |||
70 | * that is responsible for starting/running the peer!). | 70 | * that is responsible for starting/running the peer!). |
71 | */ | 71 | */ |
72 | struct GNUNET_TESTBED_Controller *controller; | 72 | struct GNUNET_TESTBED_Controller *controller; |
73 | 73 | ||
74 | /** | 74 | /** |
75 | * Which host does this peer run on? | 75 | * Which host does this peer run on? |
76 | */ | 76 | */ |
@@ -102,12 +102,12 @@ struct PeerCreateData | |||
102 | * The template configuration of the peer | 102 | * The template configuration of the peer |
103 | */ | 103 | */ |
104 | const struct GNUNET_CONFIGURATION_Handle *cfg; | 104 | const struct GNUNET_CONFIGURATION_Handle *cfg; |
105 | 105 | ||
106 | /** | 106 | /** |
107 | * The call back to call when we receive peer create success message | 107 | * The call back to call when we receive peer create success message |
108 | */ | 108 | */ |
109 | GNUNET_TESTBED_PeerCreateCallback cb; | 109 | GNUNET_TESTBED_PeerCreateCallback cb; |
110 | 110 | ||
111 | /** | 111 | /** |
112 | * The closure for the above callback | 112 | * The closure for the above callback |
113 | */ | 113 | */ |
@@ -144,7 +144,7 @@ struct PeerInfoData | |||
144 | * The peer whose information has been requested | 144 | * The peer whose information has been requested |
145 | */ | 145 | */ |
146 | struct GNUNET_TESTBED_Peer *peer; | 146 | struct GNUNET_TESTBED_Peer *peer; |
147 | 147 | ||
148 | /** | 148 | /** |
149 | * The type of peer information requested | 149 | * The type of peer information requested |
150 | */ | 150 | */ |
@@ -232,11 +232,12 @@ struct OverlayConnectData | |||
232 | */ | 232 | */ |
233 | struct GNUNET_TESTBED_Operation * | 233 | struct GNUNET_TESTBED_Operation * |
234 | GNUNET_TESTBED_peer_create_with_id_ (uint32_t unique_id, | 234 | GNUNET_TESTBED_peer_create_with_id_ (uint32_t unique_id, |
235 | struct GNUNET_TESTBED_Controller *controller, | 235 | struct GNUNET_TESTBED_Controller |
236 | struct GNUNET_TESTBED_Host *host, | 236 | *controller, |
237 | const struct GNUNET_CONFIGURATION_Handle *cfg, | 237 | struct GNUNET_TESTBED_Host *host, |
238 | GNUNET_TESTBED_PeerCreateCallback cb, | 238 | const struct GNUNET_CONFIGURATION_Handle |
239 | void *cls); | 239 | *cfg, GNUNET_TESTBED_PeerCreateCallback cb, |
240 | void *cls); | ||
240 | 241 | ||
241 | 242 | ||
242 | /** | 243 | /** |
@@ -245,7 +246,7 @@ GNUNET_TESTBED_peer_create_with_id_ (uint32_t unique_id, | |||
245 | * @param peer_id the id of the peer whose information we have to get | 246 | * @param peer_id the id of the peer whose information we have to get |
246 | * @param operation_id the ip of the operation that should be represented in | 247 | * @param operation_id the ip of the operation that should be represented in |
247 | * the message | 248 | * the message |
248 | * @param | 249 | * @param |
249 | * @return the PeerGetConfigurationMessage | 250 | * @return the PeerGetConfigurationMessage |
250 | */ | 251 | */ |
251 | struct GNUNET_TESTBED_PeerGetConfigurationMessage * | 252 | struct GNUNET_TESTBED_PeerGetConfigurationMessage * |