diff options
Diffstat (limited to 'module.h')
-rw-r--r-- | module.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -21,7 +21,7 @@ #include "lib.h" struct ut_ops { - bool (*register_function)(struct json_object *, const char *, ut_c_fn *); + bool (*register_function)(struct ut_state *, struct json_object *, const char *, ut_c_fn *); bool (*register_type)(const char *, struct json_object *, void (*)(void *)); struct json_object *(*set_type)(struct json_object *, const char *, void *); void **(*get_type)(struct json_object *, const char *); @@ -33,10 +33,10 @@ struct ut_ops { extern const struct ut_ops ut; -#define register_functions(ops, functions, scope) \ +#define register_functions(state, ops, functions, scope) \ if (scope) \ for (int i = 0; i < ARRAY_SIZE(functions); i++) \ - ops->register_function(scope, functions[i].name, functions[i].func) + ops->register_function(state, scope, functions[i].name, functions[i].func) void ut_module_init(const struct ut_ops *, struct ut_state *, struct json_object *); |