varnish plugin: Simplify the v2/v3 define structs.
authorFlorian Forster <octo@collectd.org>
Sun, 11 Mar 2012 14:14:40 +0000 (15:14 +0100)
committerFlorian Forster <octo@collectd.org>
Sun, 11 Mar 2012 14:14:40 +0000 (15:14 +0100)
commitcf7bb68f0436c25155c9e4fae1d732b5c7aa87f6
tree980a3f62289e71ba572bb99c96264698f61c10c6
parentde82f25db77afcc467267480f547ac29f242b0b8
varnish plugin: Simplify the v2/v3 define structs.

This somewhat duplicates the code in the read callback, but it's easier to read
than having four or so defines in one function.

Addresses GitHub issue #14.
src/varnish.c