/*
- * $Id: Packer.cc,v 1.16 2003/02/21 22:50:06 robertc Exp $
+ * $Id: Packer.cc,v 1.17 2005/09/03 13:46:46 serassio Exp $
*
* DEBUG: section 60 Packer: A uniform interface to store-like modules
* AUTHOR: Alex Rousskov
{
assert(p && e);
p->append = (append_f) store_append;
- p->vprintf = (vprintf_f) store_vprintf;
+ p->packer_vprintf = (vprintf_f) store_vprintf;
p->real_handler = e;
}
{
assert(p && mb);
p->append = (append_f) memBuf_append;
- p->vprintf = (vprintf_f) memBuf_vprintf;
+ p->packer_vprintf = (vprintf_f) memBuf_vprintf;
p->real_handler = mb;
}
assert(p);
/* it is not really necessary to do this, but, just in case... */
p->append = NULL;
- p->vprintf = NULL;
+ p->packer_vprintf = NULL;
p->real_handler = NULL;
}
#endif
assert(p);
- assert(p->real_handler && p->vprintf);
- p->vprintf(p->real_handler, fmt, args);
+ assert(p->real_handler && p->packer_vprintf);
+ p->packer_vprintf(p->real_handler, fmt, args);
va_end(args);
}
/*
- * $Id: structs.h,v 1.525 2005/09/03 11:53:32 serassio Exp $
+ * $Id: structs.h,v 1.526 2005/09/03 13:46:46 serassio Exp $
*
*
* SQUID Web Proxy Cache http://www.squid-cache.org/
{
/* protected, use interface functions instead */
append_f append;
- vprintf_f vprintf;
+ vprintf_f packer_vprintf;
void *real_handler; /* first parameter to real append and vprintf */
};