aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_testing_arm_lib.h
blob: 25fc17af990a3feba09f47fd5fce624956d1cea8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#ifndef GNUNET_TESTING_ARM_LIB_H
#define GNUNET_TESTING_ARM_LIB_H

#include "gnunet_arm_service.h"

/**
 * Create command.
 *
 * @param label name for command.
 * @param system_label Label of the cmd to setup a test environment.
 * @param no Decimal number representing the last byte of the IP address of this peer.
 * @param node_ip The IP address of this node.
 * @param cfgname Configuration file name for this peer.
 * @param broadcast Flag indicating, if broadcast should be switched on.
 * @return command.
 */
struct GNUNET_TESTING_Command
GNUNET_TESTBED_cmd_start_peer (const char *label,
                               const char *system_label,
                               uint32_t no,
                               const char *node_ip,
                               const char *cfgname,
                               unsigned int broadcast);

/**
 * Call #op on all simple traits.
 */
#define GNUNET_TESTING_ARM_SIMPLE_TRAITS(op, prefix)                            \
        op (prefix, arm_handle, const struct GNUNET_ARM_Handle)


GNUNET_TESTING_ARM_SIMPLE_TRAITS (GNUNET_TESTING_MAKE_DECL_SIMPLE_TRAIT,
                                  GNUNET_TESTING_ARM)


#endif