Commit 20f65265 authored by Dridi Boukelmoune's avatar Dridi Boukelmoune

man: Add missing sections to the vtc(7) manual

parent 63db35d0
...@@ -913,6 +913,7 @@ cmd_var_resolve(const struct stream *s, const char *spec, char *buf) ...@@ -913,6 +913,7 @@ cmd_var_resolve(const struct stream *s, const char *spec, char *buf)
n = 0; n = 0;
/* SECTION: stream.spec.zexpect.ping PING specific /* SECTION: stream.spec.zexpect.ping PING specific
*
* ping.data * ping.data
* The 8-bytes string of the PING frame payload. * The 8-bytes string of the PING frame payload.
* ping.ack (PING) * ping.ack (PING)
...@@ -928,6 +929,7 @@ cmd_var_resolve(const struct stream *s, const char *spec, char *buf) ...@@ -928,6 +929,7 @@ cmd_var_resolve(const struct stream *s, const char *spec, char *buf)
return (buf); return (buf);
} }
/* SECTION: stream.spec.zexpect.winup WINDOW_UPDATE specific /* SECTION: stream.spec.zexpect.winup WINDOW_UPDATE specific
*
* winup.size * winup.size
* The size of the upgrade given by the WINDOW_UPDATE frame. * The size of the upgrade given by the WINDOW_UPDATE frame.
*/ */
...@@ -936,6 +938,7 @@ cmd_var_resolve(const struct stream *s, const char *spec, char *buf) ...@@ -936,6 +938,7 @@ cmd_var_resolve(const struct stream *s, const char *spec, char *buf)
RETURN_BUFFED(f->md.winup_size); RETURN_BUFFED(f->md.winup_size);
} }
/* SECTION: stream.spec.zexpect.prio PRIORITY specific /* SECTION: stream.spec.zexpect.prio PRIORITY specific
*
* prio.stream * prio.stream
* The stream ID announced. * The stream ID announced.
* *
...@@ -959,6 +962,7 @@ cmd_var_resolve(const struct stream *s, const char *spec, char *buf) ...@@ -959,6 +962,7 @@ cmd_var_resolve(const struct stream *s, const char *spec, char *buf)
RETURN_BUFFED(f->md.prio.weight); RETURN_BUFFED(f->md.prio.weight);
} }
/* SECTION: stream.spec.zexpect.rst RESET_STREAM specific /* SECTION: stream.spec.zexpect.rst RESET_STREAM specific
*
* rst.err * rst.err
* The error code (as integer) of the RESET_STREAM frame. * The error code (as integer) of the RESET_STREAM frame.
*/ */
...@@ -1013,6 +1017,7 @@ cmd_var_resolve(const struct stream *s, const char *spec, char *buf) ...@@ -1013,6 +1017,7 @@ cmd_var_resolve(const struct stream *s, const char *spec, char *buf)
if (!strcmp(spec, "hdrsize")) { RETURN_SETTINGS(6); } if (!strcmp(spec, "hdrsize")) { RETURN_SETTINGS(6); }
} }
/* SECTION: stream.spec.zexpect.push PUSH_PROMISE specific /* SECTION: stream.spec.zexpect.push PUSH_PROMISE specific
*
* push.id * push.id
* The id of the promised stream. * The id of the promised stream.
*/ */
...@@ -1021,6 +1026,7 @@ cmd_var_resolve(const struct stream *s, const char *spec, char *buf) ...@@ -1021,6 +1026,7 @@ cmd_var_resolve(const struct stream *s, const char *spec, char *buf)
RETURN_BUFFED(f->md.promised); RETURN_BUFFED(f->md.promised);
} }
/* SECTION: stream.spec.zexpect.goaway GOAWAY specific /* SECTION: stream.spec.zexpect.goaway GOAWAY specific
*
* goaway.err * goaway.err
* The error code (as integer) of the GOAWAY frame. * The error code (as integer) of the GOAWAY frame.
* *
...@@ -1042,6 +1048,7 @@ cmd_var_resolve(const struct stream *s, const char *spec, char *buf) ...@@ -1042,6 +1048,7 @@ cmd_var_resolve(const struct stream *s, const char *spec, char *buf)
return (f->md.goaway.debug); return (f->md.goaway.debug);
} }
/* SECTION: stream.spec.zexpect.zframe Generic frame /* SECTION: stream.spec.zexpect.zframe Generic frame
*
* frame.data * frame.data
* Payload of the last frame * Payload of the last frame
* *
...@@ -1077,6 +1084,7 @@ cmd_var_resolve(const struct stream *s, const char *spec, char *buf) ...@@ -1077,6 +1084,7 @@ cmd_var_resolve(const struct stream *s, const char *spec, char *buf)
} }
} }
/* SECTION: stream.spec.zexpect.zstream Stream /* SECTION: stream.spec.zexpect.zstream Stream
*
* stream.window * stream.window
* The current window size of the stream, or, if on stream 0, * The current window size of the stream, or, if on stream 0,
* of the connection. * of the connection.
...@@ -1107,6 +1115,7 @@ cmd_var_resolve(const struct stream *s, const char *spec, char *buf) ...@@ -1107,6 +1115,7 @@ cmd_var_resolve(const struct stream *s, const char *spec, char *buf)
return (NULL); return (NULL);
} }
/* SECTION: stream.spec.zexpect.ztable Index tables /* SECTION: stream.spec.zexpect.ztable Index tables
*
* tbl.dec.size / tbl.enc.size * tbl.dec.size / tbl.enc.size
* Size (bytes) of the decoding/encoding table. * Size (bytes) of the decoding/encoding table.
* *
......
...@@ -36,7 +36,7 @@ import re ...@@ -36,7 +36,7 @@ import re
def parse_file(fn, cl, tl, sl): def parse_file(fn, cl, tl, sl):
p = False p = False
section = "" section = ""
resec = re.compile("[ /]\* SECTION: ") resec = re.compile("\s*/\* SECTION: ")
f = open(fn, "r", encoding="UTF-8") f = open(fn, "r", encoding="UTF-8")
...@@ -50,13 +50,13 @@ def parse_file(fn, cl, tl, sl): ...@@ -50,13 +50,13 @@ def parse_file(fn, cl, tl, sl):
cl[section] = [] cl[section] = []
if len(a) > 3: if len(a) > 3:
tl[section] = re.sub( tl[section] = re.sub(
r"^[\t ]*\/?\* SECTION: [^ ]+ +", r"^\s*/?\* SECTION: [^ ]+ +",
"", l) "", l)
else: else:
tl[section] = "" tl[section] = ""
p = 1 p = 1
elif p: elif p:
cl[section].append(re.sub(r"^ \* ?", "", l)) cl[section].append(re.sub(r"^\s*\* ?", "", l))
f.close() f.close()
if __name__ == "__main__": if __name__ == "__main__":
......
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