aboutsummaryrefslogtreecommitdiff
path: root/hardinfo2/report.h
diff options
context:
space:
mode:
authorLeandro A. F. Pereira <leandro@hardinfo.org>2006-10-24 21:14:35 +0000
committerLeandro A. F. Pereira <leandro@hardinfo.org>2006-10-24 21:14:35 +0000
commit7b773f5c8225479e0748db69b9ac7f92b127890c (patch)
treec17b8af3a09888232fc64a4f73605c1c81a5c2d9 /hardinfo2/report.h
parentc4fea4934333faac2a6629c945333697d2d15142 (diff)
Allows to change the report output format. Better report generation code.
Diffstat (limited to 'hardinfo2/report.h')
-rw-r--r--hardinfo2/report.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/hardinfo2/report.h b/hardinfo2/report.h
index 7a168d4a..1312f0cd 100644
--- a/hardinfo2/report.h
+++ b/hardinfo2/report.h
@@ -27,7 +27,7 @@ typedef struct _ReportContext ReportContext;
struct _ReportContext {
ReportDialog *rd;
ShellModuleEntry *entry;
- gpointer stream;
+ gchar *output;
void (*header) (ReportContext *ctx);
void (*footer) (ReportContext *ctx);
@@ -59,8 +59,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, gpointer stream);
-ReportContext *report_context_text_new(ReportDialog *rd, gpointer stream);
-ReportContext *report_context_string_new(ReportDialog *rd, gpointer string);
+ReportContext *report_context_html_new(ReportDialog *rd);
+ReportContext *report_context_text_new(ReportDialog *rd);
+ReportContext *report_context_string_new(ReportDialog *rd);
+
+void report_context_free(ReportContext *ctx);
#endif /* __REPORT_H__ */