[6.0] 5c85a0235 document STRANDS

Dridi Boukelmoune dridi.boukelmoune at gmail.com
Wed Oct 31 13:08:17 UTC 2018


commit 5c85a023580822d3b940eeff549052d6aac2ae81
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