------------------------------------------------------------ revno: 13776 revision-id: squidadm@squid-cache.org-20150319154041-ia4cio74ci0ldmm4 parent: squidadm@squid-cache.org-20150317032517-agd8d7lq77uoxq88 committer: Source Maintenance branch nick: 3.5 timestamp: Thu 2015-03-19 15:40:41 +0000 message: Revert to rev.13773 ------------------------------------------------------------ # Bazaar merge directive format 2 (Bazaar 0.90) # revision_id: squidadm@squid-cache.org-20150319154041-\ # ia4cio74ci0ldmm4 # target_branch: http://bzr.squid-cache.org/bzr/squid3/3.5 # testament_sha1: ea406532578523d02b6811a75a8c3d68b59051f3 # timestamp: 2015-03-19 15:50:56 +0000 # source_branch: http://bzr.squid-cache.org/bzr/squid3/3.5 # base_revision_id: squidadm@squid-cache.org-20150317032517-\ # agd8d7lq77uoxq88 # # Begin patch === added file 'src/Packer.h' --- src/Packer.h 1970-01-01 00:00:00 +0000 +++ src/Packer.h 2015-03-19 15:40:41 +0000 @@ -0,0 +1,37 @@ +/* + * Copyright (C) 1996-2015 The Squid Software Foundation and contributors + * + * Squid software is distributed under GPLv2+ license and includes + * contributions from numerous individuals and organizations. + * Please see the COPYING and CONTRIBUTORS files for details. + */ + +#ifndef SQUID_PACKER_H +#define SQUID_PACKER_H + +/* see Packer.cc for description */ +class Packer; + +/* a common objPackInto interface; used by debugObj */ +typedef void (*ObjPackMethod) (void *obj, Packer * p); + +/* append/vprintf's for Packer */ +typedef void (*append_f) (void *, const char *buf, int size); +typedef void (*vprintf_f) (void *, const char *fmt, va_list args); + +class Packer +{ + +public: + /* protected, use interface functions instead */ + append_f append; + vprintf_f packer_vprintf; + void *real_handler; /* first parameter to real append and vprintf */ +}; + +void packerClean(Packer * p); +void packerAppend(Packer * p, const char *buf, int size); +void packerPrintf(Packer * p, const char *fmt,...) PRINTF_FORMAT_ARG2; + +#endif /* SQUID_PACKER_H */ +