src/server/config/conf.h

changeset 95
74a81d9e19d0
parent 91
fac51f87def0
child 415
d938228c382e
equal deleted inserted replaced
94:6b15a094d996 95:74a81d9e19d0
35 #include <ucx/list.h> 35 #include <ucx/list.h>
36 #include <ucx/map.h> 36 #include <ucx/map.h>
37 #include <ucx/mempool.h> 37 #include <ucx/mempool.h>
38 #include <ucx/string.h> 38 #include <ucx/string.h>
39 39
40 #include "../util/object.h"
41
40 #ifdef __cplusplus 42 #ifdef __cplusplus
41 extern "C" { 43 extern "C" {
42 #endif 44 #endif
43 45
44 // mempool malloc macro 46 // mempool malloc macro
58 #define TAG_OBJECT 0 60 #define TAG_OBJECT 0
59 #define TAG_IF 1 61 #define TAG_IF 1
60 #define TAG_ELSEIF 2 62 #define TAG_ELSEIF 2
61 #define TAG_ELSE 3 63 #define TAG_ELSE 3
62 #define TAG_CLIENT 4 64 #define TAG_CLIENT 4
65
66
67 #define INIT_DIRECTIVE 16
63 68
64 typedef struct _cfg_line { 69 typedef struct _cfg_line {
65 sstr_t line; // raw line string 70 sstr_t line; // raw line string
66 void *object; // pointer to data struct 71 void *object; // pointer to data struct
67 int type; // type, see line types 72 int type; // type, see line types

mercurial