projects
/
oweals
/
gnunet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix pointer indentation
[oweals/gnunet.git]
/
src
/
testbed
/
testbed_api.h
diff --git
a/src/testbed/testbed_api.h
b/src/testbed/testbed_api.h
index 981a6311b316e96a97c4c93bb7005c82051d2b2f..17cd38df35c755e2ce3b0de0f4dc486870828880 100644
(file)
--- a/
src/testbed/testbed_api.h
+++ b/
src/testbed/testbed_api.h
@@
-11,6
+11,11
@@
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Affero General Public License for more details.
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Affero General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+ SPDX-License-Identifier: AGPL3.0-or-later
*/
/**
*/
/**
@@
-38,29
+43,29
@@
*/
enum OperationType
{
*/
enum OperationType
{
-
/**
-
* Peer create operation
-
*/
+ /**
+ * Peer create operation
+ */
OP_PEER_CREATE,
OP_PEER_CREATE,
-
/**
-
* Peer start operation
-
*/
+ /**
+ * Peer start operation
+ */
OP_PEER_START,
OP_PEER_START,
-
/**
-
* Peer stop operation
-
*/
+ /**
+ * Peer stop operation
+ */
OP_PEER_STOP,
OP_PEER_STOP,
-
/**
-
* Peer destroy operation
-
*/
+ /**
+ * Peer destroy operation
+ */
OP_PEER_DESTROY,
OP_PEER_DESTROY,
-
/**
-
* Get peer information operation
-
*/
+ /**
+ * Get peer information operation
+ */
OP_PEER_INFO,
/**
OP_PEER_INFO,
/**
@@
-68,19
+73,19
@@
enum OperationType
*/
OP_PEER_RECONFIGURE,
*/
OP_PEER_RECONFIGURE,
-
/**
-
* Overlay connection operation
-
*/
+ /**
+ * Overlay connection operation
+ */
OP_OVERLAY_CONNECT,
OP_OVERLAY_CONNECT,
-
/**
-
* Forwarded operation
-
*/
+ /**
+ * Forwarded operation
+ */
OP_FORWARDED,
OP_FORWARDED,
-
/**
-
* Link controllers operation
-
*/
+ /**
+ * Link controllers operation
+ */
OP_LINK_CONTROLLERS,
/**
OP_LINK_CONTROLLERS,
/**
@@
-100,7
+105,6
@@
enum OperationType
};
};
-
/**
* Enumeration of states of OperationContext
*/
/**
* Enumeration of states of OperationContext
*/
@@
-264,7
+268,6
@@
struct GNUNET_TESTBED_Controller
* The operation id counter. use current value and increment
*/
uint32_t operation_counter;
* The operation id counter. use current value and increment
*/
uint32_t operation_counter;
-
};
};
@@
-305,7
+308,6
@@
struct GNUNET_TESTBED_Barrier
};
};
-
/**
* Queues a message in send queue for sending to the service
*
/**
* Queues a message in send queue for sending to the service
*
@@
-389,7
+391,8
@@
GNUNET_TESTBED_compress_cfg_ (const struct GNUNET_CONFIGURATION_Handle *cfg,
struct GNUNET_TESTBED_HelperInit *
GNUNET_TESTBED_create_helper_init_msg_ (const char *cname,
const char *hostname,
struct GNUNET_TESTBED_HelperInit *
GNUNET_TESTBED_create_helper_init_msg_ (const char *cname,
const char *hostname,
- const struct GNUNET_CONFIGURATION_Handle *cfg);
+ const struct
+ GNUNET_CONFIGURATION_Handle *cfg);
/**
/**
@@
-407,7
+410,8
@@
GNUNET_TESTBED_create_helper_init_msg_ (const char *cname,
* operation
*/
struct OperationContext *
* operation
*/
struct OperationContext *
-GNUNET_TESTBED_forward_operation_msg_ (struct GNUNET_TESTBED_Controller *controller,
+GNUNET_TESTBED_forward_operation_msg_ (struct
+ GNUNET_TESTBED_Controller *controller,
uint64_t operation_id,
const struct GNUNET_MessageHeader *msg,
GNUNET_MQ_MessageCallback cc,
uint64_t operation_id,
const struct GNUNET_MessageHeader *msg,
GNUNET_MQ_MessageCallback cc,
@@
-444,7
+448,9
@@
GNUNET_TESTBED_extract_config_ (const struct GNUNET_MessageHeader *msg);
* @return the error message
*/
const char *
* @return the error message
*/
const char *
-GNUNET_TESTBED_parse_error_string_ (const struct GNUNET_TESTBED_OperationFailureEventMessage *msg);
+GNUNET_TESTBED_parse_error_string_ (const struct
+ GNUNET_TESTBED_OperationFailureEventMessage
+ *msg);
/**
/**
@@
-476,7
+482,6
@@
GNUNET_TESTBED_get_slave_config_ (void *op_cls,
uint32_t slave_host_id);
uint32_t slave_host_id);
-
/**
* Initialise a barrier and call the given callback when the required percentage
* of peers (quorum) reach the barrier OR upon error.
/**
* Initialise a barrier and call the given callback when the required percentage
* of peers (quorum) reach the barrier OR upon error.
@@
-512,6
+517,5
@@
void
GNUNET_TESTBED_barrier_remove_ (struct GNUNET_TESTBED_Barrier *barrier);
GNUNET_TESTBED_barrier_remove_ (struct GNUNET_TESTBED_Barrier *barrier);
-
#endif
/* end of testbed_api.h */
#endif
/* end of testbed_api.h */