• Nils Goroll's avatar
    Methods for vmod_priv · 681c1199
    Nils Goroll authored
    This is the refactoring we agreed on to enable an alternative
    implementation of #3454. This PR does not yet introduce the copy
    callback needed to add the functionality suggested in #3454.
    
    We replace the .free pointer of struct vmod_priv with a pointer to a
    methods struct with callbacks. As of this commit, it only contains
    the .free callback renamed to .fini. The purpose of the refactoring is
    to allow addition of more callbacks later.
    
    The new struct vmod_priv_methods also contains a .type member pointing
    to a string to contain an arbitrary description of the type of data any
    priv holds which uses these methods.
    
    Implementation:
    
    relevant changes are in cache_vrt_priv.c and vrt.h, other changes are to
    the documentation and bundled vmods.
    
    The implementation is a simple refactoring for indirection of the call
    to the .fini callback via the methods structure.
    681c1199
Name
Last commit
Last update
.circleci Loading commit data...
.github Loading commit data...
bin Loading commit data...
doc Loading commit data...
etc Loading commit data...
include Loading commit data...
lib Loading commit data...
m4 Loading commit data...
man Loading commit data...
tools Loading commit data...
.dir-locals.el Loading commit data...
.gitignore Loading commit data...
.lgtm.yml Loading commit data...
.syntastic_c_config Loading commit data...
.travis.yml Loading commit data...
CONTRIBUTING Loading commit data...
ChangeLog Loading commit data...
INSTALL Loading commit data...
LICENSE Loading commit data...
Makefile.am Loading commit data...
README.Packaging Loading commit data...
README.rst Loading commit data...
autogen.des Loading commit data...
autogen.sh Loading commit data...
configure.ac Loading commit data...
flint.lnt Loading commit data...
varnish-legacy.m4 Loading commit data...
varnish.m4 Loading commit data...
varnishapi-uninstalled.pc.in Loading commit data...
varnishapi.pc.in Loading commit data...
vtc.am Loading commit data...