diff options
author | Jiri Moskovcak <jmoskovc@redhat.com> | 2011-05-18 16:55:40 +0200 |
---|---|---|
committer | Jiri Moskovcak <jmoskovc@redhat.com> | 2011-05-18 16:55:40 +0200 |
commit | bccd10f39589870673ffd09de6bc09d6e00fab72 (patch) | |
tree | 43d0f2e39cb62718ff44522ca6ddca389ac84a81 /src/include | |
parent | 826900355023fcfef39cc91721e681cf558a11f6 (diff) | |
download | abrt-bccd10f39589870673ffd09de6bc09d6e00fab72.tar.gz abrt-bccd10f39589870673ffd09de6bc09d6e00fab72.tar.xz abrt-bccd10f39589870673ffd09de6bc09d6e00fab72.zip |
report C API improvements
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/report/problem_data.h | 2 | ||||
-rw-r--r-- | src/include/report/report.h | 10 |
2 files changed, 10 insertions, 2 deletions
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 |