| 7 | #include "ext.h" |
| 8 | |
| 9 | static void add_resource_sink(maajs::FunctionType func) |
| 10 | { |
| 11 | auto ctx = std::make_unique<maajs::CallbackContext>(func, "ResourceSink"); |
| 12 | QuickJSRuntimeBridgeInterface::get(func.Env())->plugin_add_sink(QuickJSRuntimeBridgeInterface::Resource, ResourceSink, ctx.get()); |
| 13 | ExtContext::get(func.Env())->globalCallbacks.push_back(std::move(ctx)); |
| 14 | } |
| 15 | |
| 16 | static void add_controller_sink(maajs::FunctionType func) |
| 17 | { |
nothing calls this directly
no test coverage detected