6 * Copyright (C) Jaakko Heinonen
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
33 struct conff_node *next;
37 int conff_add_key(struct conff_node **ptr, char *key,
38 char *value, int flags);
39 char *conff_get_value(struct conff_node *node, char *key);
41 void print_values(struct conff_node *root);
43 void conff_free_nodes(struct conff_node *node);
44 void conff_remove_key(struct conff_node **node, char *key);
45 int conff_save_file(struct conff_node *node, char *filename);
46 int conff_load_file(struct conff_node **node,
47 char *filename, int flags);
48 char *strtrim(char *);
51 #define DONT_REPLACE_KEY 0