src/server/util/object.h

changeset 421
437562f5681d
parent 420
0b42a35d6add
child 422
76f2f5d532d0
equal deleted inserted replaced
420:0b42a35d6add 421:437562f5681d
67 }; 67 };
68 68
69 struct dtable { 69 struct dtable {
70 directive **dirs; 70 directive **dirs;
71 int ndir; 71 int ndir;
72 int alloc;
72 }; 73 };
73 74
74 struct httpd_object { 75 struct httpd_object {
75 pool_handle_t *pool; 76 pool_handle_t *pool;
76 char *name; 77 char *name;
130 void object_free(httpd_object *obj); 131 void object_free(httpd_object *obj);
131 132
132 /* 133 /*
133 * adds a directive to the object with the type dt (enum RequestPhase) 134 * adds a directive to the object with the type dt (enum RequestPhase)
134 */ 135 */
135 void object_add_directive(httpd_object *obj, directive *dir, int dt); 136 int object_add_directive(httpd_object *obj, directive *dir, int dt);
136 137
137 /* 138 /*
138 * get a list of all directives with a specific type 139 * get a list of all directives with a specific type
139 */ 140 */
140 #define object_get_dtable(obj,type) &obj->dt[type]; 141 #define object_get_dtable(obj,type) &obj->dt[type];

mercurial