diff options
Diffstat (limited to 'lib9p/tables.c')
-rw-r--r-- | lib9p/tables.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib9p/tables.c b/lib9p/tables.c index 36fe3b3..271b17b 100644 --- a/lib9p/tables.c +++ b/lib9p/tables.c @@ -45,6 +45,14 @@ const char *lib9p_msgtype_str(enum lib9p_version ver, enum lib9p_msg_type typ) { return _lib9p_table_msg[ver][typ].name ?: const_byte_str(typ); } +lo_interface fmt_formatter lo_box_lib9p_msg_as_fmt_formatter(struct lib9p_ctx *ctx, enum lib9p_msg_type typ, void *body) { + assert(ctx); + assert_ver(ctx->version); + assert_typ(typ); + assert(_lib9p_table_msg[ctx->version][typ].box_as_fmt_formatter); + return _lib9p_table_msg[ctx->version][typ].box_as_fmt_formatter(body); +} + /* main message functions *****************************************************/ static |