X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=php_http_send_api.h;h=29370b88f4d191a5d33279257b4778ddcece7787;hp=0c5b1f5ec4f8d313e129366df16e58f46ce07d83;hb=7b88d9022c90eb12e5fe195af8644935141c9d68;hpb=100b5ff381fe93e7ac4d7b0ea68f9b7256615e68 diff --git a/php_http_send_api.h b/php_http_send_api.h index 0c5b1f5..29370b8 100644 --- a/php_http_send_api.h +++ b/php_http_send_api.h @@ -1,16 +1,13 @@ /* - +----------------------------------------------------------------------+ - | PECL :: http | - +----------------------------------------------------------------------+ - | This source file is subject to version 3.0 of the PHP license, that | - | is bundled with this package in the file LICENSE, and is available | - | through the world-wide-web at http://www.php.net/license/3_0.txt. | - | If you did not receive a copy of the PHP license and are unable to | - | obtain it through the world-wide-web, please send a note to | - | license@php.net so we can mail you a copy immediately. | - +----------------------------------------------------------------------+ - | Copyright (c) 2004-2005 Michael Wallner | - +----------------------------------------------------------------------+ + +--------------------------------------------------------------------+ + | PECL :: http | + +--------------------------------------------------------------------+ + | Redistribution and use in source and binary forms, with or without | + | modification, are permitted provided that the conditions mentioned | + | in the accompanying LICENSE file are met. | + +--------------------------------------------------------------------+ + | Copyright (c) 2004-2005, Michael Wallner | + +--------------------------------------------------------------------+ */ /* $Id$ */ @@ -18,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 @@ -53,9 +46,6 @@ PHP_HTTP_API STATUS _http_send_content_type(const char *content_type, size_t ct_ #define http_send_content_disposition(f, l, i) _http_send_content_disposition((f), (l), (i) TSRMLS_CC) PHP_HTTP_API STATUS _http_send_content_disposition(const char *filename, size_t f_len, zend_bool send_inline TSRMLS_DC); -#define http_send_ranges(r, d, s, m) _http_send_ranges((r), (d), (s), (m) TSRMLS_CC) -PHP_HTTP_API STATUS _http_send_ranges(HashTable *ranges, const void *data, size_t size, http_send_mode mode TSRMLS_DC); - #define http_send_data(d, l) http_send((d), (l), SEND_DATA) #define http_send_data_ex(d, l, nc) http_send_ex((d), (l), SEND_DATA, (nc)) #define http_send(d, s, m) _http_send_ex((d), (s), (m), 0 TSRMLS_CC) @@ -68,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 /*