summaryrefslogtreecommitdiff
path: root/clients/cli/utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'clients/cli/utils.h')
-rw-r--r--clients/cli/utils.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/clients/cli/utils.h b/clients/cli/utils.h
index 883e73188c..6c0d1f4735 100644
--- a/clients/cli/utils.h
+++ b/clients/cli/utils.h
@@ -159,6 +159,12 @@ struct _NmcMetaGenericInfo {
#define NMC_META_GENERIC_WITH_NESTED(n, nest, ...) \
NMC_META_GENERIC (n, .nested = (nest), __VA_ARGS__)
+#define NMC_META_GENERIC_GROUP(_group_name, _nested, _name_header) \
+ ((const NMMetaAbstractInfo *const*) ((const NmcMetaGenericInfo *const[]) { \
+ NMC_META_GENERIC_WITH_NESTED (_group_name,_nested, .name_header = _name_header), \
+ NULL, \
+ }))
+
/*****************************************************************************/
gboolean nmc_print (const NmcConfig *nmc_config,