5:dbc01588686e | 6:ce8fecc9847d |
---|---|
41 NSAPIAuthTrans = 0, | 41 NSAPIAuthTrans = 0, |
42 NSAPINameTrans, | 42 NSAPINameTrans, |
43 NSAPIPathCheck, | 43 NSAPIPathCheck, |
44 NSAPIObjectType, | 44 NSAPIObjectType, |
45 NSAPIService, | 45 NSAPIService, |
46 NSAPIAddLog, | |
46 REQ_FINISH, | 47 REQ_FINISH, |
47 NUM_NSAPI_TYPES | 48 NUM_NSAPI_TYPES |
48 }; | 49 }; |
49 typedef enum RequestPhase RequestPhase; | 50 typedef enum RequestPhase RequestPhase; |
50 | 51 |
88 HTTPObjectConfig *conf; | 89 HTTPObjectConfig *conf; |
89 | 90 |
90 ConditionResult **results; | 91 ConditionResult **results; |
91 int nres; | 92 int nres; |
92 | 93 |
93 httpd_objset *objset; | 94 //httpd_objset *objset; |
95 int last_req_code; | |
96 | |
97 int objset_index; | |
98 int dtable_index; | |
94 }; | 99 }; |
95 | 100 |
96 struct HTTPObjectConfig { | 101 struct HTTPObjectConfig { |
97 httpd_object **objects; | 102 httpd_object **objects; |
98 int nobj; | 103 int nobj; |
118 * get a list of all directives with a specific type | 123 * get a list of all directives with a specific type |
119 */ | 124 */ |
120 #define object_get_dtable(obj,type) &obj->dt[type]; | 125 #define object_get_dtable(obj,type) &obj->dt[type]; |
121 | 126 |
122 | 127 |
128 | |
129 /* | |
130 * creates a new httpd_objset | |
131 */ | |
132 httpd_objset* objset_create(pool_handle_t *pool); | |
133 | |
134 /* | |
135 * adds a object to the objset | |
136 */ | |
137 void objset_add_object(pool_handle_t *p, httpd_objset *os, httpd_object *obj); | |
138 | |
139 | |
123 /* | 140 /* |
124 * creates a new HTTPObjectConfig | 141 * creates a new HTTPObjectConfig |
125 */ | 142 */ |
126 // TODO | 143 // TODO |
127 | 144 |
130 */ | 147 */ |
131 void httpobjconf_add_object(HTTPObjectConfig *conf, httpd_object *obj); | 148 void httpobjconf_add_object(HTTPObjectConfig *conf, httpd_object *obj); |
132 | 149 |
133 | 150 |
134 | 151 |
135 httpd_objset* create_test_objset(); | 152 /* |
153 * prepares the NSAPI context for the next request stage | |
154 */ | |
155 void nsapi_context_next_stage(NSAPIContext *context); | |
136 | 156 |
137 | 157 |
138 #ifdef __cplusplus | 158 #ifdef __cplusplus |
139 } | 159 } |
140 #endif | 160 #endif |