X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=php_http_send_api.h;h=29370b88f4d191a5d33279257b4778ddcece7787;hp=9d79a2d49cd364d10ddaafb4387f4f5b90396949;hb=5dc71016d93c6e05fc9c6e933b934dfe9ab277fb;hpb=e83a7438dc70ed96630887246a1d3aefcf155b1c diff --git a/php_http_send_api.h b/php_http_send_api.h index 9d79a2d..29370b8 100644 --- a/php_http_send_api.h +++ b/php_http_send_api.h @@ -15,10 +15,6 @@ #ifndef PHP_HTTP_SEND_API_H #define PHP_HTTP_SEND_API_H -#include "SAPI.h" -#include "php_streams.h" -#include "php_http_std_defs.h" - typedef enum { SEND_DATA, SEND_RSRC @@ -62,6 +58,9 @@ PHP_HTTP_API STATUS _http_send_ex(const void *data, size_t data_size, http_send_ #define http_send_stream_ex(s, c, nc) _http_send_stream_ex((s), (c), (nc) TSRMLS_CC) PHP_HTTP_API STATUS _http_send_stream_ex(php_stream *s, zend_bool close_stream, zend_bool no_cache TSRMLS_DC); +#define http_guess_content_type(mf, mm, d, l, m) _http_guess_content_type((mf), (mm), (d), (l), (m) TSRMLS_CC) +PHP_HTTP_API char *_http_guess_content_type(const char *magic_file, long magic_mode, void *data_ptr, size_t data_len, http_send_mode mode TSRMLS_DC); + #endif /*