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,11 +1,16 @@ | |||
1 | vmod_dict -- history of user-visible changes. 2018-12-10 | 1 | vmod_dict -- history of user-visible changes. 2020-03-03 |
2 | See the end of file for copying conditions. | 2 | See the end of file for copying conditions. |
3 | 3 | ||
4 | Please send vmod_dict bug reports to <gray@gnu.org> | 4 | Please send vmod_dict bug reports to <gray@gnu.org> |
5 | 5 | ||
6 | Version 1.3, 2020-03-03 | ||
7 | |||
8 | * Support for Varnish 6.3.1 | ||
9 | |||
10 | |||
6 | Version 1.2, 2018-12-10 | 11 | Version 1.2, 2018-12-10 |
7 | 12 | ||
8 | * Support for Varnish 6.0.2 | 13 | * Support for Varnish 6.0.2 |
9 | 14 | ||
10 | Version 1.1, 2017-08-10 | 15 | Version 1.1, 2017-08-10 |
11 | 16 | ||
@@ -16,13 +21,13 @@ Version 1.0, 2017-08-06 | |||
16 | 21 | ||
17 | Initial release | 22 | Initial release |
18 | 23 | ||
19 | ========================================================================= | 24 | ========================================================================= |
20 | Copyright information: | 25 | Copyright information: |
21 | 26 | ||
22 | Copyright (C) 2017-2018 Sergey Poznyakoff | 27 | Copyright (C) 2017-2020 Sergey Poznyakoff |
23 | 28 | ||
24 | Permission is granted to anyone to make or distribute verbatim copies | 29 | Permission is granted to anyone to make or distribute verbatim copies |
25 | of this document as received, in any medium, provided that the | 30 | of this document as received, in any medium, provided that the |
26 | copyright notice and this permission notice are preserved, | 31 | copyright notice and this permission notice are preserved, |
27 | thus giving the recipient permission to redistribute in turn. | 32 | thus giving the recipient permission to redistribute in turn. |
28 | 33 | ||
diff --git a/configure.ac b/configure.ac index 1054289..1dc3887 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -1,8 +1,8 @@ | |||
1 | # This file is part of vmod_dict. | 1 | # This file is part of vmod_dict. |
2 | # Copyright (C) 2017-2018 Sergey Poznyakoff | 2 | # Copyright (C) 2017-2020 Sergey Poznyakoff |
3 | # | 3 | # |
4 | # Vmod_dict is free software; you can redistribute it and/or modify | 4 | # Vmod_dict is free software; you can redistribute it and/or modify |
5 | # it under the terms of the GNU General Public License as published by | 5 | # it under the terms of the GNU General Public License as published by |
6 | # the Free Software Foundation; either version 3, or (at your option) | 6 | # the Free Software Foundation; either version 3, or (at your option) |
7 | # any later version. | 7 | # any later version. |
8 | # | 8 | # |
@@ -12,13 +12,13 @@ | |||
12 | # GNU General Public License for more details. | 12 | # GNU General Public License for more details. |
13 | # | 13 | # |
14 | # You should have received a copy of the GNU General Public License | 14 | # You should have received a copy of the GNU General Public License |
15 | # along with vmod_dict. If not, see <http://www.gnu.org/licenses/>. | 15 | # along with vmod_dict. If not, see <http://www.gnu.org/licenses/>. |
16 | 16 | ||
17 | AC_PREREQ(2.69) | 17 | AC_PREREQ(2.69) |
18 | AC_INIT([vmod-dict], [1.2], [gray@gnu.org]) | 18 | AC_INIT([vmod-dict], [1.3], [gray@gnu.org]) |
19 | AC_CONFIG_AUX_DIR([build-aux]) | 19 | AC_CONFIG_AUX_DIR([build-aux]) |
20 | AC_CONFIG_MACRO_DIR([m4]) | 20 | AC_CONFIG_MACRO_DIR([m4]) |
21 | AC_CONFIG_SRCDIR(src/vmod_dict.vcc) | 21 | AC_CONFIG_SRCDIR(src/vmod_dict.vcc) |
22 | AM_CONFIG_HEADER(config.h) | 22 | AM_CONFIG_HEADER(config.h) |
23 | 23 | ||
24 | AC_SUBST([AC_VMOD_BASENAME],[dict]) | 24 | AC_SUBST([AC_VMOD_BASENAME],[dict]) |
@@ -42,13 +42,13 @@ AC_PROG_MAKE_SET | |||
42 | 42 | ||
43 | # Checks for header files. | 43 | # Checks for header files. |
44 | AC_HEADER_STDC | 44 | AC_HEADER_STDC |
45 | 45 | ||
46 | # Check for functions | 46 | # Check for functions |
47 | 47 | ||
48 | AM_VARNISHAPI([4.1],[6.0.9]) | 48 | AM_VARNISHAPI([4.1],[6.3.1]) |
49 | AC_DEFINE_UNQUOTED([VARNISHAPI_MAJOR],[$VARNISHAPI_MAJOR], | 49 | AC_DEFINE_UNQUOTED([VARNISHAPI_MAJOR],[$VARNISHAPI_MAJOR], |
50 | [Varnish API major version number]) | 50 | [Varnish API major version number]) |
51 | 51 | ||
52 | AC_CONFIG_TESTDIR(tests) | 52 | AC_CONFIG_TESTDIR(tests) |
53 | AC_CONFIG_FILES([tests/Makefile tests/atlocal]) | 53 | AC_CONFIG_FILES([tests/Makefile tests/atlocal]) |
54 | AM_MISSING_PROG([AUTOM4TE], [autom4te]) | 54 | AM_MISSING_PROG([AUTOM4TE], [autom4te]) |
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,8 +1,8 @@ | |||
1 | /* This file is part of vmod_dict. | 1 | /* This file is part of vmod_dict. |
2 | Copyright (C) 2017-2018 Sergey Poznyakoff | 2 | Copyright (C) 2017-2020 Sergey Poznyakoff |
3 | 3 | ||
4 | Vmod_dict is free software; you can redistribute it and/or modify | 4 | Vmod_dict is free software; you can redistribute it and/or modify |
5 | it under the terms of the GNU General Public License as published by | 5 | it under the terms of the GNU General Public License as published by |
6 | the Free Software Foundation; either version 3, or (at your option) | 6 | the Free Software Foundation; either version 3, or (at your option) |
7 | any later version. | 7 | any later version. |
8 | 8 | ||
@@ -371,13 +371,13 @@ fill_table(void) | |||
371 | 371 | ||
372 | next_size = next_size * 2 + 1; | 372 | next_size = next_size * 2 + 1; |
373 | } while (next_size < max_hash_size); | 373 | } while (next_size < max_hash_size); |
374 | } | 374 | } |
375 | 375 | ||
376 | int | 376 | int |
377 | dict_event(VRT_CTX, struct vmod_priv *priv, enum vcl_event_e e) | 377 | vmod_dict_event(VRT_CTX, struct vmod_priv *priv, enum vcl_event_e e) |
378 | { | 378 | { |
379 | switch (e) { | 379 | switch (e) { |
380 | case VCL_EVENT_LOAD: | 380 | case VCL_EVENT_LOAD: |
381 | pthread_rwlock_init(&rwlock, NULL); | 381 | pthread_rwlock_init(&rwlock, NULL); |
382 | break; | 382 | break; |
383 | 383 | ||
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,7 +1,7 @@ | |||
1 | $Module dict 3 Dictionary look-up for Varnish Cache | 1 | $Module dict 3 "Dictionary look-up for Varnish Cache" |
2 | 2 | ||
3 | DESCRIPTION | 3 | DESCRIPTION |
4 | =========== | 4 | =========== |
5 | 5 | ||
6 | Provides simple key/value dictionary API. The dictionary is kept in | 6 | Provides simple key/value dictionary API. The dictionary is kept in |
7 | a disk file. Each non-empty line in such a file is either a comment | 7 | a disk file. Each non-empty line in such a file is either a comment |