summaryrefslogtreecommitdiffhomepage
path: root/module.h
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2020-09-11 17:12:18 +0200
committerJo-Philipp Wich <jo@mein.io>2020-09-11 17:12:18 +0200
commit8ed4e3457904eb4dacc193d0152e690ab3b2ffdb (patch)
tree07ae4b27b93568b9e72f695df7136d34c3a4a354 /module.h
parent9ea4368ff1e4842286e0e7a6aec58a2c2c799d5b (diff)
lib: expose ut_invoke() in the module interface
This allows invoking other functions from module code. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'module.h')
-rw-r--r--module.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/module.h b/module.h
index 5e73fd9..c768461 100644
--- a/module.h
+++ b/module.h
@@ -26,6 +26,7 @@ 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 *(*invoke)(struct ut_state *, uint32_t, struct json_object *, struct json_object *, struct json_object *);
};
extern const struct ut_ops ut;