aboutsummaryrefslogtreecommitdiff
path: root/src/tbf.h
AgeCommit message (Collapse)AuthorFiles
2016-01-20Rewrite for varnishapi 4.1varnish-4.1Sergey Poznyakoff1
* NEWS: Update. * configure.ac: Raise version number to 2.0.90 * src/tbf.c (tbf_init): Replaced with tbf_event * src/vmod_tbf.vcc: Likewise. * src/tbf.h: Include errno.h and vcl.h.
2016-01-20Drop support for Varnish 3Sergey Poznyakoff1
* configure.ac: Use pkg-config. Save Varnishapi version in VARNISHAPI_MAJOR, VARNISHAPI_MINOR, VARNISHAPI_PATCH Refuse to run if it is prior to 4.1 * src/Makefile.am: Remove conditionals * src/tbf.h: Remove Varnish 3.0 defines * src/vmod-tbf.3: Update * tests/Makefile.am: Remove conditionals * tests/test00.vti: Rename to tests/test00.vtc * tests/test02.vti: Rename to tests/test02.vtc
2014-11-02Fix compilation on some platformsSergey Poznyakoff1
* src/tbf.h: Place system includes before varnish ones. One of the varnish headers (common.h) defines __unused which can conflict with parameter declarations in some system headers (bits/stat.h on GNU/Linux, for example).
2014-11-01Support for VCL 4.0Sergey Poznyakoff1
* NEWS: Update. * configure.ac: Version 1.0.90 Detect Varnish version, set up the C defines and automake conditionals to indicate it. * src/.gitignore: Update. * src/Makefile.am: Don't distribute vcc_if.c and vcc_if.h, build them for the current Varnish version. * src/tbf.h: New file. * src/getla.c: Include tbf.h, rewrite to compile with both 3.0 and 4.0 * src/sleep.c: Likewise. * src/tbf.c: Likewise. * src/time.c: Likewise. * src/vmod_tbf.vcc: Rewrite using v4.0 format. * tests/.gitignore: New file. * tests/Makefile.am: Build test00.vtc and test02.vtc * tests/test00.vtc: Rename to tests/test00.vti, add conditional compilation directives. * tests/test02.vtc: Rename to tests/test02.vti, add conditional compilation directives.

Return to:

Send suggestions and report system problems to the System administrator.