Squid Web Cache
master
Loading...
Searching...
No Matches
SwapMetaOut.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 1996-2025 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
#ifndef SQUID_SRC_STORE_SWAPMETAOUT_H
10
#define SQUID_SRC_STORE_SWAPMETAOUT_H
11
12
#include "
base/HardFun.h
"
13
#include "
base/ToCpp.h
"
14
#include "
store/forward.h
"
15
16
#include <memory>
17
20
CtoCpp1
(
xfree
,
const
void
*)
21
22
// TODO: Move AllocedBuf and xfree_cpp() to src/base/Memory.h or similar.
24
using
AllocedBuf = std::unique_ptr<void, HardFun<void, const void *, &xfree_cpp> >;
25
26
namespace
Store
{
27
30
AllocedBuf
PackSwapMeta
(
const
StoreEntry
&,
size_t
&
size
);
31
32
}
// namespace Store
33
34
#endif
/* SQUID_SRC_STORE_SWAPMETAOUT_H */
35
HardFun.h
size
int size
Definition
ModDevPoll.cc:70
ToCpp.h
CtoCpp1
#define CtoCpp1(function, argument)
Definition
ToCpp.h:14
StoreEntry
Definition
Store.h:38
Store
Definition
SquidConfig.h:62
Store::PackSwapMeta
AllocedBuf PackSwapMeta(const StoreEntry &, size_t &size)
Definition
SwapMetaOut.cc:77
xfree
#define xfree
Definition
negotiate_wrapper.cc:50
forward.h
squid
src
store
SwapMetaOut.h
Generated by
1.9.8