X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Ftestbed%2Ftestbed_api.h;h=17cd38df35c755e2ce3b0de0f4dc486870828880;hb=d17a17ea785f91c18b5694eab3372c4e4564d95e;hp=c8a381685c72e11cbea60131bcfbaa57a1cfebb6;hpb=5c7f4f919d2569f49e4223d77000452dd2ec4e97;p=oweals%2Fgnunet.git diff --git a/src/testbed/testbed_api.h b/src/testbed/testbed_api.h index c8a381685..17cd38df3 100644 --- a/src/testbed/testbed_api.h +++ b/src/testbed/testbed_api.h @@ -11,9 +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 */ /** @@ -41,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, /** @@ -71,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, /** @@ -103,7 +105,6 @@ enum OperationType }; - /** * Enumeration of states of OperationContext */ @@ -267,7 +268,6 @@ struct GNUNET_TESTBED_Controller * The operation id counter. use current value and increment */ uint32_t operation_counter; - }; @@ -308,7 +308,6 @@ struct GNUNET_TESTBED_Barrier }; - /** * Queues a message in send queue for sending to the service * @@ -392,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); /** @@ -410,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, @@ -447,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); /** @@ -479,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. @@ -515,6 +517,5 @@ void GNUNET_TESTBED_barrier_remove_ (struct GNUNET_TESTBED_Barrier *barrier); - #endif /* end of testbed_api.h */