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/CommLayerServerDBus.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/Daemon/CommLayerServerDBus.cpp') diff --git a/src/Daemon/CommLayerServerDBus.cpp b/src/Daemon/CommLayerServerDBus.cpp index 103f8675..d45209a3 100644 --- a/src/Daemon/CommLayerServerDBus.cpp +++ b/src/Daemon/CommLayerServerDBus.cpp @@ -247,7 +247,7 @@ static int handle_Report(DBusMessage* call, DBusMessage* reply) return 0; } - /* Second parameter: reporters to use */ + /* Second parameter: list of reporters to use */ vector_string_t reporters; r = load_val(&in_iter, reporters); if (r == ABRT_DBUS_ERROR) @@ -256,7 +256,7 @@ static int handle_Report(DBusMessage* call, DBusMessage* reply) return -1; } - /* Third parameter is optional */ + /* Third parameter (optional): configuration data for plugins */ map_map_string_t user_conf_data; if (r == ABRT_DBUS_MORE_FIELDS) { @@ -294,7 +294,7 @@ static int handle_Report(DBusMessage* call, DBusMessage* reply) report_status_t argout1; try { - argout1 = Report(argin1, user_conf_data, unix_uid); + argout1 = Report(argin1, reporters, user_conf_data, unix_uid); } catch (CABRTException &e) { -- cgit