blob: 5ce7a630152c9376c01146711d16ac766dbec5bb [file] [log] [blame]
xjde81d1d2021-11-25 15:01:52 +08001#ifndef _LYNQ_UCI_H_
2#define _LYNQ_UCI_H_
3
4#ifdef __cplusplus
5extern "C" {
6#endif
7
8#include <uci.h>
9
10#define LYNQ_UCI_MAX_LEN 128
11#define LYNQ_UCI_SUCCESS 0
12#define LYNQ_UCI_ERROR 1
13#define LYNQ_UCI_FILE "lynq_uci"
14#define LYNQ_UCI_RO_FILE "lynq_uci_ro"
15
16//static struct uci_context * ctx = NULL;
17
18int lynq_del(char *option);
19
20static int uci_get_value(struct uci_option *o, char *out_buf);
21
22int lynq_uci_get(const char *arg, char *out_buf);
23
24int lynq_uci_set(const char *arg);
25
26int lynq_add_section(char *section_type, char *section);
27
28int lynq_set_value(char *section, char *key, char *value);
29
30int lynq_get_value(char *file, char *section, char *key, char *tmp);
31
xjde81d1d2021-11-25 15:01:52 +080032#ifdef __cplusplus
33}
34#endif
35#endif