aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_testing_ng_lib.h
diff options
context:
space:
mode:
authorChristian Grothoff <grothoff@gnunet.org>2023-11-29 23:21:47 +0900
committerChristian Grothoff <grothoff@gnunet.org>2023-11-29 23:21:47 +0900
commit994b9e471e22fd1c54658598f1b4e09ad5906dbc (patch)
tree1f515c55648753ce71e7a61ff884e032a52bb83a /src/include/gnunet_testing_ng_lib.h
parent0df5ce8d4215b83c908de5631b12a3939ce1ca9e (diff)
downloadgnunet-994b9e471e22fd1c54658598f1b4e09ad5906dbc.tar.gz
gnunet-994b9e471e22fd1c54658598f1b4e09ad5906dbc.zip
NEWS: ensure traits can be generated with subsystem-specific prefixes for the symbols
Diffstat (limited to 'src/include/gnunet_testing_ng_lib.h')
-rw-r--r--src/include/gnunet_testing_ng_lib.h30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/include/gnunet_testing_ng_lib.h b/src/include/gnunet_testing_ng_lib.h
index 7b19a0ab4..407f50bb7 100644
--- a/src/include/gnunet_testing_ng_lib.h
+++ b/src/include/gnunet_testing_ng_lib.h
@@ -89,27 +89,27 @@ GNUNET_TESTING_cmd_exec_bash_script (const char *label,
89/** 89/**
90 * Call #op on all simple traits. 90 * Call #op on all simple traits.
91 */ 91 */
92#define GNUNET_TESTING_SIMPLE_TRAITS(op) \ 92#define GNUNET_TESTING_SIMPLE_TRAITS(op, prefix) \
93 op (process, struct GNUNET_OS_Process *) 93 op (prefix, process, struct GNUNET_OS_Process *)
94 94
95 95
96GNUNET_TESTING_SIMPLE_TRAITS (GNUNET_TESTING_MAKE_DECL_SIMPLE_TRAIT) 96GNUNET_TESTING_SIMPLE_TRAITS (GNUNET_TESTING_MAKE_DECL_SIMPLE_TRAIT, GNUNET_TESTING)
97 97
98/** 98/**
99 * Call #op on all indexed traits. 99 * Call #op on all indexed traits.
100 */ 100 */
101#define GNUNET_TESTING_INDEXED_TRAITS(op) \ 101#define GNUNET_TESTING_INDEXED_TRAITS(op, prefix) \
102 op (uint32, const uint32_t) \ 102 op (prefix, uint32, const uint32_t) \
103 op (uint64, const uint64_t) \ 103 op (prefix, uint64, const uint64_t) \
104 op (int64, const int64_t) \ 104 op (prefix, int64, const int64_t) \
105 op (uint, const unsigned int) \ 105 op (prefix, uint, const unsigned int) \
106 op (string, const char) \ 106 op (prefix, string, const char) \
107 op (uuid, const struct GNUNET_Uuid) \ 107 op (prefix, uuid, const struct GNUNET_Uuid) \
108 op (time, const struct GNUNET_TIME_Absolute) \ 108 op (prefix, time, const struct GNUNET_TIME_Absolute) \
109 op (absolute_time, const struct GNUNET_TIME_Absolute) \ 109 op (prefix, absolute_time, const struct GNUNET_TIME_Absolute) \
110 op (relative_time, const struct GNUNET_TIME_Relative) 110 op (prefix, relative_time, const struct GNUNET_TIME_Relative)
111 111
112GNUNET_TESTING_INDEXED_TRAITS (GNUNET_TESTING_MAKE_DECL_INDEXED_TRAIT) 112GNUNET_TESTING_INDEXED_TRAITS (GNUNET_TESTING_MAKE_DECL_INDEXED_TRAIT, GNUNET_TESTING)
113 113
114 114
115#endif 115#endif