diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/fs.c | 8 | ||||
-rw-r--r-- | lib/math.c | 2 | ||||
-rw-r--r-- | lib/ubus.c | 4 | ||||
-rw-r--r-- | lib/uci.c | 4 |
4 files changed, 9 insertions, 9 deletions
@@ -904,13 +904,13 @@ static void close_dir(void *ud) closedir(dp); } -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); - proc_type = uc_declare_type("fs.proc", proc_fns, close_proc); - file_type = uc_declare_type("fs.file", file_fns, close_file); - dir_type = uc_declare_type("fs.dir", dir_fns, close_dir); + proc_type = uc_declare_type(vm, "fs.proc", proc_fns, close_proc); + file_type = uc_declare_type(vm, "fs.file", file_fns, close_file); + dir_type = uc_declare_type(vm, "fs.dir", dir_fns, close_dir); ucv_object_add(scope, "stdin", uc_alloc_ressource(file_type, stdin)); ucv_object_add(scope, "stdout", uc_alloc_ressource(file_type, stdout)); @@ -158,7 +158,7 @@ static const uc_cfunction_list math_fns[] = { { "srand", uc_srand }, }; -void uc_module_init(uc_value_t *scope) +void uc_module_init(uc_vm *vm, uc_value_t *scope) { uc_add_proto_functions(scope, math_fns); } @@ -320,9 +320,9 @@ static void close_connection(void *ud) { free(conn); } -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); - conn_type = uc_declare_type("ubus.connection", conn_fns, close_connection); + conn_type = uc_declare_type(vm, "ubus.connection", conn_fns, close_connection); } @@ -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); } |