diff options
| author | Denys Vlasenko <vda.linux@googlemail.com> | 2010-03-01 13:37:27 +0100 |
|---|---|---|
| committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-03-01 13:37:27 +0100 |
| commit | 755b62981c0aef4ff825f8f8465d3e38123889b3 (patch) | |
| tree | bef83849ef66b7ed485423a2c58bad968f0f11c4 /src/Daemon/CommLayerServerDBus.cpp | |
| parent | b2b2a3cf60ebe5ba5a45024659f8ddb8fe37e0a0 (diff) | |
| download | abrt-755b62981c0aef4ff825f8f8465d3e38123889b3.tar.gz abrt-755b62981c0aef4ff825f8f8465d3e38123889b3.tar.xz abrt-755b62981c0aef4ff825f8f8465d3e38123889b3.zip | |
add reporters param to dbus call Report()
This only adds the parameter, so far it is just ignored
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'src/Daemon/CommLayerServerDBus.cpp')
| -rw-r--r-- | src/Daemon/CommLayerServerDBus.cpp | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/Daemon/CommLayerServerDBus.cpp b/src/Daemon/CommLayerServerDBus.cpp index 47b66826..a397dd15 100644 --- a/src/Daemon/CommLayerServerDBus.cpp +++ b/src/Daemon/CommLayerServerDBus.cpp @@ -227,12 +227,11 @@ static int handle_Report(DBusMessage* call, DBusMessage* reply) map_crash_data_t argin1; r = load_val(&in_iter, argin1); - if (r == ABRT_DBUS_ERROR) + if (r != ABRT_DBUS_MORE_FIELDS) { error_msg("dbus call %s: parameter type mismatch", __func__ + 7); return -1; } - const char* comment = get_crash_data_item_content_or_NULL(argin1, FILENAME_COMMENT) ? : ""; const char* reproduce = get_crash_data_item_content_or_NULL(argin1, FILENAME_REPRODUCE) ? : ""; const char* errmsg = NULL; @@ -254,7 +253,16 @@ static int handle_Report(DBusMessage* call, DBusMessage* reply) return 0; } - /* Second parameter is optional */ + /* Second parameter: reporters to use */ + vector_string_t reporters; + r = load_val(&in_iter, reporters); + if (r == ABRT_DBUS_ERROR) + { + error_msg("dbus call %s: parameter type mismatch", __func__ + 7); + return -1; + } + + /* Third parameter is optional */ map_map_string_t user_conf_data; if (r == ABRT_DBUS_MORE_FIELDS) { |
