summaryrefslogtreecommitdiff
path: root/sys/config/src
diff options
context:
space:
mode:
Diffstat (limited to 'sys/config/src')
-rw-r--r--sys/config/src/config_cli.c2
-rw-r--r--sys/config/src/config_store.c2
-rw-r--r--sys/config/src/test/conf_test.c18
3 files changed, 14 insertions, 8 deletions
diff --git a/sys/config/src/config_cli.c b/sys/config/src/config_cli.c
index 7c395981..29238459 100644
--- a/sys/config/src/config_cli.c
+++ b/sys/config/src/config_cli.c
@@ -48,7 +48,7 @@ conf_dump_running(void)
SLIST_FOREACH(ch, &conf_handlers, ch_list) {
if (ch->ch_export) {
- ch->ch_export(conf_running_one);
+ ch->ch_export(conf_running_one, CONF_EXPORT_SHOW);
}
}
}
diff --git a/sys/config/src/config_store.c b/sys/config/src/config_store.c
index 6bd94a11..87f9955c 100644
--- a/sys/config/src/config_store.c
+++ b/sys/config/src/config_store.c
@@ -159,7 +159,7 @@ conf_save(void)
rc = 0;
SLIST_FOREACH(ch, &conf_handlers, ch_list) {
if (ch->ch_export) {
- rc2 = ch->ch_export(conf_store_one);
+ rc2 = ch->ch_export(conf_store_one, CONF_EXPORT_PERSIST);
if (!rc) {
rc = rc2;
}
diff --git a/sys/config/src/test/conf_test.c b/sys/config/src/test/conf_test.c
index 35ed588e..cde1ccaa 100644
--- a/sys/config/src/test/conf_test.c
+++ b/sys/config/src/test/conf_test.c
@@ -46,15 +46,18 @@ static char *ctest_handle_get(int argc, char **argv, char *val,
int val_len_max);
static int ctest_handle_set(int argc, char **argv, char *val);
static int ctest_handle_commit(void);
-static int ctest_handle_export(void (*cb)(char *name, char *value));
+static int ctest_handle_export(void (*cb)(char *name, char *value),
+ enum conf_export_tgt tgt);
static char *c2_handle_get(int argc, char **argv, char *val,
int val_len_max);
static int c2_handle_set(int argc, char **argv, char *val);
-static int c2_handle_export(void (*cb)(char *name, char *value));
+static int c2_handle_export(void (*cb)(char *name, char *value),
+ enum conf_export_tgt tgt);
static char *c3_handle_get(int argc, char **argv, char *val,
int val_len_max);
static int c3_handle_set(int argc, char **argv, char *val);
-static int c3_handle_export(void (*cb)(char *name, char *value));
+static int c3_handle_export(void (*cb)(char *name, char *value),
+ enum conf_export_tgt tgt);
struct conf_handler config_test_handler = {
.ch_name = "myfoo",
@@ -98,7 +101,8 @@ ctest_handle_commit(void)
}
static int
-ctest_handle_export(void (*cb)(char *name, char *value))
+ctest_handle_export(void (*cb)(char *name, char *value),
+ enum conf_export_tgt tgt)
{
char value[32];
@@ -177,7 +181,8 @@ c2_handle_set(int argc, char **argv, char *val)
}
static int
-c2_handle_export(void (*cb)(char *name, char *value))
+c2_handle_export(void (*cb)(char *name, char *value),
+ enum conf_export_tgt tgt)
{
int i;
char name[32];
@@ -222,7 +227,8 @@ c3_handle_set(int argc, char **argv, char *val)
}
static int
-c3_handle_export(void (*cb)(char *name, char *value))
+c3_handle_export(void (*cb)(char *name, char *value),
+ enum conf_export_tgt tgt)
{
char value[32];