From e2d79ab74c2bfa798a3ec9772eb57bc4bcc7a7b8 Mon Sep 17 00:00:00 2001 From: Karel Klic Date: Thu, 18 Mar 2010 11:18:19 +0100 Subject: 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 Reviewed by: Denys Vlasenko --- src/Daemon/MiddleWare.h | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) (limited to 'src/Daemon/MiddleWare.h') diff --git a/src/Daemon/MiddleWare.h b/src/Daemon/MiddleWare.h index 275d531..4a2903c 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. -- cgit