X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Ftestbed%2Ftestbed_api.h;h=17cd38df35c755e2ce3b0de0f4dc486870828880;hb=d17a17ea785f91c18b5694eab3372c4e4564d95e;hp=ba929d31107f47e340ca1fe61c9e313bedde9c02;hpb=cbd60b5e56aac2d6711e299086383f83357794f8;p=oweals%2Fgnunet.git diff --git a/src/testbed/testbed_api.h b/src/testbed/testbed_api.h index ba929d311..17cd38df3 100644 --- a/src/testbed/testbed_api.h +++ b/src/testbed/testbed_api.h @@ -3,7 +3,7 @@ Copyright (C) 2008--2013 GNUnet e.V. GNUnet is free software: you can redistribute it and/or modify it - under the terms of the GNU General Public License as published + under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. @@ -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. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see . + + SPDX-License-Identifier: AGPL3.0-or-later */ /** @@ -38,29 +43,29 @@ */ enum OperationType { - /** - * Peer create operation - */ + /** + * Peer create operation + */ OP_PEER_CREATE, - /** - * Peer start operation - */ + /** + * Peer start operation + */ OP_PEER_START, - /** - * Peer stop operation - */ + /** + * Peer stop operation + */ OP_PEER_STOP, - /** - * Peer destroy operation - */ + /** + * Peer destroy operation + */ OP_PEER_DESTROY, - /** - * Get peer information operation - */ + /** + * Get peer information operation + */ OP_PEER_INFO, /** @@ -68,19 +73,19 @@ enum OperationType */ OP_PEER_RECONFIGURE, - /** - * Overlay connection operation - */ + /** + * Overlay connection operation + */ OP_OVERLAY_CONNECT, - /** - * Forwarded operation - */ + /** + * Forwarded operation + */ OP_FORWARDED, - /** - * Link controllers operation - */ + /** + * Link controllers operation + */ OP_LINK_CONTROLLERS, /** @@ -100,7 +105,6 @@ enum OperationType }; - /** * 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; - }; @@ -305,7 +308,6 @@ struct GNUNET_TESTBED_Barrier }; - /** * 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, - 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 * -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, @@ -444,7 +448,9 @@ GNUNET_TESTBED_extract_config_ (const struct GNUNET_MessageHeader *msg); * @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); - /** * 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); - #endif /* end of testbed_api.h */