diff options
author | Leandro A. F. Pereira <leandro@hardinfo.org> | 2006-11-19 19:38:31 +0000 |
---|---|---|
committer | Leandro A. F. Pereira <leandro@hardinfo.org> | 2006-11-19 19:38:31 +0000 |
commit | 5e7c1a3a03269b5088b26ecf9c676518d65a05e4 (patch) | |
tree | d4b9b5c0731a252954a897892633d1f7f6c8fbc4 /hardinfo2/report.h | |
parent | 8708504c28caeee4bd3e95b6b6d739970863f19c (diff) |
Run hardinfo with the '-r' command-line parameter and you'll get a report in standard output. :)
Diffstat (limited to 'hardinfo2/report.h')
-rw-r--r-- | hardinfo2/report.h | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/hardinfo2/report.h b/hardinfo2/report.h index 8762f671..faf04ac5 100644 --- a/hardinfo2/report.h +++ b/hardinfo2/report.h @@ -21,11 +21,15 @@ #include <gtk/gtk.h> #include <shell.h> +typedef enum { + REPORT_FORMAT_TEXT, + REPORT_FORMAT_HTML +} ReportFormat; + typedef struct _ReportDialog ReportDialog; typedef struct _ReportContext ReportContext; struct _ReportContext { - ReportDialog *rd; ShellModuleEntry *entry; gchar *output; @@ -51,6 +55,9 @@ struct _ReportDialog { void report_dialog_show(); +ReportContext *report_context_html_new(); +ReportContext *report_context_text_new(); + void report_header (ReportContext *ctx); void report_footer (ReportContext *ctx); void report_title (ReportContext *ctx, gchar *text); @@ -59,10 +66,10 @@ void report_subsubtitle (ReportContext *ctx, gchar *text); void report_key_value (ReportContext *ctx, gchar *key, gchar *value); void report_table (ReportContext *ctx, gchar *text); -ReportContext *report_context_html_new(ReportDialog *rd); -ReportContext *report_context_text_new(ReportDialog *rd); -ReportContext *report_context_string_new(ReportDialog *rd); +void report_create_from_module_list(ReportContext *ctx, GSList *modules); +gchar *report_create_from_module_list_format(GSList *modules, ReportFormat format); void report_context_free(ReportContext *ctx); +void report_module_list_free(GSList *modules); #endif /* __REPORT_H__ */ |