]> git.ipfire.org Git - thirdparty/squid.git/blame - src/tests/stub_cbdata.cc
SourceFormat Enforcement
[thirdparty/squid.git] / src / tests / stub_cbdata.cc
CommitLineData
4e0938ef
AJ
1/*
2 * Copyright (C) 1996-2014 The Squid Software Foundation and contributors
3 *
4 * Squid software is distributed under GPLv2+ license and includes
5 * contributions from numerous individuals and organizations.
6 * Please see the COPYING and CONTRIBUTORS files for details.
7 */
8
e35d7a77
AJ
9#include "squid.h"
10#include "cbdata.h"
11
12#define STUB_API "cbdata.cc"
13#include "tests/STUB.h"
14
15void cbdataRegisterWithCacheManager(void) STUB
16
72c3935b
AJ
17void *cbdataInternalAlloc(cbdata_type type, const char *, int) STUB_RETVAL(NULL)
18void *cbdataInternalFree(void *p, const char *, int) STUB_RETVAL(NULL)
e35d7a77 19#if USE_CBDATA_DEBUG
e35d7a77
AJ
20void cbdataInternalLockDbg(const void *p, const char *, int) STUB
21void cbdataInternalUnlockDbg(const void *p, const char *, int) STUB
22int cbdataInternalReferenceDoneValidDbg(void **p, void **tp, const char *, int) STUB_RETVAL(0)
23#else
e35d7a77
AJ
24void cbdataInternalLock(const void *p) STUB
25void cbdataInternalUnlock(const void *p) STUB
26int cbdataInternalReferenceDoneValid(void **p, void **tp) STUB_RETVAL(0)
27#endif
28
29int cbdataReferenceValid(const void *p) STUB_RETVAL(0)
30cbdata_type cbdataInternalAddType(cbdata_type type, const char *label, int size, FREE * free_func) STUB_RETVAL(CBDATA_UNKNOWN)
f53969cc 31