X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fuci.git;a=blobdiff_plain;f=cli.c;h=93517bf392b26a54b25f3f814eefa15ed7140278;hp=4bc023445b2c1d59114aaaa4b8745e6e981019a3;hb=09a2be57d769a9b0f80e5aff75ec8bc6acae8e9a;hpb=789aa0a4105c34212c2a4a1be7b0c6095691139c diff --git a/cli.c b/cli.c index 4bc0234..93517bf 100644 --- a/cli.c +++ b/cli.c @@ -12,123 +12,98 @@ */ #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 [[.
[.