pub unsafe extern "C" fn MaaControllerPostShell(
ctrl: *mut MaaController,
cmd: *const c_char,
timeout: i64,
) -> MaaCtrlIdExpand description
@brief Post a shell command to the controller.
@param ctrl The controller handle. @param cmd The shell command to execute. @param timeout Timeout in milliseconds. Default is 20000 (20 seconds). @return The control id of the shell action.
@note This is only valid for ADB controllers. If the controller is not an ADB controller, the action will fail. @see MaaControllerGetShellOutput