diff options
author | Luke T. Shumaker <lukeshu@lukeshu.com> | 2025-03-25 00:15:43 -0600 |
---|---|---|
committer | Luke T. Shumaker <lukeshu@lukeshu.com> | 2025-03-25 12:43:16 -0600 |
commit | bb14e1f16b5d42934e55c7a53117cf50e1153188 (patch) | |
tree | 44f877740b0cd967dc313900ce45340eb58a59d6 /lib9p/protogen/c.py | |
parent | f17c709c6e35a0bea471a4e8ae7d2183b4a1f32d (diff) |
lib9p: protogen: flatten the validate functions, same as (un)marshal
Diffstat (limited to 'lib9p/protogen/c.py')
-rw-r--r-- | lib9p/protogen/c.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib9p/protogen/c.py b/lib9p/protogen/c.py index a7e1773..0cc5815 100644 --- a/lib9p/protogen/c.py +++ b/lib9p/protogen/c.py @@ -185,8 +185,8 @@ const char *const {c9util.ident('_table_ver_name')}[{c9util.ver_enum('NUM')}] = ) ret += f""" -LM_FLATTEN bool {c9util.ident('_stat_validate')}(struct _validate_ctx *ctx) {{ -\treturn validate_stat(ctx); +LM_FLATTEN ssize_t {c9util.ident('_stat_validate')}(struct _validate_ctx *ctx, uint32_t *ret_net_size) {{ +\treturn validate_stat(ctx, ret_net_size); }} LM_FLATTEN void {c9util.ident('_stat_unmarshal')}(struct _unmarshal_ctx *ctx, struct {c9util.ident('stat')} *out) {{ \tunmarshal_stat(ctx, out); |