summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorLeandro Pereira <leandro@hardinfo.org>2019-06-29 18:18:12 -0700
committerLeandro Pereira <leandro@hardinfo.org>2019-06-29 18:18:12 -0700
commitfb2a6b148021b24defa42c861110f49d601f2c27 (patch)
treea99c665261306c25dadd0c7baa1c01025989eafe /includes
parent9dadc700d826dcb57896f3461aa0ae0102e2553e (diff)
Allow more dynamic InfoGroup creation
Diffstat (limited to 'includes')
-rw-r--r--includes/info.h6
1 files changed, 5 insertions, 1 deletions
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 <stdarg.h>
#include <glib.h>
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)));