diff options
author | Jiri Moskovcak <jmoskovc@redhat.com> | 2009-08-11 15:33:20 +0200 |
---|---|---|
committer | Jiri Moskovcak <jmoskovc@redhat.com> | 2009-08-11 15:33:20 +0200 |
commit | 13329d88e147fac7cafcdebcafd1859a74a27aa9 (patch) | |
tree | 6d4b83a7c6cc1cd982c0cfcc84b6e36f07b83865 /src/Daemon/CrashWatcher.cpp | |
parent | b67dd4c5d4a2fdce4c6f27234b4f3dc41462d9ba (diff) | |
download | abrt-13329d88e147fac7cafcdebcafd1859a74a27aa9.tar.gz abrt-13329d88e147fac7cafcdebcafd1859a74a27aa9.tar.xz abrt-13329d88e147fac7cafcdebcafd1859a74a27aa9.zip |
DBUS: exposed methods Un/RegisterPlugin
Diffstat (limited to 'src/Daemon/CrashWatcher.cpp')
-rw-r--r-- | src/Daemon/CrashWatcher.cpp | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/Daemon/CrashWatcher.cpp b/src/Daemon/CrashWatcher.cpp index 344dda7a..0b98454e 100644 --- a/src/Daemon/CrashWatcher.cpp +++ b/src/Daemon/CrashWatcher.cpp @@ -908,3 +908,35 @@ map_plugin_settings_t CCrashWatcher::GetPluginSettings(const std::string& pName) Warning(e.what()); } } + +void CCrashWatcher::RegisterPlugin(const std::string& pName) +{ + try + { + m_pMW->RegisterPlugin(pName); + } + catch(CABRTException &e) + { + if (e.type() == EXCEP_FATAL) + { + throw e; + } + Warning(e.what()); + } +} + +void CCrashWatcher::UnRegisterPlugin(const std::string& pName) +{ + try + { + m_pMW->UnRegisterPlugin(pName); + } + catch(CABRTException &e) + { + if (e.type() == EXCEP_FATAL) + { + throw e; + } + Warning(e.what()); + } +} |