• Nils Goroll's avatar
    Change type of VCL_BLOB to newly introduced struct vrt_blob · 54505509
    Nils Goroll authored
    Re-using struct vmod_priv helped simplicity, but had the following
    shortcomings:
    
    - in ddfda3d7 we documented what was
      long implied: return values of vmod functions are assumed immutable
      and so are blobs.
    
      So the blob pointer should be const, yet the struct vmod_priv pointer
      can't be.
    
    - the struct vmod_priv free pointer implies that there would be
      automatic memory management provided by varnish core, yet this does not
      exist for a good reason: We would otherwise need to track all blobs
      ever returned by vmod functions/methods.
    
    So we turn the data pointer into a const and remove the free function
    callback.
    
    We also add a type field, which is to be viewed similar to the miniobj
    magic, except that it should not be asserted upon. The type field is
    intended for additional (yet unreliable) checks of vmods using BLOBs
    to carry around vmod-specific private data.
    54505509
Name
Last commit
Last update
.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...
.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...