]> pilppa.org Git - libplp.git/blobdiff - src/config.h
api fixes and cleanups
[libplp.git] / src / config.h
index 07a6429f77ca33977ba6d9b9db9c6d01f4ac77de..69e406d42b98bd77fdff7e11437d51590412c3e9 100644 (file)
 
 #include <stdbool.h>
 
-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,
-                       bool save_immediately);
+                       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_ */