Update Debian Vcs-* fields to point to git repository
[onak.git] / gpgstats-0.0.2 / parse.h
1 /*
2         parse.h - General string parsing routines.
3         Copyright 1999 Jonathan McDowell for Project Purple
4
5         19/09/1999 - Started writing.
6 */
7
8 #ifndef __PARSE_H_
9 #define __PARSE_H_
10
11 #define CMDLEN 16
12
13 struct cfginf {
14         char command[CMDLEN];
15         int type;       /* 0 : No option.
16                            1 : String.
17                            2 : Bool (in an int).
18                            3 : Int.
19                            4 : strll (see below) */
20         void *var;      /* Variable to store option in */
21 };
22
23 /* Linked list class for strings to allow returning a set of strings */
24 struct strll {
25         char *str;
26         struct strll *next;
27 };
28
29 int parseline(struct cfginf commands[], const char *commandline);
30 int str2bool(const char *buf);
31
32 #endif