From bccd10f39589870673ffd09de6bc09d6e00fab72 Mon Sep 17 00:00:00 2001 From: Jiri Moskovcak Date: Wed, 18 May 2011 16:55:40 +0200 Subject: report C API improvements --- src/include/report/problem_data.h | 2 ++ src/include/report/report.h | 10 ++++++++-- 2 files changed, 10 insertions(+), 2 deletions(-) (limited to 'src/include') diff --git a/src/include/report/problem_data.h b/src/include/report/problem_data.h index 1481654f..c805c37a 100644 --- a/src/include/report/problem_data.h +++ b/src/include/report/problem_data.h @@ -51,6 +51,8 @@ typedef GHashTable problem_data_t; problem_data_t *new_problem_data(void); +void add_basics_to_problem_data(problem_data_t *pd); + static inline void free_problem_data(problem_data_t *problem_data) { if (problem_data) diff --git a/src/include/report/report.h b/src/include/report/report.h index 11d19687..f57d5277 100644 --- a/src/include/report/report.h +++ b/src/include/report/report.h @@ -21,16 +21,22 @@ #include "problem_data.h" +enum { + NOWAIT = 0, + WAIT = (1 << 0), /* wait for report to finish and reload the problem data */ +}; + + /* analyzes AND reports a problem saved on disk * - takes user through all the steps in reporting wizard */ -int analyze_and_report_dir(const char* dirname); +int analyze_and_report_dir(const char* dirname, int flags); /* analyzes AND reports a problem stored in problem_data_t * it's first saved to /tmp and then processed as a dump_dir * - takes user through all the steps in reporting wizard */ -int analyze_and_report(problem_data_t *pd); +int analyze_and_report(problem_data_t *pd, int flags); /* reports a problem saved on disk * - shows only reporter selector and progress -- cgit