X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=php_http_request_method_api.h;h=7a2f0b1c456f5de4c78d446584b838f951f91b1a;hp=ed0d8a7291b5dec1e246233e7f98b08ecda437f1;hb=d7b22bfb4a76664b4dcffa8644e19aba2e5338ab;hpb=100b5ff381fe93e7ac4d7b0ea68f9b7256615e68 diff --git a/php_http_request_method_api.h b/php_http_request_method_api.h index ed0d8a7..7a2f0b1 100644 --- a/php_http_request_method_api.h +++ b/php_http_request_method_api.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$ */ @@ -57,12 +54,12 @@ typedef enum { HTTP_MAX_REQUEST_METHOD = 28 } http_request_method; -#define http_request_method_global_init() _http_request_method_global_init(INIT_FUNC_ARGS_PASSTHRU) -STATUS _http_request_method_global_init(INIT_FUNC_ARGS); - #define HTTP_STD_REQUEST_METHOD(m) ((m > HTTP_NO_REQUEST_METHOD) && (m < HTTP_MAX_REQUEST_METHOD)) #define HTTP_CUSTOM_REQUEST_METHOD(m) (m - HTTP_MAX_REQUEST_METHOD) +extern PHP_MINIT_FUNCTION(http_request_method); +extern PHP_RSHUTDOWN_FUNCTION(http_request_method); + #define http_request_method_name(m) _http_request_method_name((m) TSRMLS_CC) PHP_HTTP_API const char *_http_request_method_name(http_request_method m TSRMLS_DC);