[master] b10c39179 document STRANDS

Nils Goroll nils.goroll at uplex.de
Wed Sep 12 09:13:07 UTC 2018


commit b10c3917901aab79b2ca8fca0818e23e1df5be9a
Author: Nils Goroll <nils.goroll at uplex.de>
Date:   Wed Sep 12 11:12:07 2018 +0200

    document STRANDS

diff --git a/doc/sphinx/reference/vmod.rst b/doc/sphinx/reference/vmod.rst
index 209c68188..96fe6f011 100644
--- a/doc/sphinx/reference/vmod.rst
+++ b/doc/sphinx/reference/vmod.rst
@@ -422,6 +422,16 @@ STRING_LIST
 	and make sure your workspace_client and workspace_backend params
 	are big enough.
 
+STRANDS
+	C-Type: ``const struct strands *``
+
+	Strands are like STRING_LIST, but without the drawbacks of
+	variable arguments: The list of strings gets passed in a
+	struct with the following members:
+
+	* ``int n``: the number of strings
+	* ``const char p[]``: the array of strings with `n` elements
+
 TIME
 	C-type: ``double``
 


More information about the varnish-commit mailing list