summaryrefslogtreecommitdiffstats
path: root/lib/CommLayer/DBusServerProxy.cpp
diff options
context:
space:
mode:
authorJiri Moskovcak <jmoskovc@redhat.com>2009-08-11 15:33:20 +0200
committerJiri Moskovcak <jmoskovc@redhat.com>2009-08-11 15:33:20 +0200
commit13329d88e147fac7cafcdebcafd1859a74a27aa9 (patch)
tree6d4b83a7c6cc1cd982c0cfcc84b6e36f07b83865 /lib/CommLayer/DBusServerProxy.cpp
parentb67dd4c5d4a2fdce4c6f27234b4f3dc41462d9ba (diff)
downloadabrt-13329d88e147fac7cafcdebcafd1859a74a27aa9.tar.gz
abrt-13329d88e147fac7cafcdebcafd1859a74a27aa9.tar.xz
abrt-13329d88e147fac7cafcdebcafd1859a74a27aa9.zip
DBUS: exposed methods Un/RegisterPlugin
Diffstat (limited to 'lib/CommLayer/DBusServerProxy.cpp')
-rw-r--r--lib/CommLayer/DBusServerProxy.cpp24
1 files changed, 24 insertions, 0 deletions
diff --git a/lib/CommLayer/DBusServerProxy.cpp b/lib/CommLayer/DBusServerProxy.cpp
index 18a7c0c..0693c6d 100644
--- a/lib/CommLayer/DBusServerProxy.cpp
+++ b/lib/CommLayer/DBusServerProxy.cpp
@@ -32,6 +32,8 @@ CDBusServer_adaptor::CDBusServer_adaptor()
register_method(CDBusServer_adaptor, GetJobResult, _GetJobResult_stub);
register_method(CDBusServer_adaptor, GetPluginsInfo, _GetPluginsInfo_stub);
register_method(CDBusServer_adaptor, GetPluginSettings, _GetPluginSettings_stub);
+ register_method(CDBusServer_adaptor, RegisterPlugin, _RegisterPlugin_stub);
+ register_method(CDBusServer_adaptor, UnRegisterPlugin, _UnRegisterPlugin_stub);
}
/* reveal Interface introspection when we stabilize the API */
/*
@@ -218,3 +220,25 @@ DBus::Message CDBusServer_adaptor::_GetPluginSettings_stub(const DBus::CallMessa
wi << plugin_settings;
return reply;
}
+
+DBus::Message CDBusServer_adaptor::_RegisterPlugin_stub(const DBus::CallMessage &call)
+{
+ DBus::MessageIter ri = call.reader();
+ std::string PluginName;
+ ri >> PluginName;
+ RegisterPlugin(PluginName);
+ DBus::ReturnMessage reply(call);
+ //DBus::MessageIter wi = reply.writer();
+ //wi << plugin_settings;
+ return reply;
+}
+
+DBus::Message CDBusServer_adaptor::_UnRegisterPlugin_stub(const DBus::CallMessage &call)
+{
+ DBus::MessageIter ri = call.reader();
+ std::string PluginName;
+ ri >> PluginName;
+ UnRegisterPlugin(PluginName);
+ DBus::ReturnMessage reply(call);
+ return reply;
+}