]> git.ipfire.org Git - thirdparty/squid.git/blame - src/ipc/FdNotes.h
Fix SQUID_YESNO 'syntax error near unexpected token' (#2117)
[thirdparty/squid.git] / src / ipc / FdNotes.h
CommitLineData
0d0bce6a 1/*
1f7b830e 2 * Copyright (C) 1996-2025 The Squid Software Foundation and contributors
0d0bce6a 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.
0d0bce6a
AR
7 */
8
bbc27441
AJ
9/* DEBUG: section 54 Interprocess Communication */
10
ff9d9458
FC
11#ifndef SQUID_SRC_IPC_FDNOTES_H
12#define SQUID_SRC_IPC_FDNOTES_H
0d0bce6a
AR
13
14namespace Ipc
15{
16
17/// We cannot send char* FD notes to other processes. Pass int IDs and convert.
18
00516be1 19/// fd_note() label ID
434a79b0 20typedef enum { fdnNone, fdnHttpSocket, fdnHttpsSocket, fdnFtpSocket,
f738d783 21#if SQUID_SNMP
5667a628 22 fdnInSnmpSocket, fdnOutSnmpSocket,
f738d783 23#endif
5667a628
AR
24 fdnInIcpSocket, fdnInHtcpSocket, fdnEnd
25 } FdNoteId;
0d0bce6a 26
82afb125 27const char *FdNote(int fdNodeId); ///< converts FdNoteId into a string
0d0bce6a
AR
28
29} // namespace Ipc;
30
ff9d9458 31#endif /* SQUID_SRC_IPC_FDNOTES_H */
f53969cc 32