summaryrefslogtreecommitdiffstats
path: root/lib/Utils/Plugin.h
diff options
context:
space:
mode:
authorJiri Moskovcak <jmoskovc@redhat.com>2010-02-12 16:13:43 +0100
committerJiri Moskovcak <jmoskovc@redhat.com>2010-02-12 16:13:43 +0100
commitfd889cd72bd75634ed269e561c26732bd9e4a6e1 (patch)
tree633822db37f9fb1cd4bea97eb7cf467510e4461e /lib/Utils/Plugin.h
parentd862c355099cddbd01a719029ce2161a4a6cc05d (diff)
parent5c273a5686f8d002a16183f44f73b4f50a03e799 (diff)
downloadabrt-fd889cd72bd75634ed269e561c26732bd9e4a6e1.tar.gz
abrt-fd889cd72bd75634ed269e561c26732bd9e4a6e1.tar.xz
abrt-fd889cd72bd75634ed269e561c26732bd9e4a6e1.zip
Merge branch 'master' into rhel6
Diffstat (limited to 'lib/Utils/Plugin.h')
-rw-r--r--lib/Utils/Plugin.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/lib/Utils/Plugin.h b/lib/Utils/Plugin.h
index c699eb36..a2d3a7e9 100644
--- a/lib/Utils/Plugin.h
+++ b/lib/Utils/Plugin.h
@@ -118,9 +118,23 @@ typedef struct SPluginInfo
PLUGINS_MAGIC_NUMBER,\
};
-/* helper finctions */
+/* helper functions */
std::string make_description_bz(const map_crash_data_t& pCrashData);
std::string make_description_logger(const map_crash_data_t& pCrashData);
std::string make_description_catcut(const map_crash_data_t& pCrashData);
+/**
+ * Loads settings and stores it in second parameter. On success it
+ * returns true, otherwise returns false.
+ *
+ * @param path A path of config file.
+ * Config file consists of "key=value" lines.
+ * Lines in format "key=" (without value) are skipped.
+ * @param settings A readed plugin's settings.
+ * @return if it success it returns true, otherwise it returns false.
+ */
+extern bool LoadPluginSettings(const char *pPath,
+ map_plugin_settings_t& pSettings,
+ bool skipKeysWithoutValue = true);
+
#endif