Repository: incubator-mynewt-core
Updated Branches:
refs/heads/develop 84f0e6c72 -> 69914287c
config; remote save start/save end callbacks, as they do nothing
at the moment.
Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/69914287
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/69914287
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/69914287
Branch: refs/heads/develop
Commit: 69914287ca3ef1482f6651bb378c268d489e9220
Parents: 84f0e6c
Author: Marko Kiiskila <marko@runtime.io>
Authored: Fri Jun 10 12:47:18 2016 -0700
Committer: Marko Kiiskila <marko@runtime.io>
Committed: Fri Jun 10 12:48:49 2016 -0700
----------------------------------------------------------------------
sys/config/src/config_fcb.c | 16 ----------------
sys/config/src/config_file.c | 16 ----------------
2 files changed, 32 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/69914287/sys/config/src/config_fcb.c
----------------------------------------------------------------------
diff --git a/sys/config/src/config_fcb.c b/sys/config/src/config_fcb.c
index 556ece7..cc6debf 100644
--- a/sys/config/src/config_fcb.c
+++ b/sys/config/src/config_fcb.c
@@ -35,16 +35,12 @@ struct conf_fcb_load_cb_arg {
};
static int conf_fcb_load(struct conf_store *, load_cb cb, void *cb_arg);
-static int conf_fcb_save_start(struct conf_store *);
static int conf_fcb_save(struct conf_store *, const char *name,
const char *value);
-static int conf_fcb_save_end(struct conf_store *);
static struct conf_store_itf conf_fcb_itf = {
.csi_load = conf_fcb_load,
- .csi_save_start = conf_fcb_save_start,
.csi_save = conf_fcb_save,
- .csi_save_end = conf_fcb_save_end
};
int
@@ -220,12 +216,6 @@ conf_fcb_compress(struct conf_fcb *cf)
}
static int
-conf_fcb_save_start(struct conf_store *cs)
-{
- return 0;
-}
-
-static int
conf_fcb_append(struct conf_fcb *cf, char *buf, int len)
{
int rc;
@@ -268,10 +258,4 @@ conf_fcb_save(struct conf_store *cs, const char *name, const char *value)
return conf_fcb_append(cf, buf, len);
}
-static int
-conf_fcb_save_end(struct conf_store *cs)
-{
- return OS_EINVAL;
-}
-
#endif
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/69914287/sys/config/src/config_file.c
----------------------------------------------------------------------
diff --git a/sys/config/src/config_file.c b/sys/config/src/config_file.c
index 0012fca..c6d744d 100644
--- a/sys/config/src/config_file.c
+++ b/sys/config/src/config_file.c
@@ -30,16 +30,12 @@
#include "config_priv.h"
static int conf_file_load(struct conf_store *, load_cb cb, void *cb_arg);
-static int conf_file_save_start(struct conf_store *);
static int conf_file_save(struct conf_store *, const char *name,
const char *value);
-static int conf_file_save_end(struct conf_store *);
static struct conf_store_itf conf_file_itf = {
.csi_load = conf_file_load,
- .csi_save_start = conf_file_save_start,
.csi_save = conf_file_save,
- .csi_save_end = conf_file_save_end
};
/*
@@ -242,12 +238,6 @@ conf_file_compress(struct conf_file *cf)
* Called to save configuration.
*/
static int
-conf_file_save_start(struct conf_store *cs)
-{
- return OS_OK;
-}
-
-static int
conf_file_save(struct conf_store *cs, const char *name, const char *value)
{
struct conf_file *cf = (struct conf_file *)cs;
@@ -288,10 +278,4 @@ conf_file_save(struct conf_store *cs, const char *name, const char *value)
return rc;
}
-static int
-conf_file_save_end(struct conf_store *cs)
-{
- return OS_OK;
-}
-
#endif
|