X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=php_http_request_method_api.h;h=3941d54fed950ed3dc8f21694c446a085c9c5d4a;hp=179e52e6fcea7c1db05acd49d3d268393e97e156;hb=4daf43ea22acd40a8cb0e7fc47047da8fae1270f;hpb=26591cefa8d85dced14547a0fb621b9a289ef2de diff --git a/php_http_request_method_api.h b/php_http_request_method_api.h index 179e52e..3941d54 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-2005, Michael Wallner | + | Copyright (c) 2004-2006, 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;