summaryrefslogtreecommitdiffhomepage
path: root/module.h
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2020-09-11 22:03:11 +0200
committerJo-Philipp Wich <jo@mein.io>2020-09-11 22:11:16 +0200
commit753d0585da7f899cfd954a2ea439d2df8521d37e (patch)
tree59a458edc87688cd55f3b096c0c74d848970f24d /module.h
parent9d4381bd2ea81f43e56a9fa8f58bb66961e67940 (diff)
lib: expose ut_new_double() and ut_cast_number() in the module interface
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'module.h')
-rw-r--r--module.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/module.h b/module.h
index c768461..8760926 100644
--- a/module.h
+++ b/module.h
@@ -26,7 +26,9 @@ struct ut_ops {
struct json_object *(*set_type)(struct json_object *, struct json_object *, const char *, void *);
void **(*get_type)(struct json_object *, const char *);
struct json_object *(*new_object)(struct json_object *);
+ struct json_object *(*new_double)(double);
struct json_object *(*invoke)(struct ut_state *, uint32_t, struct json_object *, struct json_object *, struct json_object *);
+ enum json_type (*cast_number)(struct json_object *, int64_t *, double *);
};
extern const struct ut_ops ut;