Commit c8358237 authored by Nils Goroll's avatar Nils Goroll

Adjust event function name due to vmodtool change in varnish-cache

Ref d8ae26b5a0b4a1102360a61a145e4730e52d68bc
parent 469e3c19
...@@ -6,8 +6,6 @@ ...@@ -6,8 +6,6 @@
.. role:: ref(emphasis) .. role:: ref(emphasis)
.. _vmod_hoailona(3):
============= =============
vmod_hoailona vmod_hoailona
============= =============
...@@ -243,7 +241,7 @@ subroutines, subsequent calls to ``.token()`` and ``.secret()`` in the ...@@ -243,7 +241,7 @@ subroutines, subsequent calls to ``.token()`` and ``.secret()`` in the
same backend transaction are based on the policy that was determined same backend transaction are based on the policy that was determined
by that call. by that call.
.. _obj_policy: .. _vmod_hoailona.policy:
new xpolicy = hoailona.policy(ENUM type, DURATION ttl, STRING description, BLOB secret, INT start_offset) new xpolicy = hoailona.policy(ENUM type, DURATION ttl, STRING description, BLOB secret, INT start_offset)
--------------------------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------------------------
...@@ -311,7 +309,7 @@ Examples:: ...@@ -311,7 +309,7 @@ Examples::
# A policy for "access denied" # A policy for "access denied"
new forbid = hoailona.policy(DENY, description="access denied"); new forbid = hoailona.policy(DENY, description="access denied");
.. _obj_hosts: .. _vmod_hoailona.hosts:
new xhosts = hoailona.hosts() new xhosts = hoailona.hosts()
----------------------------- -----------------------------
...@@ -321,7 +319,7 @@ that associates with policies with hostnames, and optionally with ...@@ -321,7 +319,7 @@ that associates with policies with hostnames, and optionally with
path patterns. The constructor has no parameters; the object only path patterns. The constructor has no parameters; the object only
becomes useful by calling the ``.add()`` method. becomes useful by calling the ``.add()`` method.
.. _func_hosts.add: .. _vmod_hoailona.hosts.add:
VOID xhosts.add(STRING host, STRING policy, STRING path, STRING description) VOID xhosts.add(STRING host, STRING policy, STRING path, STRING description)
---------------------------------------------------------------------------- ----------------------------------------------------------------------------
...@@ -466,7 +464,7 @@ Examples:: ...@@ -466,7 +464,7 @@ Examples::
h.add("evil.org", "deny", description="no access to evil.org"); h.add("evil.org", "deny", description="no access to evil.org");
} }
.. _func_hosts.policy: .. _vmod_hoailona.hosts.policy:
INT xhosts.policy(STRING host=0, STRING path=0) INT xhosts.policy(STRING host=0, STRING path=0)
----------------------------------------------- -----------------------------------------------
...@@ -533,7 +531,7 @@ with parameters. ...@@ -533,7 +531,7 @@ with parameters.
Calling ``.policy()`` with only one of the ``host`` and ``path`` Calling ``.policy()`` with only one of the ``host`` and ``path``
parameters empty is an error. parameters empty is an error.
.. _func_hosts.token: .. _vmod_hoailona.hosts.token:
STRING xhosts.token(STRING acl, DURATION ttl, STRING data) STRING xhosts.token(STRING acl, DURATION ttl, STRING data)
---------------------------------------------------------- ----------------------------------------------------------
...@@ -594,7 +592,7 @@ Examples:: ...@@ -594,7 +592,7 @@ Examples::
# needed for SecureHD authorization. # needed for SecureHD authorization.
} }
.. _func_hosts.secret: .. _vmod_hoailona.hosts.secret:
BLOB xhosts.secret() BLOB xhosts.secret()
-------------------- --------------------
...@@ -637,7 +635,7 @@ Examples:: ...@@ -637,7 +635,7 @@ Examples::
} }
} }
.. _func_hosts.explain: .. _vmod_hoailona.hosts.explain:
STRING xhosts.explain() STRING xhosts.explain()
----------------------- -----------------------
...@@ -671,7 +669,7 @@ Example:: ...@@ -671,7 +669,7 @@ Example::
std.log("Policy determination: " + config.explain()); std.log("Policy determination: " + config.explain());
} }
.. _func_version: .. _vmod_hoailona.version:
STRING version() STRING version()
---------------- ----------------
......
...@@ -122,7 +122,7 @@ errmsg(VRT_CTX, const char *fmt, ...) ...@@ -122,7 +122,7 @@ errmsg(VRT_CTX, const char *fmt, ...)
/* Event function */ /* Event function */
int v_matchproto_(vmod_event_f) int v_matchproto_(vmod_event_f)
event(VRT_CTX, struct vmod_priv *priv, enum vcl_event_e e) vmod_event(VRT_CTX, struct vmod_priv *priv, enum vcl_event_e e)
{ {
(void) ctx; (void) ctx;
(void) priv; (void) priv;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment