From fb2a6b148021b24defa42c861110f49d601f2c27 Mon Sep 17 00:00:00 2001 From: Leandro Pereira Date: Sat, 29 Jun 2019 18:18:12 -0700 Subject: Allow more dynamic InfoGroup creation --- includes/info.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'includes') diff --git a/includes/info.h b/includes/info.h index a665f0a3..91eb0eaf 100644 --- a/includes/info.h +++ b/includes/info.h @@ -18,6 +18,7 @@ #pragma once +#include #include struct Info { @@ -54,9 +55,12 @@ struct InfoField { struct Info *info_new(void); -void info_add_group(struct Info *info, const gchar *group_name, ...); +struct InfoGroup *info_add_group(struct Info *info, const gchar *group_name, ...); void info_add_computed_group(struct Info *info, const gchar *name, const gchar *value); +void info_group_add_fields(struct InfoGroup *group, ...); +void info_group_add_fieldsv(struct InfoGroup *group, va_list ap); + struct InfoField info_field(const gchar *name, const gchar *value); struct InfoField info_field_printf(const gchar *name, const gchar *format, ...) __attribute__((format(printf, 2, 3))); -- cgit v1.2.3