diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/modules.cpp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/modules/modules.cpp b/modules/modules.cpp index c9b7061d..987aa51f 100644 --- a/modules/modules.cpp +++ b/modules/modules.cpp @@ -14,13 +14,12 @@ # include "modules/cairo-module.h" #endif -void -gjs_register_static_modules (void) -{ +void gjs_register_static_modules(void) { + Gjs::NativeModuleRegistry& registry = Gjs::NativeModuleRegistry::get(); #ifdef ENABLE_CAIRO - gjs_register_native_module("cairoNative", gjs_js_define_cairo_stuff); + registry.add("cairoNative", gjs_js_define_cairo_stuff); #endif - gjs_register_native_module("system", gjs_js_define_system_stuff); - gjs_register_native_module("console", gjs_define_console_stuff); - gjs_register_native_module("_print", gjs_define_print_stuff); + registry.add("system", gjs_js_define_system_stuff); + registry.add("console", gjs_define_console_stuff); + registry.add("_print", gjs_define_print_stuff); } |