Commit dce78a8c authored by Nils Goroll's avatar Nils Goroll

keep PRIV_* out of vmod documentation

Fixes #2448
parent 3dc584a4
...@@ -86,6 +86,12 @@ CLEANFILES = $(builddir)/vcc_if.c $(builddir)/vcc_if.h \\ ...@@ -86,6 +86,12 @@ CLEANFILES = $(builddir)/vcc_if.c $(builddir)/vcc_if.h \\
\t$(builddir)/vmod_XXX.man.rst \t$(builddir)/vmod_XXX.man.rst
''' '''
privs = {
'PRIV_CALL': "struct vmod_priv *",
'PRIV_VCL': "struct vmod_priv *",
'PRIV_TASK': "struct vmod_priv *",
'PRIV_TOP': "struct vmod_priv *",
}
ctypes = { ctypes = {
'ACL': "VCL_ACL", 'ACL': "VCL_ACL",
...@@ -100,10 +106,6 @@ ctypes = { ...@@ -100,10 +106,6 @@ ctypes = {
'HTTP': "VCL_HTTP", 'HTTP': "VCL_HTTP",
'INT': "VCL_INT", 'INT': "VCL_INT",
'IP': "VCL_IP", 'IP': "VCL_IP",
'PRIV_CALL': "struct vmod_priv *",
'PRIV_VCL': "struct vmod_priv *",
'PRIV_TASK': "struct vmod_priv *",
'PRIV_TOP': "struct vmod_priv *",
'PROBE': "VCL_PROBE", 'PROBE': "VCL_PROBE",
'REAL': "VCL_REAL", 'REAL': "VCL_REAL",
'STEVEDORE': "VCL_STEVEDORE", 'STEVEDORE': "VCL_STEVEDORE",
...@@ -113,6 +115,8 @@ ctypes = { ...@@ -113,6 +115,8 @@ ctypes = {
'VOID': "VCL_VOID", 'VOID': "VCL_VOID",
} }
ctypes.update(privs)
####################################################################### #######################################################################
...@@ -342,6 +346,8 @@ class prototype(object): ...@@ -342,6 +346,8 @@ class prototype(object):
l = [] l = []
for i in self.args: for i in self.args:
t = i.vcl() t = i.vcl()
if t in privs:
continue
if not short: if not short:
if i.nm is not None: if i.nm is not None:
t += " " + i.nm t += " " + i.nm
......
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