diff options
-rw-r--r-- | NEWS | 9 | ||||
-rw-r--r-- | configure.ac | 6 | ||||
-rw-r--r-- | src/vmod_dict.c | 4 | ||||
-rw-r--r-- | src/vmod_dict.vcc | 2 |
4 files changed, 13 insertions, 8 deletions
@@ -1,34 +1,39 @@ -vmod_dict -- history of user-visible changes. 2018-12-10 +vmod_dict -- history of user-visible changes. 2020-03-03 See the end of file for copying conditions. Please send vmod_dict bug reports to <gray@gnu.org> +Version 1.3, 2020-03-03 + +* Support for Varnish 6.3.1 + + Version 1.2, 2018-12-10 * Support for Varnish 6.0.2 Version 1.1, 2017-08-10 * Support for Varnish 5.1 Version 1.0, 2017-08-06 Initial release ========================================================================= Copyright information: -Copyright (C) 2017-2018 Sergey Poznyakoff +Copyright (C) 2017-2020 Sergey Poznyakoff Permission is granted to anyone to make or distribute verbatim copies of this document as received, in any medium, provided that the copyright notice and this permission notice are preserved, thus giving the recipient permission to redistribute in turn. Permission is granted to distribute modified versions of this document, or of portions of it, under the above conditions, provided also that they carry prominent notices stating who last changed them. Local variables: diff --git a/configure.ac b/configure.ac index 1054289..1dc3887 100644 --- a/configure.ac +++ b/configure.ac @@ -1,30 +1,30 @@ # This file is part of vmod_dict. -# Copyright (C) 2017-2018 Sergey Poznyakoff +# Copyright (C) 2017-2020 Sergey Poznyakoff # # Vmod_dict is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3, or (at your option) # any later version. # # Vmod_dict is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with vmod_dict. If not, see <http://www.gnu.org/licenses/>. AC_PREREQ(2.69) -AC_INIT([vmod-dict], [1.2], [gray@gnu.org]) +AC_INIT([vmod-dict], [1.3], [gray@gnu.org]) AC_CONFIG_AUX_DIR([build-aux]) AC_CONFIG_MACRO_DIR([m4]) AC_CONFIG_SRCDIR(src/vmod_dict.vcc) AM_CONFIG_HEADER(config.h) AC_SUBST([AC_VMOD_BASENAME],[dict]) AC_CANONICAL_SYSTEM AC_LANG(C) AM_INIT_AUTOMAKE([1.14 gnu tar-ustar silent-rules]) AM_SILENT_RULES([yes]) @@ -36,25 +36,25 @@ if test "x$ac_cv_prog_cc_c99" = xno; then fi AC_PROG_CPP AC_PROG_INSTALL AC_PROG_LIBTOOL AC_PROG_MAKE_SET # Checks for header files. AC_HEADER_STDC # Check for functions -AM_VARNISHAPI([4.1],[6.0.9]) +AM_VARNISHAPI([4.1],[6.3.1]) AC_DEFINE_UNQUOTED([VARNISHAPI_MAJOR],[$VARNISHAPI_MAJOR], [Varnish API major version number]) AC_CONFIG_TESTDIR(tests) AC_CONFIG_FILES([tests/Makefile tests/atlocal]) AM_MISSING_PROG([AUTOM4TE], [autom4te]) AC_CONFIG_FILES([ Makefile src/Makefile ]) AC_OUTPUT diff --git a/src/vmod_dict.c b/src/vmod_dict.c index f9114d1..81f35e2 100644 --- a/src/vmod_dict.c +++ b/src/vmod_dict.c @@ -1,14 +1,14 @@ /* This file is part of vmod_dict. - Copyright (C) 2017-2018 Sergey Poznyakoff + Copyright (C) 2017-2020 Sergey Poznyakoff Vmod_dict is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version. Vmod_dict is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License @@ -365,25 +365,25 @@ fill_table(void) if (n > cn) cn = n; hash_table[i] = ent; } if (max_coll <= 0 || cn < max_coll) break; next_size = next_size * 2 + 1; } while (next_size < max_hash_size); } int -dict_event(VRT_CTX, struct vmod_priv *priv, enum vcl_event_e e) +vmod_dict_event(VRT_CTX, struct vmod_priv *priv, enum vcl_event_e e) { switch (e) { case VCL_EVENT_LOAD: pthread_rwlock_init(&rwlock, NULL); break; case VCL_EVENT_DISCARD: pthread_rwlock_wrlock(&rwlock); while (ent_head) entry_remove(ent_head); free(hash_table); hash_table = NULL; diff --git a/src/vmod_dict.vcc b/src/vmod_dict.vcc index 5e80a02..c5599a0 100644 --- a/src/vmod_dict.vcc +++ b/src/vmod_dict.vcc @@ -1,13 +1,13 @@ -$Module dict 3 Dictionary look-up for Varnish Cache +$Module dict 3 "Dictionary look-up for Varnish Cache" DESCRIPTION =========== Provides simple key/value dictionary API. The dictionary is kept in a disk file. Each non-empty line in such a file is either a comment or a pair of keyword - value separated by one or more whitespace characters. Leading and trailing whitespace is discarded. Comments are introduced by a hash sign at the beginning of the line. Empty lines and comments are ignored. $Event dict_event $Function VOID ci(BOOL v) |