projects
/
project
/
uci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
return a pointer to the uci_config struct in uci_load
[project/uci.git]
/
cli.c
diff --git
a/cli.c
b/cli.c
index
d83e257
..
5e0697d
100644
(file)
--- a/
cli.c
+++ b/
cli.c
@@
-28,6
+28,13
@@
static void uci_usage(int argc, char **argv)
exit(255);
}
exit(255);
}
+static void uci_show_file(const char *name)
+{
+ struct uci_config *cfg;
+ uci_load(ctx, name, &cfg);
+ uci_unload(ctx, name);
+}
+
static int uci_show(int argc, char **argv)
{
char **configs = uci_list_configs(ctx);
static int uci_show(int argc, char **argv)
{
char **configs = uci_list_configs(ctx);
@@
-38,6
+45,7
@@
static int uci_show(int argc, char **argv)
for (p = configs; *p; p++) {
fprintf(stderr, "# config: %s\n", *p);
for (p = configs; *p; p++) {
fprintf(stderr, "# config: %s\n", *p);
+ uci_show_file(*p);
}
return 0;
}
return 0;