summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2007-12-20 10:55:45 +0100
committerVolker Lendecke <vl@samba.org>2007-12-21 09:58:20 +0100
commitcc48010f41684b5ef8c2e8a5511528cc426d300f (patch)
treee738282c88adf23170468906b1a3c8fa1bbe4d21 /source3/include
parentdf133758c2496a5c99441635eca6b77c9019cb8c (diff)
downloadsamba-cc48010f41684b5ef8c2e8a5511528cc426d300f.tar.gz
samba-cc48010f41684b5ef8c2e8a5511528cc426d300f.tar.bz2
samba-cc48010f41684b5ef8c2e8a5511528cc426d300f.zip
Add a global cache
It hurts, but I think this global variable is necessary for transition, and it has the potential to remove quite a few other global variables without messing with APIs too much. (This used to be commit c131d0dc52ec09c9227eff3d68877369c37aaed5)
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/memcache.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/include/memcache.h b/source3/include/memcache.h
index f849f8ad3b..0ba3bdbb00 100644
--- a/source3/include/memcache.h
+++ b/source3/include/memcache.h
@@ -37,6 +37,8 @@ enum memcache_number {
struct memcache *memcache_init(TALLOC_CTX *mem_ctx, size_t max_size);
+void memcache_set_global(struct memcache *cache);
+
void memcache_add(struct memcache *cache, enum memcache_number n,
DATA_BLOB key, DATA_BLOB value);