X-Git-Url: http://pilppa.org/gitweb/?p=libplp.git;a=blobdiff_plain;f=src%2Fconfig.h;h=69e406d42b98bd77fdff7e11437d51590412c3e9;hp=378ec3e9bae5b9842548029c8318622d03d7da73;hb=860d8c023b82eeca9833d4a3f534c6d11a9523f3;hpb=65f22bbea2531f7cd492d6108b8902f92b7750a8 diff --git a/src/config.h b/src/config.h index 378ec3e..69e406d 100644 --- a/src/config.h +++ b/src/config.h @@ -10,14 +10,22 @@ #include -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_ */