summaryrefslogtreecommitdiffstats
path: root/lib/Utils/Plugin.h
diff options
context:
space:
mode:
authorKarel Klic <kklic@redhat.com>2010-02-12 16:08:30 +0100
committerKarel Klic <kklic@redhat.com>2010-02-12 16:08:30 +0100
commita4ff7719867332304e5b44d7e24e3333dab256b6 (patch)
tree2fb6677121129800442995a903d8a0b754616381 /lib/Utils/Plugin.h
parente08c1d7c3c56c99cafde076529b17c956ef3aeb0 (diff)
downloadabrt-a4ff7719867332304e5b44d7e24e3333dab256b6.tar.gz
abrt-a4ff7719867332304e5b44d7e24e3333dab256b6.tar.xz
abrt-a4ff7719867332304e5b44d7e24e3333dab256b6.zip
Move LoadPluginSettings to the shared utils library. Add parameter skipKeysWithoutValue.
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