diff options
author | Karel Klic <kklic@redhat.com> | 2010-03-18 11:18:19 +0100 |
---|---|---|
committer | Karel Klic <kklic@redhat.com> | 2010-03-18 11:18:19 +0100 |
commit | e2d79ab74c2bfa798a3ec9772eb57bc4bcc7a7b8 (patch) | |
tree | 05e4aeede1499a548d02304f1d68276e21630612 /src/Daemon/MiddleWare.h | |
parent | f916f9dc8938cd59fa8a119f245e6e61d1adf496 (diff) | |
download | abrt-e2d79ab74c2bfa798a3ec9772eb57bc4bcc7a7b8.tar.gz abrt-e2d79ab74c2bfa798a3ec9772eb57bc4bcc7a7b8.tar.xz abrt-e2d79ab74c2bfa798a3ec9772eb57bc4bcc7a7b8.zip |
Allow user to select which reporter he wants to use to report a crash using CLI.
The daemon skips reporters which are not in the list of reporters provided via Report() dbus call.
Reviewed by: Jiri Moskovcak <jmoskovc@redhat.com>
Reviewed by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'src/Daemon/MiddleWare.h')
-rw-r--r-- | src/Daemon/MiddleWare.h | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/src/Daemon/MiddleWare.h b/src/Daemon/MiddleWare.h index 275d5312..4a2903c2 100644 --- a/src/Daemon/MiddleWare.h +++ b/src/Daemon/MiddleWare.h @@ -87,12 +87,20 @@ void RunActionsAndReporters(const char *pDebugDumpDir); * fails, then default config is used. If pUID is emply string, default * config is used. * ...). - * @param pCrashData A crash report. - * @param pUID An user uid - * @return A report status, which reporters ends successfuly with messages. + * @param crash_data + * A crash report. + * @param reporters + * List of allowed reporters. Which reporters will be used depends + * on the analyzer of the crash_data. Reporters missing from this list + * will not be used. + * @param caller_uid + * An user uid. + * @return + * A report status, which reporters ends successfuly with messages. */ -report_status_t Report(const map_crash_data_t& pCrashData, - map_map_string_t& pSettings, +report_status_t Report(const map_crash_data_t& crash_data, + const vector_string_t& reporters, + map_map_string_t& settings, long caller_uid); /** * Adds package name and description to debugdump dir. |