aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--NEWS7
-rw-r--r--configure.ac2
-rw-r--r--src/tbf.c9
-rw-r--r--src/tbf.h4
-rw-r--r--src/vmod_tbf.vcc2
5 files changed, 17 insertions, 7 deletions
diff --git a/NEWS b/NEWS
index b87dafa..f324433 100644
--- a/NEWS
+++ b/NEWS
@@ -1,10 +1,15 @@
-vmod-tbf -- history of user-visible changes. 2014-11-13
+vmod-tbf -- history of user-visible changes. 2016-01-20
Copyright (C) 2013-2014 Sergey Poznyakoff
See the end of file for copying conditions.
Please send vmod-tbf bug reports to <gray@gnu.org>
+Version 2.1, (git)
+
+Support for Varnishapi 4.1
+
+
Version 2.0, 2014-11-13
Support for VCL 4.0
diff --git a/configure.ac b/configure.ac
index 8041a57..58f7633 100644
--- a/configure.ac
+++ b/configure.ac
@@ -14,7 +14,7 @@
# You should have received a copy of the GNU General Public License
# along with vmod-tbf. If not, see <http://www.gnu.org/licenses/>.
AC_PREREQ(2.69)
-AC_INIT([vmod-tbf], 2.0, [gray@gnu.org])
+AC_INIT([vmod-tbf], 2.0.90, [gray@gnu.org])
AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_SRCDIR(src/vmod_tbf.vcc)
diff --git a/src/tbf.c b/src/tbf.c
index dadb9cc..3790a01 100644
--- a/src/tbf.c
+++ b/src/tbf.c
@@ -335,10 +335,13 @@ tbf_open_safe(const char *params)
}
int
-tbf_init(struct vmod_priv *priv, const struct VCL_conf *vclconf)
+tbf_event(VRT_CTX, struct vmod_priv *priv, enum vcl_event_e e)
{
- VTAILQ_INIT(&keylock_head);
- VTAILQ_INIT(&keylock_avail);
+ if (e == VCL_EVENT_LOAD) {
+ VTAILQ_INIT(&keylock_head);
+ VTAILQ_INIT(&keylock_avail);
+ }
+ return 0;
}
void
diff --git a/src/tbf.h b/src/tbf.h
index 7ee9f7e..ea0aa6e 100644
--- a/src/tbf.h
+++ b/src/tbf.h
@@ -22,7 +22,9 @@
#include <inttypes.h>
#include <sys/stat.h>
#include <sys/time.h>
-#include "vrt.h"
+#include <errno.h>
+#include <vcl.h>
+#include <vrt.h>
#include "vcc_if.h"
#include "pthread.h"
diff --git a/src/vmod_tbf.vcc b/src/vmod_tbf.vcc
index bb03d44..28d1af0 100644
--- a/src/vmod_tbf.vcc
+++ b/src/vmod_tbf.vcc
@@ -24,7 +24,7 @@ For a detailed documentation, please see vmod-tbf(3) manual page.
DESCRIPTION
===========
-$Init tbf_init
+$Event tbf_event
$Function VOID open(STRING, STRING)
$Function VOID close()
$Function VOID sync()

Return to:

Send suggestions and report system problems to the System administrator.