Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
69574c5a
Commit
69574c5a
authored
Feb 05, 2019
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
doc tlc
parent
bd70a203
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
0 deletions
+18
-0
changes.rst
doc/changes.rst
+14
-0
vmod.rst
doc/sphinx/reference/vmod.rst
+4
-0
No files found.
doc/changes.rst
View file @
69574c5a
...
...
@@ -154,6 +154,20 @@ C APIs (for vmod and utility authors)
AZ(ObjGetU64(req->wrk, req->body_oc, OA_LEN, &u));
* vmodtool has been changed significantly to avoid various name
clashes. Rather than using literal prefixes/suffixes, vmod authors
should now (and might have to for making existing code continue to
compile) use the following macros
* ``VPFX(name)`` to prepend the vmod prefix (``vmod_`` by default)
* ``VARGS(name)`` as the name of a function/method's argument
struct, e.g.::
VCL_VOID vmod_test(VRT_CTX, struct VARGS(test) *args) { ...
* ``VENUM(name)`` to access the enum by the name `name`
Fixed bugs
----------
...
...
doc/sphinx/reference/vmod.rst
View file @
69574c5a
...
...
@@ -324,6 +324,10 @@ ENUM
Allows values from a set of constant strings. `Note` that the
C-type is a string, not a C enum.
Enums will be passed as fixed pointers, so instead of string
comparisons, also pointer comparisons with ``VENUM(name)`` are
possible.
HEADER
C-type: ``const struct gethdr_s *``
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment