]>
Commit | Line | Data |
---|---|---|
bbc27441 AJ |
1 | /* |
2 | * Copyright (C) 1996-2014 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 | ||
822b78b5 | 9 | /* |
b9ae18aa | 10 | * diomsg.h |
822b78b5 | 11 | * |
12 | * Internal declarations for the diskd routines | |
13 | */ | |
14 | ||
605f2c3e AJ |
15 | #ifndef SQUID_DIOMSG_H__ |
16 | #define SQUID_DIOMSG_H__ | |
822b78b5 | 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 | ||
8bf217bd | 28 | class Lock; |
b9ae18aa | 29 | |
26ac0430 | 30 | struct diomsg { |
822b78b5 | 31 | mtyp_t mtype; |
32 | int id; | |
33 | int seq_no; | |
34 | void * callback_data; | |
8bf217bd | 35 | Lock * requestor; |
ee139403 | 36 | size_t size; |
37 | off_t offset; | |
822b78b5 | 38 | int status; |
39 | bool newstyle; | |
40 | int shm_offset; | |
b9ae18aa | 41 | static const int msg_snd_rcv_sz; |
822b78b5 | 42 | }; |
43 | ||
605f2c3e | 44 | #endif /* SQUID_DIOMSG_H__ */ |