64 lines
1.6 KiB
C
64 lines
1.6 KiB
C
#ifndef PHP_MUX_H
|
|
#define PHP_MUX_H 1
|
|
|
|
#include "php.h"
|
|
#include "string.h"
|
|
#include "main/php_main.h"
|
|
#include "Zend/zend_API.h"
|
|
#include "Zend/zend_variables.h"
|
|
#include "zend_exceptions.h"
|
|
#include "zend_interfaces.h"
|
|
#include "zend_object_handlers.h"
|
|
#include "ext/pcre/php_pcre.h"
|
|
#include "ext/standard/php_string.h"
|
|
#include "php_r3.h"
|
|
#include "r3_functions.h"
|
|
|
|
extern zend_class_entry *ce_r3_mux;
|
|
|
|
void r3_init_mux(TSRMLS_D);
|
|
|
|
zend_class_entry ** get_pattern_compiler_ce(TSRMLS_D);
|
|
zval * compile_route_pattern(zval *z_pattern, zval *z_options, zend_class_entry **ce_pattern_compiler TSRMLS_DC);
|
|
|
|
extern inline zval * call_mux_method(zval * object , char * method_name , int method_name_len, int param_count, zval* arg1, zval* arg2, zval* arg3 TSRMLS_DC);
|
|
|
|
extern inline void mux_add_route(INTERNAL_FUNCTION_PARAMETERS);
|
|
|
|
|
|
PHP_METHOD(Mux, __construct);
|
|
PHP_METHOD(Mux, __destruct);
|
|
PHP_METHOD(Mux, getId);
|
|
PHP_METHOD(Mux, add);
|
|
PHP_METHOD(Mux, any);
|
|
PHP_METHOD(Mux, length);
|
|
PHP_METHOD(Mux, compile);
|
|
PHP_METHOD(Mux, sort);
|
|
PHP_METHOD(Mux, appendRoute);
|
|
PHP_METHOD(Mux, appendPCRERoute);
|
|
PHP_METHOD(Mux, setRoutes);
|
|
PHP_METHOD(Mux, getRoutes);
|
|
PHP_METHOD(Mux, getRoute);
|
|
PHP_METHOD(Mux, match);
|
|
PHP_METHOD(Mux, dispatch);
|
|
PHP_METHOD(Mux, getSubMux);
|
|
PHP_METHOD(Mux, getRequestMethodConstant);
|
|
PHP_METHOD(Mux, export);
|
|
PHP_METHOD(Mux, mount);
|
|
|
|
PHP_METHOD(Mux, get);
|
|
PHP_METHOD(Mux, post);
|
|
PHP_METHOD(Mux, put);
|
|
PHP_METHOD(Mux, delete);
|
|
PHP_METHOD(Mux, head);
|
|
PHP_METHOD(Mux, patch);
|
|
PHP_METHOD(Mux, options);
|
|
|
|
PHP_METHOD(Mux, __set_state);
|
|
|
|
// static method
|
|
PHP_METHOD(Mux, generate_id);
|
|
|
|
|
|
|
|
#endif
|