From da21758e6c61c52842a5d874029cff5b12941471 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Tue, 8 Sep 2020 22:57:36 +0200 Subject: lib: make type() report extended types as "ressource" Signed-off-by: Jo-Philipp Wich --- lib.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib.c b/lib.c index 8925671..e1aea9a 100644 --- a/lib.c +++ b/lib.c @@ -909,6 +909,9 @@ ut_type(struct ut_state *s, uint32_t off, struct json_object *args) case T_FUNC: return json_object_new_string("function"); + case T_RESSOURCE: + return json_object_new_string("ressource"); + default: switch (json_object_get_type(v)) { case json_type_object: -- cgit v1.2.3