1 /*
2  * CvsGraph graphical representation generator of brances and revisions
3  * of a file in cvs/rcs.
4  *
5  * Copyright (C) 2001  B. Stultiens
6  *
7  * This program is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 2 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, write to the Free Software
19  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
20  */
21 
22 #ifndef __CVSGRAPH_READCONF_H
23 #define __CVSGRAPH_READCONF_H
24 
25 /* Possible image type outputs. Gif is only supported on old versions of gd */
26 #define IMAGE_GIF	0
27 #define IMAGE_PNG	1
28 #define IMAGE_JPEG	2
29 
30 extern int line_number;
31 void stack_option(const char *opt);
32 void read_config(const char *path);
33 color_t *get_colorref(const char *confcolor, int idx);
34 
35 enum {
36 	TYPE_dummy = 256,
37 	TYPE_KEYWORD,
38 	TYPE_NUMBER,
39 	TYPE_VALUE,
40 	TYPE_BOOLEAN,
41 	TYPE_COLOR,
42 	TYPE_FONT,
43 	TYPE_STRING,
44 	TYPE_CSTRING,
45 	TYPE_DOUBLE,
46 	TYPE_COLORLIST,
47 	TYPE_STRINGLIST,
48 	OP_FIRST,
49 	OP_CONTAINED,
50 	OP_CONTAINEDI,
51 	OP_NCONTAINED,
52 	OP_NCONTAINEDI,
53 	OP_EQ,
54 	OP_NE,
55 	OP_GE,
56 	OP_GT,
57 	OP_LE,
58 	OP_LT,
59 	OP_LAST,
60 	KEY_STATE,
61 	KEY_AUTHOR,
62 	KEY_TAG,
63 	KEY_DATE,
64 	KEY_REV,
65 	KEY_UNKNOWN
66 };
67 
68 #endif
69