-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;
-}
-