Maa Framework (main) v2.2.0
A automation black-box testing framework based on image recognition.
Loading...
Searching...
No Matches
MaaToolkitProjectInterface.h
Go to the documentation of this file.
1// IWYU pragma: private, include <MaaToolkit/MaaToolkitAPI.h>
2
3#pragma once
4
5#include "../MaaToolkitDef.h"
6
7#ifdef __cplusplus
8extern "C"
9{
10#endif
11
13 uint64_t inst_id,
14 const char* name,
16 void* trans_arg);
18 MaaToolkitProjectInterfaceRegisterCustomAction(uint64_t inst_id, const char* name, MaaCustomActionCallback action, void* trans_arg);
19
21 uint64_t inst_id,
22 const char* resource_path,
23 const char* user_path,
24 MaaBool directly,
26 void* notify_trans_arg);
27
28#ifdef __cplusplus
29}
30#endif
uint8_t MaaBool
Definition MaaDef.h:18
MaaBool(MAA_CALL * MaaCustomRecognitionCallback)(MaaContext *context, MaaTaskId task_id, const char *current_task_name, const char *custom_recognition_name, const char *custom_recognition_param, const MaaImageBuffer *image, const MaaRect *roi, void *trans_arg, MaaRect *out_box, MaaStringBuffer *out_detail)
Definition MaaDef.h:251
MaaBool(MAA_CALL * MaaCustomActionCallback)(MaaContext *context, MaaTaskId task_id, const char *current_task_name, const char *custom_action_name, const char *custom_action_param, MaaRecoId reco_id, const MaaRect *box, void *trans_arg)
Definition MaaDef.h:263
void(MAA_CALL * MaaNotificationCallback)(const char *message, const char *details_json, void *notify_trans_arg)
Definition MaaDef.h:249
#define MAA_TOOLKIT_API
Definition MaaPort.h:54
MAA_TOOLKIT_API void MaaToolkitProjectInterfaceRegisterCustomRecognition(uint64_t inst_id, const char *name, MaaCustomRecognitionCallback recognition, void *trans_arg)
MAA_TOOLKIT_API MaaBool MaaToolkitProjectInterfaceRunCli(uint64_t inst_id, const char *resource_path, const char *user_path, MaaBool directly, MaaNotificationCallback notify, void *notify_trans_arg)
MAA_TOOLKIT_API void MaaToolkitProjectInterfaceRegisterCustomAction(uint64_t inst_id, const char *name, MaaCustomActionCallback action, void *trans_arg)