src/server/util/object.h

changeset 420
0b42a35d6add
parent 108
2a394ccdd778
child 421
437562f5681d
equal deleted inserted replaced
419:f1d29785ad2d 420:0b42a35d6add
84 int pos; 84 int pos;
85 }; 85 };
86 86
87 struct Condition { 87 struct Condition {
88 Condition *parent; 88 Condition *parent;
89 Condition *ifnot;
89 Expression *expression; 90 Expression *expression;
91 int depth;
90 int index; // used by NSAPIContext to link expression with result 92 int index; // used by NSAPIContext to link expression with result
91 }; 93 };
92 94
93 struct Expression { 95 struct Expression {
94 // TODO 96 // TODO
165 /* 167 /*
166 * prepares the NSAPI context for the next request stage 168 * prepares the NSAPI context for the next request stage
167 */ 169 */
168 void nsapi_context_next_stage(NSAPIContext *context); 170 void nsapi_context_next_stage(NSAPIContext *context);
169 171
170 Condition* condition_from_str(pool_handle_t *pool, char *expr, size_t len);
171 Expression* expression_from_str(pool_handle_t *pool, char *expr, size_t len);
172 172
173 int condition_evaluate(Condition *condition, Session *sn, Request *rq); 173 int condition_evaluate(Condition *condition, Session *sn, Request *rq);
174 174
175 175
176 #ifdef __cplusplus 176 #ifdef __cplusplus

mercurial