From 9a3268d970142f0dfb4e3e77c66c9637bf87fbda Mon Sep 17 00:00:00 2001 From: Jiri Moskovcak Date: Thu, 6 Aug 2009 15:49:21 +0200 Subject: DBUS: added method GetPluginsInfo() --- lib/CommLayer/DBusServerProxy.h | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'lib/CommLayer/DBusServerProxy.h') diff --git a/lib/CommLayer/DBusServerProxy.h b/lib/CommLayer/DBusServerProxy.h index 1b8159b..157a95f 100644 --- a/lib/CommLayer/DBusServerProxy.h +++ b/lib/CommLayer/DBusServerProxy.h @@ -36,6 +36,7 @@ public: register_method(CDBusServer_adaptor, Report, _Report_stub); register_method(CDBusServer_adaptor, DeleteDebugDump, _DeleteDebugDump_stub); register_method(CDBusServer_adaptor, GetJobResult, _GetJobResult_stub); + register_method(CDBusServer_adaptor, GetPluginsInfo, _GetPluginsInfo_stub); } /* reveal Interface introspection when we stabilize the API */ /* @@ -95,7 +96,7 @@ public: virtual bool Report(map_crash_report_t pReport, const std::string &pDBusSender) = 0; virtual bool DeleteDebugDump(const std::string& pUUID, const std::string& pDBusSender) = 0; virtual map_crash_report_t GetJobResult(uint64_t pJobID, const std::string& pDBusSender) = 0; - + virtual vector_map_string_string_t GetPluginsInfo() = 0; public: /* signal emitters for this interface @@ -216,5 +217,15 @@ private: wi << report; return reply; } + + DBus::Message _GetPluginsInfo_stub(const DBus::CallMessage &call) + { + vector_map_string_string_t plugins_info; + plugins_info = GetPluginsInfo(); + DBus::ReturnMessage reply(call); + DBus::MessageIter wi = reply.writer(); + wi << plugins_info; + return reply; + } }; -- cgit