diff options
Diffstat (limited to 'lib9p/9p.generated.c')
-rw-r--r-- | lib9p/9p.generated.c | 24 |
1 files changed, 17 insertions, 7 deletions
diff --git a/lib9p/9p.generated.c b/lib9p/9p.generated.c index 341acd0..660c925 100644 --- a/lib9p/9p.generated.c +++ b/lib9p/9p.generated.c @@ -1530,8 +1530,8 @@ static ALWAYS_INLINE bool marshal_qid(struct _marshal_ctx *ctx, struct lib9p_qid static ALWAYS_INLINE bool marshal_stat(struct _marshal_ctx *ctx, struct lib9p_stat *val) { uint32_t _stat_size_offset; - - uint32_t _kern_type_offset; return false + uint32_t _kern_type_offset; + return false || ({ _stat_size_offset = ctx->net_offset; ({ ctx->net_offset += 2; false; }); }) || ({ _kern_type_offset = ctx->net_offset; marshal_2(ctx, &val->kern_type); }) || marshal_4(ctx, &val->kern_dev) @@ -1908,8 +1908,8 @@ static FLATTEN bool marshal_Rstat(struct _marshal_ctx *ctx, struct lib9p_msg_Rst uint32_t _size_offset; uint32_t _typ_offset; uint32_t _nstat_offset; - - uint32_t _stat_offset; return false + uint32_t _stat_offset; + return false || ({ _size_offset = ctx->net_offset; ({ ctx->net_offset += 4; false; }); }) || ({ _typ_offset = ctx->net_offset; ({ ctx->net_offset += 1; false; }); }) || marshal_tag(ctx, &val->tag) @@ -1925,8 +1925,8 @@ static FLATTEN bool marshal_Twstat(struct _marshal_ctx *ctx, struct lib9p_msg_Tw uint32_t _size_offset; uint32_t _typ_offset; uint32_t _nstat_offset; - - uint32_t _stat_offset; return false + uint32_t _stat_offset; + return false || ({ _size_offset = ctx->net_offset; ({ ctx->net_offset += 4; false; }); }) || ({ _typ_offset = ctx->net_offset; ({ ctx->net_offset += 1; false; }); }) || marshal_tag(ctx, &val->tag) @@ -2041,7 +2041,7 @@ static FLATTEN bool marshal_Rswrite(struct _marshal_ctx *ctx, struct lib9p_msg_R ; } -/* vtables ********************************************************************/ +/* vtables / exports **********************************************************/ #define _MSG(typ) [LIB9P_TYP_##typ] = { \ .basesize = sizeof(struct lib9p_msg_##typ), \ @@ -2157,3 +2157,13 @@ struct _vtable_version _lib9p_vtables[LIB9P_VER_NUM] = { }}, #endif /* defined(CONFIG_9P_ENABLE_9P2000_u) */ }; + +FLATTEN bool _lib9p_validate_stat(struct _validate_ctx *ctx) { + return validate_stat(ctx); +} +FLATTEN void _lib9p_unmarshal_stat(struct _unmarshal_ctx *ctx, struct lib9p_stat *out) { + unmarshal_stat(ctx, out); +} +FLATTEN bool _lib9p_marshal_stat(struct _marshal_ctx *ctx, struct lib9p_stat *val) { + return marshal_stat(ctx, val); +} |