From 46c24939e2e0f41f0719289cd3b491367cf3355e Mon Sep 17 00:00:00 2001 From: "Luke T. Shumaker" Date: Wed, 2 Apr 2025 17:28:53 -0600 Subject: lib9p: Add lo_box_lib9p_msg_as_fmt_formatter() to tables --- lib9p/tables.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib9p/tables.h') diff --git a/lib9p/tables.h b/lib9p/tables.h index 0b642eb..edb402a 100644 --- a/lib9p/tables.h +++ b/lib9p/tables.h @@ -20,8 +20,10 @@ extern const struct _lib9p_ver_tentry _lib9p_table_ver[LIB9P_VER_NUM]; /* message ********************************************************************/ +typedef lo_interface fmt_formatter (*_box_as_fmt_formatter_fn_t)(void *host_val); struct _lib9p_msg_tentry { - const char *name; + const char *name; + _box_as_fmt_formatter_fn_t box_as_fmt_formatter; }; typedef ssize_t (*_validate_fn_t)(struct lib9p_ctx *ctx, uint32_t net_size, uint8_t *net_bytes); -- cgit v1.2.3-2-g168b