]>
Commit | Line | Data |
---|---|---|
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 | ||
15 | void cbdataRegisterWithCacheManager(void) STUB | |
72ed5979 | 16 | void *cbdataInternalAlloc(cbdata_type, const char *, int sz) { |
1f1eee3f AJ |
17 | return xcalloc(1, sz); |
18 | } | |
19 | void *cbdataInternalFree(void *p, const char *, int) { | |
20 | xfree(p); | |
21 | return nullptr; | |
22 | } | |
e35d7a77 | 23 | #if USE_CBDATA_DEBUG |
72ed5979 AJ |
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) | |
e35d7a77 | 27 | #else |
72ed5979 AJ |
28 | void cbdataInternalLock(const void *) STUB |
29 | void cbdataInternalUnlock(const void *) STUB | |
30 | int cbdataInternalReferenceDoneValid(void **, void **) STUB_RETVAL(0) | |
e35d7a77 AJ |
31 | #endif |
32 | ||
72ed5979 | 33 | int cbdataReferenceValid(const void *) STUB_RETVAL(0) |
5545e2f4 | 34 | cbdata_type cbdataInternalAddType(cbdata_type, const char *, int) STUB_RETVAL(CBDATA_UNKNOWN) |
f53969cc | 35 |