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/>.
/**
* Enumeration of operations
*/
-enum OperationType
-{
- /**
- * Peer create operation
- */
+enum OperationType {
+ /**
+ * 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,
/**
*/
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,
/**
/**
* Enumeration of states of OperationContext
*/
-enum OperationContextState
-{
+enum OperationContextState {
/**
* The initial state where the associated operation has just been created
* and is waiting in the operation queues to be started
/**
* Context information for GNUNET_TESTBED_Operation
*/
-struct OperationContext
-{
+struct OperationContext {
/**
* The controller to which this operation context belongs to
*/
* controllers can interact with each other (in a P2P fashion); those
* links are established via TCP/IP on the controller's service port.
*/
-struct GNUNET_TESTBED_Controller
-{
+struct GNUNET_TESTBED_Controller {
/**
* The host where the controller is running
*/
* The operation id counter. use current value and increment
*/
uint32_t operation_counter;
-
};
/**
* Handle for barrier
*/
-struct GNUNET_TESTBED_Barrier
-{
+struct GNUNET_TESTBED_Barrier {
/**
* hashcode identifying this barrier in the hashmap
*/
* @deprecated
*/
void
-GNUNET_TESTBED_queue_message_ (struct GNUNET_TESTBED_Controller *controller,
- struct GNUNET_MessageHeader *msg);
+GNUNET_TESTBED_queue_message_(struct GNUNET_TESTBED_Controller *controller,
+ struct GNUNET_MessageHeader *msg);
/**
* @param opc the operation context to be inserted
*/
void
-GNUNET_TESTBED_insert_opc_ (struct GNUNET_TESTBED_Controller *c,
- struct OperationContext *opc);
+GNUNET_TESTBED_insert_opc_(struct GNUNET_TESTBED_Controller *c,
+ struct OperationContext *opc);
/**
* @param opc the operation context to remove
*/
void
-GNUNET_TESTBED_remove_opc_ (const struct GNUNET_TESTBED_Controller *c,
- struct OperationContext *opc);
+GNUNET_TESTBED_remove_opc_(const struct GNUNET_TESTBED_Controller *c,
+ struct OperationContext *opc);
/**
* @return the size of the xconfig
*/
size_t
-GNUNET_TESTBED_compress_config_ (const char *config,
- size_t size,
- char **xconfig);
+GNUNET_TESTBED_compress_config_(const char *config,
+ size_t size,
+ char **xconfig);
/**
* @return the serialized and compressed configuration
*/
char *
-GNUNET_TESTBED_compress_cfg_ (const struct GNUNET_CONFIGURATION_Handle *cfg,
- size_t *size,
- size_t *xsize);
+GNUNET_TESTBED_compress_cfg_(const struct GNUNET_CONFIGURATION_Handle *cfg,
+ size_t *size,
+ size_t *xsize);
/**
* @return the initialization message
*/
struct GNUNET_TESTBED_HelperInit *
-GNUNET_TESTBED_create_helper_init_msg_ (const char *cname,
- const char *hostname,
- const struct GNUNET_CONFIGURATION_Handle *cfg);
+GNUNET_TESTBED_create_helper_init_msg_(const char *cname,
+ const char *hostname,
+ const struct GNUNET_CONFIGURATION_Handle *cfg);
/**
* operation
*/
struct OperationContext *
-GNUNET_TESTBED_forward_operation_msg_ (struct GNUNET_TESTBED_Controller *controller,
- uint64_t operation_id,
- const struct GNUNET_MessageHeader *msg,
- GNUNET_MQ_MessageCallback cc,
- void *cc_cls);
+GNUNET_TESTBED_forward_operation_msg_(struct GNUNET_TESTBED_Controller *controller,
+ uint64_t operation_id,
+ const struct GNUNET_MessageHeader *msg,
+ GNUNET_MQ_MessageCallback cc,
+ void *cc_cls);
/**
* Function to cancel an operation created by simply forwarding an operation
* @param opc the operation context from GNUNET_TESTBED_forward_operation_msg_()
*/
void
-GNUNET_TESTBED_forward_operation_msg_cancel_ (struct OperationContext *opc);
+GNUNET_TESTBED_forward_operation_msg_cancel_(struct OperationContext *opc);
/**
* @return handle to the parsed configuration
*/
struct GNUNET_CONFIGURATION_Handle *
-GNUNET_TESTBED_extract_config_ (const struct GNUNET_MessageHeader *msg);
+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);
/**
* @return the incremented operation id.
*/
uint64_t
-GNUNET_TESTBED_get_next_op_id (struct GNUNET_TESTBED_Controller *controller);
+GNUNET_TESTBED_get_next_op_id(struct GNUNET_TESTBED_Controller *controller);
/**
* @return the operation handle;
*/
struct GNUNET_TESTBED_Operation *
-GNUNET_TESTBED_get_slave_config_ (void *op_cls,
- struct GNUNET_TESTBED_Controller *master,
- uint32_t slave_host_id);
+GNUNET_TESTBED_get_slave_config_(void *op_cls,
+ struct GNUNET_TESTBED_Controller *master,
+ uint32_t slave_host_id);
* @return barrier handle; NULL upon error
*/
struct GNUNET_TESTBED_Barrier *
-GNUNET_TESTBED_barrier_init_ (struct GNUNET_TESTBED_Controller *controller,
- const char *name,
- unsigned int quorum,
- GNUNET_TESTBED_barrier_status_cb cb,
- void *cls,
- int echo);
+GNUNET_TESTBED_barrier_init_(struct GNUNET_TESTBED_Controller *controller,
+ const char *name,
+ unsigned int quorum,
+ GNUNET_TESTBED_barrier_status_cb cb,
+ void *cls,
+ int echo);
/**
* @param barrier the barrier to remove
*/
void
-GNUNET_TESTBED_barrier_remove_ (struct GNUNET_TESTBED_Barrier *barrier);
+GNUNET_TESTBED_barrier_remove_(struct GNUNET_TESTBED_Barrier *barrier);