]> git.ipfire.org Git - thirdparty/squid.git/blame - src/tests/stub_cbdata.cc
Docs: Copyright updates for 2018 (#114)
[thirdparty/squid.git] / src / tests / stub_cbdata.cc
CommitLineData
4e0938ef 1/*
5b74111a 2 * Copyright (C) 1996-2018 The Squid Software Foundation and contributors
4e0938ef
AJ
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
72ed5979 16void *cbdataInternalAlloc(cbdata_type, const char *, int sz) {
1f1eee3f
AJ
17 return xcalloc(1, sz);
18}
19void *cbdataInternalFree(void *p, const char *, int) {
20 xfree(p);
21 return nullptr;
22}
e35d7a77 23#if USE_CBDATA_DEBUG
72ed5979
AJ
24void cbdataInternalLockDbg(const void *, const char *, int) STUB
25void cbdataInternalUnlockDbg(const void *, const char *, int) STUB
26int cbdataInternalReferenceDoneValidDbg(void **, void **, const char *, int) STUB_RETVAL(0)
e35d7a77 27#else
72ed5979
AJ
28void cbdataInternalLock(const void *) STUB
29void cbdataInternalUnlock(const void *) STUB
30int cbdataInternalReferenceDoneValid(void **, void **) STUB_RETVAL(0)
e35d7a77
AJ
31#endif
32
72ed5979 33int cbdataReferenceValid(const void *) STUB_RETVAL(0)
5545e2f4 34cbdata_type cbdataInternalAddType(cbdata_type, const char *, int) STUB_RETVAL(CBDATA_UNKNOWN)
f53969cc 35