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

Function MaaControllerPostShell

source/Common/MaaController.cpp:265–280  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

263}
264
265MaaCtrlId 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
282MaaBool MaaControllerGetShellOutput(const MaaController* ctrl, MaaStringBuffer* buffer)
283{

Callers

nothing calls this directly

Calls 1

post_shellMethod · 0.45

Tested by

no test coverage detected