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

Function add_controller_sink

source/binding/NodeJS/src/apis/server.cpp:34–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32}
33
34static void add_controller_sink(maajs::FunctionType func)
35{
36 auto ctx = std::make_unique<maajs::CallbackContext>(func, "ControllerSink");
37 MaaAgentServerAddControllerSink(ControllerSink, ctx.get());
38 ExtContext::get(func.Env())->globalCallbacks.push_back(std::move(ctx));
39}
40
41static void add_tasker_sink(maajs::FunctionType func)
42{

Callers

nothing calls this directly

Calls 4

moveFunction · 0.85
getMethod · 0.45
EnvMethod · 0.45

Tested by

no test coverage detected