X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=php_http_cache_api.h;h=d75d432125a1ef4c98b433e7e9f012ad5ea590d9;hb=bdae183e2ffae10192d4fa6072a65a8c6d6a3020;hp=f81f853aecbff935c2378905f0151850c1904871;hpb=b3ec7edd4050ddcb0698272d18712629ec2820d1;p=m6w6%2Fext-http diff --git a/php_http_cache_api.h b/php_http_cache_api.h index f81f853..d75d432 100644 --- a/php_http_cache_api.h +++ b/php_http_cache_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$ */ @@ -35,15 +32,14 @@ ZEND_EXTERN_MODULE_GLOBALS(http); -#define http_cache_global_init() _http_cache_global_init(INIT_FUNC_ARGS_PASSTHRU) -extern STATUS _http_cache_global_init(INIT_FUNC_ARGS); - typedef enum { HTTP_ETAG_CRC32 = -3, HTTP_ETAG_MD5 = -2, HTTP_ETAG_SHA1 = -1, } http_etag_mode; +extern PHP_MINIT_FUNCTION(http_cache); + #ifdef HTTP_HAVE_MHASH static void *http_etag_alloc_mhash_digest(size_t size) {