summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/CLI/dbus.cpp15
-rw-r--r--src/CLI/dbus.h12
-rw-r--r--src/Hooks/abrt-pyhook-helper.cpp2
3 files changed, 27 insertions, 2 deletions
diff --git a/src/CLI/dbus.cpp b/src/CLI/dbus.cpp
index 3f7b0ae8..50ca651b 100644
--- a/src/CLI/dbus.cpp
+++ b/src/CLI/dbus.cpp
@@ -168,6 +168,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))
diff --git a/src/CLI/dbus.h b/src/CLI/dbus.h
index c6cb82a9..fdd400ae 100644
--- a/src/CLI/dbus.h
+++ b/src/CLI/dbus.h
@@ -24,9 +24,19 @@
extern DBusConnection* s_dbus_conn;
extern vector_crash_infos_t call_GetCrashInfos();
-extern map_crash_report_t call_CreateReport(const char* uuid);
+extern map_crash_report_t call_CreateReport(const char *uuid);
extern void call_Report(const map_crash_report_t& report);
extern void call_DeleteDebugDump(const char* uuid);
+
+/* Gets basic data about all installed plugins.
+ */
+extern vector_map_string_t call_GetPluginsInfo();
+
+/* Gets default plugin settings.
+ * Parameter name corresponds to name obtained from call_GetPluginsInfo.
+ */
+extern map_plugin_settings_t call_GetPluginSettings(const char *name);
+
extern void handle_dbus_err(bool error_flag, DBusError *err);
#endif
diff --git a/src/Hooks/abrt-pyhook-helper.cpp b/src/Hooks/abrt-pyhook-helper.cpp
index 818119a6..8a5a1914 100644
--- a/src/Hooks/abrt-pyhook-helper.cpp
+++ b/src/Hooks/abrt-pyhook-helper.cpp
@@ -1,5 +1,5 @@
/*
- python-hook-writer.cpp - writes data to the /var/cache/abrt directory
+ abrt-pyhook-helper.cpp - writes data to the /var/cache/abrt directory
with SUID bit
Copyright (C) 2009 RedHat inc.