• 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
..
tests Loading commit data...
Makefile.am Loading commit data...
automake_boilerplate.am Loading commit data...
flint.lnt Loading commit data...
flint.sh Loading commit data...
vmod_std.c Loading commit data...
vmod_std.vcc Loading commit data...
vmod_std_conversions.c Loading commit data...
vmod_std_fileread.c Loading commit data...
vmod_std_querysort.c Loading commit data...