X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=php_http_cache_api.h;h=e5b618ff4dec3b59bee582146dfb2dae75aee9f9;hp=0a93f681f01efaea587e41f77a110d33ed9d4faa;hb=4c925ef964f909cc5492ac9b37d03d85de1f5cc6;hpb=9d0eaae0af2de89a57be321c507e5a9956ba99f9 diff --git a/php_http_cache_api.h b/php_http_cache_api.h index 0a93f68..e5b618f 100644 --- a/php_http_cache_api.h +++ b/php_http_cache_api.h @@ -19,8 +19,13 @@ #define PHP_HTTP_CACHE_API_H #include "php_http_std_defs.h" +#include "php_http_api.h" #include "php_http_send_api.h" +#define http_cache_exit(t, e) http_cache_exit_ex((t), (e), 1) +#define http_cache_exit_ex(t, e, f) _http_cache_exit_ex((t), (e), (f) TSRMLS_CC) +extern STATUS _http_cache_exit_ex(char *cache_token, zend_bool etag, zend_bool free_token TSRMLS_DC); + #define http_etag(p, l, m) _http_etag((p), (l), (m) TSRMLS_CC) PHP_HTTP_API char *_http_etag(const void *data_ptr, size_t data_len, http_send_mode data_mode TSRMLS_DC); @@ -41,9 +46,6 @@ PHP_HTTP_API STATUS _http_cache_last_modified(time_t last_modified, time_t send_ #define http_cache_etag(e, el, cc, ccl) _http_cache_etag((e), (el), (cc), (ccl) TSRMLS_CC) PHP_HTTP_API STATUS _http_cache_etag(const char *etag, size_t etag_len, const char *cache_control, size_t cc_len TSRMLS_DC); -#define http_cache_exit() _http_cache_exit(TSRMLS_C) -PHP_HTTP_API STATUS _http_cache_exit(TSRMLS_D); - #define http_ob_etaghandler(o, l, ho, hl, m) _http_ob_etaghandler((o), (l), (ho), (hl), (m) TSRMLS_CC) PHP_HTTP_API void _http_ob_etaghandler(char *output, uint output_len, char **handled_output, uint *handled_output_len, int mode TSRMLS_DC);