diff options
author | Felix Fietkau <nbd@openwrt.org> | 2008-02-03 05:10:21 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2008-02-03 05:10:21 +0100 |
commit | 818f7b8433ae369c20fc56cccbb55b22043b9024 (patch) | |
tree | 072384a2c276661bcf31328d4df41d46df1300ff /libuci.c | |
parent | f2520c27cd7942dc01d3386b4083b128648343c0 (diff) | |
download | uci-818f7b8433ae369c20fc56cccbb55b22043b9024.tar.gz |
move history code into history.c
Diffstat (limited to 'libuci.c')
-rw-r--r-- | libuci.c | 27 |
1 files changed, 1 insertions, 26 deletions
@@ -41,6 +41,7 @@ static const char *uci_errstr[] = { #include "util.c" #include "list.c" +#include "history.c" #include "file.c" /* exported functions */ @@ -85,18 +86,6 @@ ignore: return; } -int uci_add_history_path(struct uci_context *ctx, const char *dir) -{ - struct uci_element *e; - - UCI_HANDLE_ERR(ctx); - UCI_ASSERT(ctx, dir != NULL); - e = uci_alloc_generic(ctx, UCI_TYPE_PATH, dir, sizeof(struct uci_element)); - uci_list_add(&ctx->history_path, &e->list); - - return 0; -} - int uci_set_confdir(struct uci_context *ctx, const char *dir) { char *cdir; @@ -111,20 +100,6 @@ int uci_set_confdir(struct uci_context *ctx, const char *dir) return 0; } -int uci_set_savedir(struct uci_context *ctx, const char *dir) -{ - char *sdir; - - UCI_HANDLE_ERR(ctx); - UCI_ASSERT(ctx, dir != NULL); - - sdir = uci_strdup(ctx, dir); - if (ctx->savedir != uci_savedir) - free(ctx->savedir); - ctx->savedir = sdir; - return 0; -} - int uci_cleanup(struct uci_context *ctx) { UCI_HANDLE_ERR(ctx); |