X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?p=php5-apc.git;a=blobdiff_plain;f=apc_cache.h;fp=apc_cache.h;h=8b6f399946b6046c86772929e7bd69207ad31af1;hp=a36c46fb01fa27a5efe9142960de74f2b92944c6;hb=10aea07a14325aa0bfb5fe75ddcf19432c6e2c64;hpb=3682e0a7a26931aabca2b6e54eb08efd7dc0430b diff --git a/apc_cache.h b/apc_cache.h index a36c46f..8b6f399 100644 --- a/apc_cache.h +++ b/apc_cache.h @@ -2,7 +2,7 @@ +----------------------------------------------------------------------+ | APC | +----------------------------------------------------------------------+ - | Copyright (c) 2006 The PHP Group | + | Copyright (c) 2008 The PHP Group | +----------------------------------------------------------------------+ | This source file is subject to version 3.01 of the PHP license, | | that is bundled with this package in the file LICENSE, and is | @@ -26,7 +26,7 @@ */ -/* $Id: apc_cache.h,v 3.46.2.2 2008/03/25 18:24:57 gopalv Exp $ */ +/* $Id: apc_cache.h,v 3.46.2.4 2008/05/11 18:57:00 rasmus Exp $ */ #ifndef APC_CACHE_H #define APC_CACHE_H @@ -309,8 +309,6 @@ struct cache_header_t { }; /* }}} */ -typedef void (*apc_expunge_cb_t)(T cache, size_t n); - /* {{{ struct definition: apc_cache_t */ struct apc_cache_t { void* shmaddr; /* process (local) address of shared cache */ @@ -319,12 +317,12 @@ struct apc_cache_t { int num_slots; /* number of slots in cache */ int gc_ttl; /* maximum time on GC list for a slot */ int ttl; /* if slot is needed and entry's access time is older than this ttl, remove it */ - apc_expunge_cb_t expunge_cb; /* cache specific expunge callback to free up sma memory */ }; /* }}} */ extern apc_cache_info_t* apc_cache_info(T cache, zend_bool limited); extern void apc_cache_free_info(apc_cache_info_t* info); +extern void apc_cache_expunge(apc_cache_t* cache, time_t t); extern void apc_cache_unlock(apc_cache_t* cache); extern zend_bool apc_cache_busy(apc_cache_t* cache); extern zend_bool apc_cache_write_lock(apc_cache_t* cache);