]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/tests/stub_cbdata.cc
2 * Copyright (C) 1996-2021 The Squid Software Foundation and contributors
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.
12 #define STUB_API "cbdata.cc"
13 #include "tests/STUB.h"
15 void cbdataRegisterWithCacheManager(void) STUB
16 void *cbdataInternalAlloc(cbdata_type
, const char *, int sz
) {
17 return xcalloc(1, sz
);
19 void *cbdataInternalFree(void *p
, const char *, int) {
24 void cbdataInternalLockDbg(const void *, const char *, int) STUB
25 void cbdataInternalUnlockDbg(const void *, const char *, int) STUB
26 int cbdataInternalReferenceDoneValidDbg(void **, void **, const char *, int) STUB_RETVAL(0)
28 void cbdataInternalLock(const void *) STUB
29 void cbdataInternalUnlock(const void *) STUB
30 int cbdataInternalReferenceDoneValid(void **, void **) STUB_RETVAL(0)
33 int cbdataReferenceValid(const void *) STUB_RETVAL(0)
34 cbdata_type
cbdataInternalAddType(cbdata_type
, const char *, int) STUB_RETVAL(CBDATA_UNKNOWN
)