summaryrefslogtreecommitdiffstats
path: root/src/CLI/dbus.cpp
diff options
context:
space:
mode:
authorKarel Klic <kklic@redhat.com>2009-11-09 13:53:21 +0100
committerKarel Klic <kklic@redhat.com>2009-11-09 13:53:21 +0100
commit7e6c31b4bce9958453920c5893ceeb0c45c8a6f7 (patch)
tree3ffaec9836ea98285faf9f038a6a3c6301606965 /src/CLI/dbus.cpp
parent98f5de8526c51d8ba8495351837b6ef5822860ad (diff)
downloadabrt-7e6c31b4bce9958453920c5893ceeb0c45c8a6f7.tar.gz
abrt-7e6c31b4bce9958453920c5893ceeb0c45c8a6f7.tar.xz
abrt-7e6c31b4bce9958453920c5893ceeb0c45c8a6f7.zip
GetPluginsInfo implementation
Diffstat (limited to 'src/CLI/dbus.cpp')
-rw-r--r--src/CLI/dbus.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/CLI/dbus.cpp b/src/CLI/dbus.cpp
index 420fe703..42222d15 100644
--- a/src/CLI/dbus.cpp
+++ b/src/CLI/dbus.cpp
@@ -113,6 +113,21 @@ void call_DeleteDebugDump(const char* uuid)
dbus_message_unref(reply);
}
+vector_map_string_t call_GetPluginsInfo()
+{
+ DBusMessage *msg = new_call_msg("GetPluginsInfo");
+ DBusMessage *reply = send_get_reply_and_unref(msg);
+
+ vector_map_string_t argout;
+ DBusMessageIter in_iter;
+ dbus_message_iter_init(reply, &in_iter);
+ int r = load_val(&in_iter, argout);
+ if (r != ABRT_DBUS_LAST_FIELD) /* more values present, or bad type */
+ error_msg_and_die("dbus call GetPluginsInfo: return type mismatch");
+ dbus_message_unref(reply);
+ return argout;
+}
+
void handle_dbus_err(bool error_flag, DBusError *err)
{
if (dbus_error_is_set(err))