MCPcopy Create free account
hub / github.com/MaaXYZ/MaaFramework / add_tasker_sink

Function add_tasker_sink

source/binding/NodeJS/src/apis/plugin.cpp:23–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21}
22
23static void add_tasker_sink(maajs::FunctionType func)
24{
25 auto ctx = std::make_unique<maajs::CallbackContext>(func, "TaskerSink");
26 QuickJSRuntimeBridgeInterface::get(func.Env())->plugin_add_sink(QuickJSRuntimeBridgeInterface::Tasker, TaskerSink, ctx.get());
27 ExtContext::get(func.Env())->globalCallbacks.push_back(std::move(ctx));
28}
29
30static void add_context_sink(maajs::FunctionType func)
31{

Callers

nothing calls this directly

Calls 4

moveFunction · 0.85
plugin_add_sinkMethod · 0.80
EnvMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected