From: Michael Wallner Date: Sat, 10 Mar 2012 06:55:21 +0000 (+0000) Subject: less intrusive fix X-Git-Tag: DEV_2-before-client~25 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=66f7e8b6b937976c9c1d3dbfb86a90141b19b5c6;p=m6w6%2Fext-http less intrusive fix --- diff --git a/php_http_message.h b/php_http_message.h index 627e2b9..8c6c554 100644 --- a/php_http_message.h +++ b/php_http_message.h @@ -25,6 +25,7 @@ } typedef php_http_info_type_t php_http_message_type_t; +typedef struct php_http_message php_http_message_t; struct php_http_message { PHP_HTTP_INFO_IMPL(http, type) diff --git a/php_http_message_body.h b/php_http_message_body.h index 22f492a..53e5654 100644 --- a/php_http_message_body.h +++ b/php_http_message_body.h @@ -22,7 +22,7 @@ typedef struct php_http_message_body { #endif } php_http_message_body_t; -typedef struct php_http_message php_http_message_t; +struct php_http_message; PHP_HTTP_API php_http_message_body_t *php_http_message_body_init(php_http_message_body_t *body, php_stream *stream TSRMLS_DC); PHP_HTTP_API php_http_message_body_t *php_http_message_body_copy(php_http_message_body_t *from, php_http_message_body_t *to, zend_bool dup_internal_stream_and_contents); @@ -41,7 +41,7 @@ PHP_HTTP_API const php_stream_statbuf *php_http_message_body_stat(php_http_messa #define php_http_message_body_mtime(b) (php_http_message_body_stat((b))->sb.st_mtime) PHP_HTTP_API char *php_http_message_body_etag(php_http_message_body_t *body); PHP_HTTP_API const char *php_http_message_body_boundary(php_http_message_body_t *body); -PHP_HTTP_API php_http_message_t *php_http_message_body_split(php_http_message_body_t *body, const char *boundary); +PHP_HTTP_API struct php_http_message *php_http_message_body_split(php_http_message_body_t *body, const char *boundary); static inline php_stream *php_http_message_body_stream(php_http_message_body_t *body) {