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

Function MaaTaskerPostTask

source/Common/MaaTasker.cpp:126–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124}
125
126MaaTaskId MaaTaskerPostTask(MaaTasker* tasker, const char* entry, const char* pipeline_override)
127{
128 LogFunc << VAR_VOIDP(tasker) << VAR(entry) << VAR(pipeline_override);
129
130 if (!tasker) {
131 LogError << "handle is null";
132 return MaaInvalidId;
133 }
134
135 if (!entry) {
136 LogError << "entry is null";
137 return MaaInvalidId;
138 }
139
140 if (!pipeline_override) {
141 LogError << "pipeline_override is null";
142 return MaaInvalidId;
143 }
144
145 auto ov_opt = json::parse(pipeline_override);
146 if (!ov_opt) {
147 LogError << "failed to parse" << VAR(pipeline_override);
148 return MaaInvalidId;
149 }
150
151 return tasker->post_task(entry, *ov_opt);
152}
153
154MaaTaskId MaaTaskerPostRecognition(MaaTasker* tasker, const char* reco_type, const char* reco_param, const MaaImageBuffer* image)
155{

Callers 7

mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
post_taskMethod · 0.85
runMaaTestFunction · 0.85
pipeline_smokingFunction · 0.85
run_without_fileFunction · 0.85

Calls 1

post_taskMethod · 0.45

Tested by

no test coverage detected