]> git.ipfire.org Git - thirdparty/squid.git/blame - src/dlink.h
Source Format Enforcement (#963)
[thirdparty/squid.git] / src / dlink.h
CommitLineData
e53294ae 1/*
bf95c10a 2 * Copyright (C) 1996-2022 The Squid Software Foundation and contributors
e53294ae 3 *
bbc27441
AJ
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.
e53294ae 7 */
bbc27441 8
e53294ae 9#ifndef SQUID_DLINK_H
10#define SQUID_DLINK_H
11
195b97bf
FC
12#include "mem/forward.h"
13
e53294ae 14class dlink_node
15{
4ea333ae 16 MEMPROXY_CLASS(dlink_node);
e53294ae 17public:
b56b37cf
AJ
18 void *data = nullptr;
19 dlink_node *prev = nullptr;
20 dlink_node *next = nullptr;
e53294ae 21};
22
c8347c53
AJ
23class dlink_list
24{
25public:
b56b37cf
AJ
26 dlink_node *head = nullptr;
27 dlink_node *tail = nullptr;
e53294ae 28};
29
e1f7507e
AJ
30extern dlink_list ClientActiveRequests;
31
8a648e8d
FC
32void dlinkAdd(void *data, dlink_node *, dlink_list *);
33void dlinkAddAfter(void *, dlink_node *, dlink_node *, dlink_list *);
34void dlinkAddTail(void *data, dlink_node *, dlink_list *);
35void dlinkDelete(dlink_node * m, dlink_list * list);
e53294ae 36
37#endif /* SQUID_DLINK_H */
f53969cc 38