From: Michael Wallner Date: Sat, 21 May 2011 15:42:28 +0000 (+0000) Subject: * constify API X-Git-Tag: DEV_2-before-client~117 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=84655b7b12e4abf9e19546a8d4a469bf78c2ed8d;p=m6w6%2Fext-http * constify API --- diff --git a/php_http_message_body.h b/php_http_message_body.h index b687207..4a621a4 100644 --- a/php_http_message_body.h +++ b/php_http_message_body.h @@ -35,7 +35,7 @@ PHP_HTTP_API void php_http_message_body_to_stream(php_http_message_body_t *body, PHP_HTTP_API void php_http_message_body_to_callback(php_http_message_body_t *body, php_http_pass_callback_t cb, void *cb_arg, off_t offset, size_t forlen); PHP_HTTP_API void php_http_message_body_dtor(php_http_message_body_t *body); PHP_HTTP_API void php_http_message_body_free(php_http_message_body_t **body); -PHP_HTTP_API php_stream_statbuf *php_http_message_body_stat(php_http_message_body_t *body); +PHP_HTTP_API const php_stream_statbuf *php_http_message_body_stat(php_http_message_body_t *body); #define php_http_message_body_size(b) (php_http_message_body_stat((b))->sb.st_size) #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);