summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2020-09-08 22:57:36 +0200
committerJo-Philipp Wich <jo@mein.io>2020-09-08 22:57:36 +0200
commitda21758e6c61c52842a5d874029cff5b12941471 (patch)
tree2b93ef92172f8dd0800091cf78b371c730cc22f7
parentc77a5bebc9ae8df17b851b6256cb42fa5d763dba (diff)
lib: make type() report extended types as "ressource"
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
-rw-r--r--lib.c3
1 files changed, 3 insertions, 0 deletions
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: