gnunet-android

GNUnet for Android
Log | Files | Refs | README

gnunet_testing_arm_lib.h (1269B)


      1 #ifndef GNUNET_TESTING_ARM_LIB_H
      2 #define GNUNET_TESTING_ARM_LIB_H
      3 
      4 #include "gnunet_arm_service.h"
      5 
      6 /**
      7  * Create command.
      8  *
      9  * @param label name for command.
     10  * @param system_label Label of the cmd to setup a test environment.
     11  * @param cfgname Configuration file name for this peer.
     12  * @return command.
     13  */
     14 struct GNUNET_TESTING_Command
     15 GNUNET_TESTING_ARM_cmd_start_peer (
     16   const char *label,
     17   const char *system_label,
     18   const char *cfgname);
     19 
     20 
     21 /**
     22  * Create command.
     23  *
     24  * @param label name for command.
     25  * @param start_label Label of the cmd to start the peer.
     26  * @return command.
     27  */
     28 struct GNUNET_TESTING_Command
     29 GNUNET_TESTING_cmd_stop_peer (
     30   const char *label,
     31   const char *start_label);
     32 
     33 
     34 /**
     35  * Call #op on all simple traits.
     36  */
     37 #define GNUNET_TESTING_ARM_SIMPLE_TRAITS(op, prefix) \
     38         op (prefix,                                  \
     39             arm_handle,                              \
     40             struct GNUNET_ARM_Handle)                \
     41         op (prefix,                                  \
     42             config,                                  \
     43             const struct GNUNET_CONFIGURATION_Handle)
     44 
     45 
     46 GNUNET_TESTING_ARM_SIMPLE_TRAITS (GNUNET_TESTING_MAKE_DECL_SIMPLE_TRAIT,
     47                                   GNUNET_TESTING_ARM)
     48 
     49 
     50 #endif