]> pilppa.org Git - libplp.git/blobdiff - src/config.h
api fixes and cleanups
[libplp.git] / src / config.h
index 378ec3e9bae5b9842548029c8318622d03d7da73..69e406d42b98bd77fdff7e11437d51590412c3e9 100644 (file)
 
 #include <stdbool.h>
 
-struct uci_context     *_ctx;
-struct uci_package     *_pkg;
-
-bool set_config_value_to_section(const char *conf_dir_name,
-                       const char *conf_file_name,
+#ifdef __cplusplus
+extern "C"
+#endif
+bool set_config_value_and_save(const char *conf_dir_name,
+                       const char *conf_file_basename,
                        const char *section_type,
                        const char *section_name,
                        const char *key,
                        const char *value);
 
+#ifdef __cplusplus
+extern "C"
+#endif
+char* get_config_value_and_close(const char *conf_dir_name,
+                       const char *conf_file_basename,
+                       const char *section_name,
+                       const char *key);
+
 #endif /* CONFIG_H_ */