loop for trait resolution More...
Go to the source code of this file.
Functions | |
| GNUNET_TESTING_SIMPLE_TRAITS (GNUNET_TESTING_MAKE_IMPL_SIMPLE_TRAIT, GNUNET_TESTING) | |
| End a trait array. | |
| enum GNUNET_GenericReturnValue | GNUNET_TESTING_get_trait (const struct GNUNET_TESTING_Trait *traits, const void **ret, const char *trait, unsigned int index) |
| Pick the chosen trait from the traits array. | |
loop for trait resolution
Definition in file testing_api_traits.c.
| GNUNET_TESTING_SIMPLE_TRAITS | ( | GNUNET_TESTING_MAKE_IMPL_SIMPLE_TRAIT | , |
| GNUNET_TESTING | |||
| ) |
End a trait array.
Usually, commands offer several traits, and put them in arrays.
Definition at line 32 of file testing_api_traits.c.
References end, and GNUNET_TESTING_Trait::index.
| enum GNUNET_GenericReturnValue GNUNET_TESTING_get_trait | ( | const struct GNUNET_TESTING_Trait * | traits, |
| const void ** | ret, | ||
| const char * | trait, | ||
| unsigned int | index | ||
| ) |
Pick the chosen trait from the traits array.
Obtain value of a trait from a command.
| traits | the traits array. |
| ret | where to store the result. |
| trait | type of the trait to extract. |
| index | index number of the object to extract. |
Definition at line 62 of file testing_api_traits.c.
References GNUNET_ERROR_TYPE_INFO, GNUNET_log, GNUNET_OK, GNUNET_SYSERR, GNUNET_TESTING_Trait::index, GNUNET_TESTING_Trait::ptr, ret, GNUNET_TESTING_Trait::trait_name, and traits().
Referenced by barrier_reached_traits(), barrier_traits(), batch_traits(), connect_peers_traits(), connect_traits(), netjail_exec_traits(), start_peer_traits(), start_peer_traits(), start_service_traits(), stop_peer_traits(), system_create_traits(), traits(), and traits().