stub_cbdata.cc
Go to the documentation of this file.
1/*
2 * Copyright (C) 1996-2022 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
16void *cbdataInternalAlloc(cbdata_type, const char *, int sz) {
17 return xcalloc(1, sz);
18}
19void *cbdataInternalFree(void *p, const char *, int) {
20 xfree(p);
21 return nullptr;
22}
23#if USE_CBDATA_DEBUG
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)
27#else
28void cbdataInternalLock(const void *) STUB
29void cbdataInternalUnlock(const void *) STUB
30int cbdataInternalReferenceDoneValid(void **, void **) STUB_RETVAL(0)
31#endif
32
33int cbdataReferenceValid(const void *) STUB_RETVAL(0)
35
#define STUB
macro to stub a void function.
Definition: STUB.h:33
void cbdataInternalUnlock(const void *p)
Definition: cbdata.cc:357
void * cbdataInternalAlloc(cbdata_type type, const char *file, int line)
Definition: cbdata.cc:223
cbdata_type cbdataInternalAddType(cbdata_type type, const char *name, int size)
Definition: cbdata.cc:196
int cbdataReferenceValid(const void *p)
Definition: cbdata.cc:398
int cbdataInternalReferenceDoneValid(void **pp, void **tp)
Definition: cbdata.cc:418
static const cbdata_type CBDATA_UNKNOWN
Definition: cbdata.h:196
int cbdata_type
Definition: cbdata.h:195
#define xfree
void cbdataRegisterWithCacheManager(void) STUB void *cbdataInternalAlloc(cbdata_type
Definition: cbdata.cc:209
void cbdataInternalLock(const void *) STUB void cbdataInternalUnlock(const void *) STUB int cbdataInternalReferenceDoneValid(void **
void const char int sz
Definition: stub_cbdata.cc:16
void void ** STUB_RETVAL(0) int cbdataReferenceValid(const void *) STUB_RETVAL(0) cbdata_type cbdataInternalAddType(cbdata_type
Definition: stub_liblog.cc:92
void * cbdataInternalFree(void *p, const char *, int)
Definition: stub_cbdata.cc:19
void * xcalloc(size_t n, size_t sz)
Definition: xalloc.cc:71

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors