source: squid-ssl/trunk/fuentes/test-suite/stub_cbdata.cc @ 5496

Last change on this file since 5496 was 5496, checked in by Juanma, 23 months ago

Initial release

File size: 1.3 KB
RevLine 
[5496]1/*
2 * Copyright (C) 1996-2015 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
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
17#if USE_CBDATA_DEBUG
18void *cbdataInternalAllocDbg(cbdata_type type, const char *, int) STUB_RETVAL(NULL)
19void *cbdataInternalFreeDbg(void *p, const char *, int) STUB_RETVAL(NULL)
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
24void *cbdataInternalAlloc(cbdata_type type) STUB_RETVAL(NULL)
25void *cbdataInternalFree(void *p) STUB_RETVAL(NULL)
26void cbdataInternalLock(const void *p) STUB
27void cbdataInternalUnlock(const void *p) STUB
28int cbdataInternalReferenceDoneValid(void **p, void **tp) STUB_RETVAL(0)
29#endif
30
31int cbdataReferenceValid(const void *p) STUB_RETVAL(0)
32cbdata_type cbdataInternalAddType(cbdata_type type, const char *label, int size, FREE * free_func) STUB_RETVAL(CBDATA_UNKNOWN)
33
Note: See TracBrowser for help on using the repository browser.