]> git.ipfire.org Git - thirdparty/squid.git/blob - src/typedefs.h
Moved time_msec_t from typedefs.h to SquidTime.h
[thirdparty/squid.git] / src / typedefs.h
1 /*
2 * Copyright (C) 1996-2015 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 #include "enums.h"
10
11 #ifndef SQUID_TYPEDEFS_H
12 #define SQUID_TYPEDEFS_H
13
14 typedef struct {
15 size_t bytes;
16 size_t kb;
17 } kb_t;
18
19 /* disk.c / diskd.c callback typedefs */
20 typedef void DRCB(int, const char *buf, int size, int errflag, void *data);
21 /* Disk read CB */
22 typedef void DWCB(int, int, size_t, void *); /* disk write CB */
23
24 #include "anyp/ProtocolType.h"
25 class CachePeer;
26 typedef void IRCB(CachePeer *, peer_t, AnyP::ProtocolType, void *, void *data);
27
28 /* in wordlist.h */
29
30 class wordlist;
31 typedef void UH(void *data, wordlist *);
32
33 /**
34 * READ_HANDLER functions return < 0 if, and only if, they fail with an error.
35 * On error, they must pass back an error code in 'errno'.
36 */
37 typedef int READ_HANDLER(int, char *, int);
38
39
40 typedef int QS(const void *, const void *); /* qsort */
41 typedef void STABH(void *);
42 class StoreEntry;
43
44 /* MD5 cache keys */
45 typedef unsigned char cache_key;
46
47 #endif /* SQUID_TYPEDEFS_H */
48