]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/Packer.h
2 * Copyright (C) 1996-2014 The Squid Software Foundation and contributors
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.
10 #define SQUID_PACKER_H
12 /* see Packer.cc for description */
15 /* a common objPackInto interface; used by debugObj */
16 typedef void (*ObjPackMethod
) (void *obj
, Packer
* p
);
18 /* append/vprintf's for Packer */
19 typedef void (*append_f
) (void *, const char *buf
, int size
);
20 typedef void (*vprintf_f
) (void *, const char *fmt
, va_list args
);
26 /* protected, use interface functions instead */
28 vprintf_f packer_vprintf
;
29 void *real_handler
; /* first parameter to real append and vprintf */
32 void packerClean(Packer
* p
);
33 void packerAppend(Packer
* p
, const char *buf
, int size
);
34 void packerPrintf(Packer
* p
, const char *fmt
,...) PRINTF_FORMAT_ARG2
;
36 #endif /* SQUID_PACKER_H */