X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=php_http_request_object.h;h=7ae1fca1b75212ca609d4e99702f8a079c36bcf6;hp=6be6718eb2dafda93176e3255412a5cb3bd78d25;hb=e7e38363a2e833933519deb5f649d34fd7cc658d;hpb=b562e34cf4f8c8fae7b8fe773e0eed71592b09c2 diff --git a/php_http_request_object.h b/php_http_request_object.h index 6be6718..7ae1fca 100644 --- a/php_http_request_object.h +++ b/php_http_request_object.h @@ -1,16 +1,13 @@ /* - +----------------------------------------------------------------------+ - | PECL :: http | - +----------------------------------------------------------------------+ - | This source file is subject to version 3.0 of the PHP license, that | - | is bundled with this package in the file LICENSE, and is available | - | through the world-wide-web at http://www.php.net/license/3_0.txt. | - | If you did not receive a copy of the PHP license and are unable to | - | obtain it through the world-wide-web, please send a note to | - | license@php.net so we can mail you a copy immediately. | - +----------------------------------------------------------------------+ - | Copyright (c) 2004-2005 Michael Wallner | - +----------------------------------------------------------------------+ + +--------------------------------------------------------------------+ + | PECL :: http | + +--------------------------------------------------------------------+ + | Redistribution and use in source and binary forms, with or without | + | modification, are permitted provided that the conditions mentioned | + | in the accompanying LICENSE file are met. | + +--------------------------------------------------------------------+ + | Copyright (c) 2004-2005, Michael Wallner | + +--------------------------------------------------------------------+ */ /* $Id$ */ @@ -42,11 +39,15 @@ typedef struct { extern zend_class_entry *http_request_object_ce; extern zend_function_entry http_request_object_fe[]; -#define http_request_object_init() _http_request_object_init(INIT_FUNC_ARGS_PASSTHRU) -extern void _http_request_object_init(INIT_FUNC_ARGS); -#define http_request_object_new _http_request_object_new +extern PHP_MINIT_FUNCTION(http_request_object); + +#define http_request_object_new(ce) _http_request_object_new((ce) TSRMLS_CC) extern zend_object_value _http_request_object_new(zend_class_entry *ce TSRMLS_DC); -#define http_request_object_free _http_request_object_free +#define http_request_object_new_ex(ce, ch, ptr) _http_request_object_new_ex((ce), (ch), (ptr) TSRMLS_CC) +extern zend_object_value _http_request_object_new_ex(zend_class_entry *ce, CURL *ch, http_request_object **ptr TSRMLS_DC); +#define http_request_object_clone(zv) _http_request_object_clone_obj((zv) TSRMLS_CC) +extern zend_object_value _http_request_object_clone_obj(zval *zobject TSRMLS_DC); +#define http_request_object_free(o) _http_request_object_free((o) TSRMLS_CC) extern void _http_request_object_free(zend_object *object TSRMLS_DC); #define http_request_object_requesthandler(req, this, body) _http_request_object_requesthandler((req), (this), (body) TSRMLS_CC) @@ -96,6 +97,7 @@ PHP_METHOD(HttpRequest, getResponseInfo); PHP_METHOD(HttpRequest, getResponseMessage); PHP_METHOD(HttpRequest, getRequestMessage); PHP_METHOD(HttpRequest, getHistory); +PHP_METHOD(HttpRequest, clearHistory); PHP_METHOD(HttpRequest, get); PHP_METHOD(HttpRequest, head);