| 263 | } |
| 264 | |
| 265 | MaaCtrlId MaaControllerPostShell(MaaController* ctrl, const char* cmd, int64_t timeout) |
| 266 | { |
| 267 | LogFunc << VAR_VOIDP(ctrl) << VAR(cmd) << VAR(timeout); |
| 268 | |
| 269 | if (!ctrl) { |
| 270 | LogError << "handle is null"; |
| 271 | return MaaInvalidId; |
| 272 | } |
| 273 | |
| 274 | if (!cmd) { |
| 275 | LogError << "Shell command parameter cannot be null"; |
| 276 | return MaaInvalidId; |
| 277 | } |
| 278 | |
| 279 | return ctrl->post_shell(cmd, timeout); |
| 280 | } |
| 281 | |
| 282 | MaaBool MaaControllerGetShellOutput(const MaaController* ctrl, MaaStringBuffer* buffer) |
| 283 | { |
nothing calls this directly
no test coverage detected