X-Git-Url: http://pilppa.org/gitweb/?p=libplp.git;a=blobdiff_plain;f=src%2Fprivate%2Fuci_config.h;fp=src%2Fprivate%2Fuci_config.h;h=c06e7250719460fc5d27497abb7d2c2d4830e398;hp=0000000000000000000000000000000000000000;hb=860d8c023b82eeca9833d4a3f534c6d11a9523f3;hpb=65f22bbea2531f7cd492d6108b8902f92b7750a8 diff --git a/src/private/uci_config.h b/src/private/uci_config.h new file mode 100644 index 0000000..c06e725 --- /dev/null +++ b/src/private/uci_config.h @@ -0,0 +1,54 @@ +/* + * uci_config.h + * + * Created on: Aug 2, 2012 + * Author: lamikr + */ + +#ifndef UCI_CONFIG_H_ +#define UCI_CONFIG_H_ + +#include +#include +#include +#include +#include +#include + +#ifdef __cplusplus +extern "C" +#endif +int uci_create_named_section(struct uci_context *ctx, + const char *conf_fname_base, /* filename without directories */ + const char *section_type, + const char *section_name, + bool save_immediately); + +#ifdef __cplusplus +extern "C" +#endif +bool uci_set_config_value(struct uci_context *ctx, + struct uci_package *pkg, + const char *conf_fname_base, + const char *conf_fname_full, + const char *section_type, + const char *section_name, + const char *key, + const char *value, + const bool save_immediately); + +#ifdef __cplusplus +extern "C" +#endif +char *uci_get_config_value(struct uci_context *ctx, + struct uci_package *pkg, + const char *section_name, + const char *key_name); + +#ifdef __cplusplus +extern "C" +#endif +bool uci_save_config_values(struct uci_context *ctx, + struct uci_package *pkg); + +#endif /* UCI_CONFIG_H_ */