X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fuci.git;a=blobdiff_plain;f=uci_internal.h;fp=uci_internal.h;h=5b496ea06cba7146be5bfff609db3ab613dbd62e;hp=0000000000000000000000000000000000000000;hb=14654223268133b5e74ee1748cec2374664ac5bf;hpb=24c59ffa00d5ba40483a1b0c2bce5e5af2b38a3a diff --git a/uci_internal.h b/uci_internal.h new file mode 100644 index 0000000..5b496ea --- /dev/null +++ b/uci_internal.h @@ -0,0 +1,38 @@ +/* + * libuci - Library for the Unified Configuration Interface + * Copyright (C) 2008 Felix Fietkau + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License version 2.1 + * as published by the Free Software Foundation + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +#ifndef __UCI_INTERNAL_H +#define __UCI_INTERNAL_H + +struct uci_parse_context +{ + /* error context */ + const char *reason; + int line; + int byte; + + /* private: */ + struct uci_package *package; + struct uci_section *section; + bool merge; + FILE *file; + const char *name; + char *buf; + int bufsz; +}; + +static void uci_add_history(struct uci_context *ctx, struct uci_list *list, int cmd, char *section, char *option, char *value); +static void uci_free_history(struct uci_history *h); + +#endif