implement the uci changes command to display uncommitted changes
[project/uci.git] / uci_internal.h
1 /*
2 * libuci - Library for the Unified Configuration Interface
3 * Copyright (C) 2008 Felix Fietkau <nbd@openwrt.org>
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU Lesser General Public License version 2.1
7 * as published by the Free Software Foundation
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 */
14
15 #ifndef __UCI_INTERNAL_H
16 #define __UCI_INTERNAL_H
17
18 struct uci_parse_context
19 {
20 /* error context */
21 const char *reason;
22 int line;
23 int byte;
24
25 /* private: */
26 struct uci_package *package;
27 struct uci_section *section;
28 bool merge;
29 FILE *file;
30 const char *name;
31 char *buf;
32 int bufsz;
33 };
34
35 static void uci_add_history(struct uci_context *ctx, struct uci_list *list, int cmd, char *section, char *option, char *value);
36 static void uci_free_history(struct uci_history *h);
37
38 #endif