1 /*
2   +----------------------------------------------------------------------+
3   | Yet Another Framework                                                |
4   +----------------------------------------------------------------------+
5   | This source file is subject to version 3.01 of the PHP license,      |
6   | that is bundled with this package in the file LICENSE, and is        |
7   | available through the world-wide-web at the following url:           |
8   | http://www.php.net/license/3_01.txt                                  |
9   | If you did not receive a copy of the PHP license and are unable to   |
10   | obtain it through the world-wide-web, please send a note to          |
11   | license@php.net so we can mail you a copy immediately.               |
12   +----------------------------------------------------------------------+
13   | Author: Xinchen Hui  <laruence@php.net>                              |
14   +----------------------------------------------------------------------+
15 */
16 
17 #ifndef YAF_ROUTER_SUPERVAR_H
18 #define YAF_ROUTER_SUPERVAR_H
19 
20 typedef struct {
21 	zend_object  std;
22 	zend_string *varname;
23 	zend_array  *properties;
24 } yaf_route_supervar_object;
25 
26 #define Z_YAFROUTESUPEROBJ(zv)    ((yaf_route_supervar_object*)(Z_OBJ(zv)))
27 #define Z_YAFROUTESUPEROBJ_P(zv)  Z_YAFROUTESUPEROBJ(*zv)
28 
29 extern zend_class_entry *yaf_route_supervar_ce;
30 
31 void yaf_route_supervar_instance(yaf_route_t *route, zend_string *varname);
32 int yaf_route_supervar_route(yaf_route_t *route, yaf_request_t *req);
33 
34 YAF_STARTUP_FUNCTION(route_supervar);
35 
36 #endif
37 /*
38  * Local variables:
39  * tab-width: 4
40  * c-basic-offset: 4
41  * End:
42  * vim600: noet sw=4 ts=4 fdm=marker
43  * vim<600: noet sw=4 ts=4
44  */
45