More compile fixes
[erwise] / erwise / Types.h
1 /* $Id: Types.h,v 1.1 1992/05/18 21:43:03 tvr Exp $ */
2
3
4 typedef struct _page {
5     char *Address;
6     HText_t *HText;
7     struct _page *ParentPage;
8     struct _page *Parents;
9     struct _page *Children;     /* only two levels */
10     struct _page *Next;
11 } Page_t;
12
13
14 typedef struct _connection {
15     char *Address;
16     int Status;
17     int FD;
18     int InputId;
19     int TimeOutId;
20     ClConnection_t *ClConnection;
21     Page_t *TopPage;
22     Page_t *ParentPage;
23     struct _connection *Next;
24 } Connection_t;
25
26
27 typedef enum {
28     EOC,                        /* eof */
29     EMPTY,                      /* "" */
30     UNKNOWN,
31     RESOURCE,                   /* resource definition, id = value */
32     BLOCK,                      /* a block containing resources */
33     DYNAMIC,                    /* dynamic BLOCK */
34     DYNAMIC_PTR,                /* ptr to dynamic data (void *ptr[]) */
35     COMMENT,                    /* "# ..." */
36     START_OF_BLOCK,             /* '{' */
37     END_OF_BLOCK                /* '}' */
38 } ConfigType_t;
39
40
41 typedef struct _config {
42     ConfigType_t type;
43     char *id;
44     void *value;
45 } Config_t;