X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=php_http_request_method_api.h;h=e93803a466b149a17f1c373f7ef922e07931cf82;hp=4fcf2be649ca4f02f0745edca508fcce28e41ba8;hb=ef7c344f6a204a4de0b31aa9b9621caad792a7fb;hpb=32e91737086db53bb1fd9ed9f79d693c43ec459f diff --git a/php_http_request_method_api.h b/php_http_request_method_api.h index 4fcf2be..e93803a 100644 --- a/php_http_request_method_api.h +++ b/php_http_request_method_api.h @@ -6,7 +6,7 @@ | modification, are permitted provided that the conditions mentioned | | in the accompanying LICENSE file are met. | +--------------------------------------------------------------------+ - | Copyright (c) 2004-2006, Michael Wallner | + | Copyright (c) 2004-2007, Michael Wallner | +--------------------------------------------------------------------+ */ @@ -15,7 +15,9 @@ #ifndef PHP_HTTP_REQUEST_METHOD_API_H #define PHP_HTTP_REQUEST_METHOD_API_H -typedef enum { +typedef enum _http_request_method_t { + /* force the enum to be signed */ + HTTP_NEG_REQUEST_METHOD =-1, HTTP_NO_REQUEST_METHOD = 0, /* HTTP/1.1 */ HTTP_GET = 1, @@ -54,7 +56,7 @@ typedef enum { #define HTTP_MIN_REQUEST_METHOD (HTTP_NO_REQUEST_METHOD + 1) #define HTTP_CUSTOM_REQUEST_METHOD_START HTTP_MAX_REQUEST_METHOD -typedef struct { +typedef struct _http_request_method_entry_t { char *name; char *cnst; } http_request_method_entry;