diff options
author | Jo-Philipp Wich <jo@mein.io> | 2021-05-26 13:28:07 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2021-07-11 15:49:14 +0200 |
commit | bf8522625f55fa2657dee3b9356b20fa0dba725f (patch) | |
tree | 82dea1608c84f4b6314f2500271258e4455ecf9d /lib/uci.c | |
parent | e2b3d2ef25c5e55122c1e41ab56af1075209b47d (diff) |
treewide: move ressource type registry into vm instance
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'lib/uci.c')
-rw-r--r-- | lib/uci.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1005,9 +1005,9 @@ static void close_uci(void *ud) { uci_free_context((struct uci_context *)ud); } -void uc_module_init(uc_value_t *scope) +void uc_module_init(uc_vm *vm, uc_value_t *scope) { uc_add_proto_functions(scope, global_fns); - cursor_type = uc_declare_type("uci.cursor", cursor_fns, close_uci); + cursor_type = uc_declare_type(vm, "uci.cursor", cursor_fns, close_uci); } |