X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=php_http_request_body_api.h;h=2a9559f3ee6d3d31e55f05f5914747bceee3e3f8;hp=edff6e53375fc3701bc16b2bfdf6b9ae1d3d8249;hb=669d2e6a8bdc642b6b52693f4593f199ddd7e8d2;hpb=111fbe75d978a74c3aba074c942d8b2bd5f66223 diff --git a/php_http_request_body_api.h b/php_http_request_body_api.h index edff6e5..2a9559f 100644 --- a/php_http_request_body_api.h +++ b/php_http_request_body_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 | +--------------------------------------------------------------------+ */ @@ -17,12 +17,14 @@ #ifdef HTTP_HAVE_CURL +#define HTTP_REQUEST_BODY_EMPTY 0 #define HTTP_REQUEST_BODY_CSTRING 1 #define HTTP_REQUEST_BODY_CURLPOST 2 #define HTTP_REQUEST_BODY_UPLOADFILE 3 -typedef struct { - uint type:31; +typedef struct _http_request_body_t { + uint type:3; uint free:1; + uint priv:28; void *data; size_t size; } http_request_body;