X-Git-Url: http://pilppa.org/gitweb/?a=blobdiff_plain;f=libuci.c;h=1a09fc7e454b0ac09e33c6af655601dde47ae8bd;hb=c4402a9e59721172395d9403cfbe467209bcd6ad;hp=5b22ef1c6af2471431601f2f7642d4d8ea4870fb;hpb=853f586e4894aba060372b4655334921cda10464;p=uci.git diff --git a/libuci.c b/libuci.c index 5b22ef1..1a09fc7 100644 --- a/libuci.c +++ b/libuci.c @@ -44,7 +44,7 @@ static void uci_unload_plugin(struct uci_context *ctx, struct uci_plugin *p); #include "uci_internal.h" #include "list.c" -#include "history.c" +#include "delta.c" /* exported functions */ struct uci_context *uci_alloc_context(void) @@ -57,11 +57,11 @@ struct uci_context *uci_alloc_context(void) memset(ctx, 0, sizeof(struct uci_context)); uci_list_init(&ctx->root); - uci_list_init(&ctx->history_path); + uci_list_init(&ctx->delta_path); uci_list_init(&ctx->backends); uci_list_init(&ctx->hooks); uci_list_init(&ctx->plugins); - ctx->flags = UCI_FLAG_STRICT | UCI_FLAG_SAVED_HISTORY; + ctx->flags = UCI_FLAG_STRICT | UCI_FLAG_SAVED_DELTA; ctx->confdir = (char *) uci_confdir; ctx->savedir = (char *) uci_savedir; @@ -87,7 +87,7 @@ void uci_free_context(struct uci_context *ctx) struct uci_package *p = uci_to_package(e); uci_free_package(&p); } - uci_foreach_element_safe(&ctx->history_path, tmp, e) { + uci_foreach_element_safe(&ctx->delta_path, tmp, e) { uci_free_element(e); } UCI_TRAP_RESTORE(ctx);