]> git.ipfire.org Git - thirdparty/squid.git/blob - src/DiskIO/DiskDaemon/diomsg.h
Docs: Copyright updates for 2018 (#114)
[thirdparty/squid.git] / src / DiskIO / DiskDaemon / diomsg.h
1 /*
2 * Copyright (C) 1996-2018 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 /*
10 * diomsg.h
11 *
12 * Internal declarations for the diskd routines
13 */
14
15 #ifndef SQUID_DIOMSG_H__
16 #define SQUID_DIOMSG_H__
17
18 enum {
19 _MQD_NOP,
20 _MQD_OPEN,
21 _MQD_CREATE,
22 _MQD_CLOSE,
23 _MQD_READ,
24 _MQD_WRITE,
25 _MQD_UNLINK
26 };
27
28 class Lock;
29
30 struct diomsg {
31 mtyp_t mtype;
32 int id;
33 int seq_no;
34 void * callback_data;
35 Lock * requestor;
36 size_t size;
37 off_t offset;
38 int status;
39 bool newstyle;
40 int shm_offset;
41 static const int msg_snd_rcv_sz;
42 };
43
44 #endif /* SQUID_DIOMSG_H__ */
45