| 32 | } |
| 33 | |
| 34 | static 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 | |
| 41 | static void add_tasker_sink(maajs::FunctionType func) |
| 42 | { |
nothing calls this directly
no test coverage detected