X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=php_http_request_factory.c;h=b1655f6b8fd7c44113b3a099f28695a3af529ed1;hp=32574f9c896dc139a43ca3706a9885ec3f5ea8df;hb=4d68865693332389b875e4466f8b5368c0876e15;hpb=50546d76a9bf44bba6237df7c8101be125bc929a diff --git a/php_http_request_factory.c b/php_http_request_factory.c index 32574f9..b1655f6 100644 --- a/php_http_request_factory.c +++ b/php_http_request_factory.c @@ -1,9 +1,18 @@ +/* + +--------------------------------------------------------------------+ + | 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-2011, Michael Wallner | + +--------------------------------------------------------------------+ +*/ + +#include "php_http_api.h" -#include "php_http.h" - -#include #include -#include /* * array of name => php_http_request_factory_driver_t* @@ -50,13 +59,19 @@ PHP_HTTP_BEGIN_ARGS(__construct, 1) PHP_HTTP_ARG_VAL(options, 0) PHP_HTTP_END_ARGS; PHP_HTTP_BEGIN_ARGS(createRequest, 0) - PHP_HTTP_ARG_VAL(persistentHandle, 0) + PHP_HTTP_ARG_VAL(url, 0) + PHP_HTTP_ARG_VAL(method, 0) + PHP_HTTP_ARG_VAL(options, 0) PHP_HTTP_END_ARGS; PHP_HTTP_BEGIN_ARGS(createPool, 0) - PHP_HTTP_ARG_VAL(persistentHandle, 0) + PHP_HTTP_ARG_OBJ(http\\Request, request1, 1) + PHP_HTTP_ARG_OBJ(http\\Request, request2, 1) + PHP_HTTP_ARG_OBJ(http\\Request, requestN, 1) PHP_HTTP_END_ARGS; PHP_HTTP_BEGIN_ARGS(createDataShare, 0) - PHP_HTTP_ARG_VAL(persistentHandle, 0) + PHP_HTTP_ARG_OBJ(http\\Request, request1, 1) + PHP_HTTP_ARG_OBJ(http\\Request, request2, 1) + PHP_HTTP_ARG_OBJ(http\\Request, requestN, 1) PHP_HTTP_END_ARGS; PHP_HTTP_EMPTY_ARGS(getGlobalDataShareInstance); PHP_HTTP_EMPTY_ARGS(getDriver); @@ -401,3 +416,13 @@ PHP_MSHUTDOWN_FUNCTION(http_request_factory) return SUCCESS; } + +/* + * Local variables: + * tab-width: 4 + * c-basic-offset: 4 + * End: + * vim600: noet sw=4 ts=4 fdm=marker + * vim<600: noet sw=4 ts=4 + */ +