X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fuci.git;a=blobdiff_plain;f=cli.c;h=93517bf392b26a54b25f3f814eefa15ed7140278;hp=e02b4f969452549a330ac9ff32dfe4dd4e716091;hb=09a2be57d769a9b0f80e5aff75ec8bc6acae8e9a;hpb=ad3ee18608b7dbc1cca254d0fb67e0d8f76e4cb8 diff --git a/cli.c b/cli.c index e02b4f9..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 [[.
[.