X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fuci.git;a=blobdiff_plain;f=cli.c;h=93517bf392b26a54b25f3f814eefa15ed7140278;hp=3a19b36c9a7bdc193e1b56b702a5a1dacfcae9cd;hb=92f4eac56f3cf1bf21c352193e3bf40723a6e87f;hpb=8f5a6c07caaaf5bd692623d1ed8ffbfa20f564d8 diff --git a/cli.c b/cli.c index 3a19b36..93517bf 100644 --- a/cli.c +++ b/cli.c @@ -12,19 +12,31 @@ */ #include #include +#include #include "uci.h" +static const char *appname = "uci"; + static struct uci_context *ctx; -static char *buf = NULL; -static int buflen = 256; +enum { + CMD_GET, + CMD_SET, + CMD_DEL +}; static void uci_usage(int argc, char **argv) { fprintf(stderr, "Usage: %s [] []\n\n" "Commands:\n" - "\tshow [[.
[.