2 +--------------------------------------------------------------------+
4 +--------------------------------------------------------------------+
5 | Redistribution and use in source and binary forms, with or without |
6 | modification, are permitted provided that the conditions mentioned |
7 | in the accompanying LICENSE file are met. |
8 +--------------------------------------------------------------------+
9 | Copyright (c) 2004-2014, Michael Wallner <mike@php.net> |
10 +--------------------------------------------------------------------+
13 #ifndef PHP_HTTP_OBJECT_H
14 #define PHP_HTTP_OBJECT_H
16 typedef struct php_http_object
{
21 zend_object
*php_http_object_new(zend_class_entry
*ce
);
22 php_http_object_t
*php_http_object_new_ex(zend_class_entry
*ce
, void *nothing
);
24 typedef void *(*php_http_new_t
)(zend_class_entry
*ce
, void *);
26 ZEND_RESULT_CODE
php_http_new(void **obj_ptr
, zend_class_entry
*ce
, php_http_new_t create
, zend_class_entry
*parent_ce
, void *intern_ptr
);
28 PHP_MINIT_FUNCTION(http_object
);
30 typedef struct php_http_method
{
32 zend_fcall_info_cache fcc
;
33 } php_http_object_method_t
;
35 php_http_object_method_t
*php_http_object_method_init(php_http_object_method_t
*cb
, zval
*zobject
, const char *method_str
, size_t method_len
);
36 ZEND_RESULT_CODE
php_http_object_method_call(php_http_object_method_t
*cb
, zval
*zobject
, zval
*retval
, int argc
, zval
*args
);
37 void php_http_object_method_dtor(php_http_object_method_t
*cb
);
38 void php_http_object_method_free(php_http_object_method_t
**cb
);
48 * vim600: noet sw=4 ts=4 fdm=marker
49 * vim<600: noet sw=4 ts=4