From 9eaf1a7a96aabc021594bcc6f5fe2ef60da8fb0c Mon Sep 17 00:00:00 2001 From: Burt P Date: Mon, 22 Oct 2018 14:25:12 -0500 Subject: shell/report: allow "moreinfo" details to appear in reports Fixes https://github.com/lpereira/hardinfo/issues/223 The first item to use it will be Devices/Processors/Package Info. Signed-off-by: Burt P --- includes/report.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'includes/report.h') diff --git a/includes/report.h b/includes/report.h index c04d2073..931a536e 100644 --- a/includes/report.h +++ b/includes/report.h @@ -49,13 +49,19 @@ struct _ReportContext { void (*subsubtitle) (ReportContext *ctx, gchar *text); void (*keyvalue) (ReportContext *ctx, gchar *key, gchar *value, gboolean highlight); + void (*details_start) (ReportContext *ctx, gchar *key, gchar *value, gboolean highlight); + void (*details_section) (ReportContext *ctx, gchar *name); + void (*details_keyvalue) (ReportContext *ctx, gchar *key, gchar *value, gboolean highlight); + void (*details_end) (ReportContext *ctx); + ReportFormat format; gboolean is_image_enabled; gboolean first_table; + gboolean in_details; gboolean show_column_headers; - guint columns; + guint columns, parent_columns; GHashTable *column_titles; }; @@ -83,6 +89,7 @@ void report_subtitle (ReportContext *ctx, gchar *text); void report_subsubtitle (ReportContext *ctx, gchar *text); void report_key_value (ReportContext *ctx, gchar *key, gchar *value, gboolean highlight); void report_table (ReportContext *ctx, gchar *text); +void report_details (ReportContext *ctx, gchar *key, gchar *value, gboolean highlight, gchar *details); void report_create_from_module_list(ReportContext *ctx, GSList *modules); gchar *report_create_from_module_list_format(GSList *modules, ReportFormat format); -- cgit v1.2.3