From 7b773f5c8225479e0748db69b9ac7f92b127890c Mon Sep 17 00:00:00 2001 From: "Leandro A. F. Pereira" Date: Tue, 24 Oct 2006 21:14:35 +0000 Subject: Allows to change the report output format. Better report generation code. --- hardinfo2/report.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'hardinfo2/report.h') 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__ */ -- cgit v1.2.3