| 413 | } |
| 414 | |
| 415 | json::object RemoteController::get_info() const |
| 416 | { |
| 417 | ControllerGetInfoReverseRequest req { |
| 418 | .controller_id = controller_id_, |
| 419 | }; |
| 420 | |
| 421 | auto resp_opt = server_.send_and_recv<ControllerGetInfoReverseResponse>(req); |
| 422 | if (!resp_opt) { |
| 423 | return { }; |
| 424 | } |
| 425 | return resp_opt->info; |
| 426 | } |
| 427 | |
| 428 | MaaSinkId RemoteController::add_sink(MaaEventCallback callback, void* trans_arg) |
| 429 | { |
nothing calls this directly
no outgoing calls
no test coverage detected