Maa Framework (main) v2.2.0-beta.3
A automation black-box testing framework based on image recognition.
Loading...
Searching...
No Matches
MaaResource.h
Go to the documentation of this file.
1
10// IWYU pragma: private, include <MaaFramework/MaaAPI.h>
11
12#pragma once
13
14#include "../MaaDef.h"
15#include "../MaaPort.h"
16
17#ifdef __cplusplus
18extern "C"
19{
20#endif
21
23
25
27 MaaResourceRegisterCustomRecognition(MaaResource* res, const char* name, MaaCustomRecognitionCallback recognition, void* trans_arg);
28
30
32
34 MaaResourceRegisterCustomAction(MaaResource* res, const char* name, MaaCustomActionCallback action, void* trans_arg);
35
37
39
41
43
45
47
49
51
53
55
56#ifdef __cplusplus
57}
58#endif
uint8_t MaaBool
Definition MaaDef.h:18
struct MaaStringBuffer MaaStringBuffer
Definition MaaDef.h:30
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
uint64_t MaaOptionValueSize
Definition MaaDef.h:68
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
struct MaaStringListBuffer MaaStringListBuffer
Definition MaaDef.h:32
void(MAA_CALL * MaaNotificationCallback)(const char *message, const char *details_json, void *notify_trans_arg)
Definition MaaDef.h:249
MaaOption MaaResOption
Definition MaaDef.h:109
struct MaaResource MaaResource
Definition MaaDef.h:35
void * MaaOptionValue
Definition MaaDef.h:67
MaaId MaaResId
Definition MaaDef.h:24
int32_t MaaStatus
Definition MaaDef.h:40
#define MAA_FRAMEWORK_API
Definition MaaPort.h:36
MAA_FRAMEWORK_API MaaBool MaaResourceLoaded(const MaaResource *res)
MAA_FRAMEWORK_API MaaBool MaaResourceGetTaskList(const MaaResource *res, MaaStringListBuffer *buffer)
MAA_FRAMEWORK_API MaaBool MaaResourceClear(MaaResource *res)
MAA_FRAMEWORK_API MaaBool MaaResourceClearCustomRecognition(MaaResource *res)
MAA_FRAMEWORK_API void MaaResourceDestroy(MaaResource *res)
MAA_FRAMEWORK_API MaaResId MaaResourcePostPath(MaaResource *res, const char *path)
MAA_FRAMEWORK_API MaaBool MaaResourceGetHash(const MaaResource *res, MaaStringBuffer *buffer)
MAA_FRAMEWORK_API MaaBool MaaResourceUnregisterCustomRecognition(MaaResource *res, const char *name)
MAA_FRAMEWORK_API MaaBool MaaResourceSetOption(MaaResource *res, MaaResOption key, MaaOptionValue value, MaaOptionValueSize val_size)
MAA_FRAMEWORK_API MaaStatus MaaResourceWait(const MaaResource *res, MaaResId id)
MAA_FRAMEWORK_API MaaResource * MaaResourceCreate(MaaNotificationCallback notify, void *notify_trans_arg)
MAA_FRAMEWORK_API MaaStatus MaaResourceStatus(const MaaResource *res, MaaResId id)
MAA_FRAMEWORK_API MaaBool MaaResourceRegisterCustomAction(MaaResource *res, const char *name, MaaCustomActionCallback action, void *trans_arg)
MAA_FRAMEWORK_API MaaBool MaaResourceUnregisterCustomAction(MaaResource *res, const char *name)
MAA_FRAMEWORK_API MaaBool MaaResourceClearCustomAction(MaaResource *res)
MAA_FRAMEWORK_API MaaBool MaaResourceRegisterCustomRecognition(MaaResource *res, const char *name, MaaCustomRecognitionCallback recognition, void *trans_arg)