Maa Framework (main) v2.2.2
A automation black-box testing framework based on image recognition.
Loading...
Searching...
No Matches
MaaResource.h File Reference

The resource API. More...

#include "../MaaDef.h"
#include "../MaaPort.h"

Go to the source code of this file.

Functions

MAA_FRAMEWORK_API MaaResourceMaaResourceCreate (MaaNotificationCallback notify, void *notify_trans_arg)
 
MAA_FRAMEWORK_API void MaaResourceDestroy (MaaResource *res)
 
MAA_FRAMEWORK_API MaaBool MaaResourceRegisterCustomRecognition (MaaResource *res, const char *name, MaaCustomRecognitionCallback recognition, void *trans_arg)
 
MAA_FRAMEWORK_API MaaBool MaaResourceUnregisterCustomRecognition (MaaResource *res, const char *name)
 
MAA_FRAMEWORK_API MaaBool MaaResourceClearCustomRecognition (MaaResource *res)
 
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 MaaResId MaaResourcePostPath (MaaResource *res, const char *path)
 
MAA_FRAMEWORK_API MaaBool MaaResourceClear (MaaResource *res)
 
MAA_FRAMEWORK_API MaaStatus MaaResourceStatus (const MaaResource *res, MaaResId id)
 
MAA_FRAMEWORK_API MaaStatus MaaResourceWait (const MaaResource *res, MaaResId id)
 
MAA_FRAMEWORK_API MaaBool MaaResourceLoaded (const MaaResource *res)
 
MAA_FRAMEWORK_API MaaBool MaaResourceSetOption (MaaResource *res, MaaResOption key, MaaOptionValue value, MaaOptionValueSize val_size)
 
MAA_FRAMEWORK_API MaaBool MaaResourceGetHash (const MaaResource *res, MaaStringBuffer *buffer)
 
MAA_FRAMEWORK_API MaaBool MaaResourceGetTaskList (const MaaResource *res, MaaStringListBuffer *buffer)
 

Detailed Description

The resource API.

Author

Function Documentation

◆ MaaResourceCreate()

MAA_FRAMEWORK_API MaaResource * MaaResourceCreate ( MaaNotificationCallback  notify,
void *  notify_trans_arg 
)

◆ MaaResourceDestroy()

MAA_FRAMEWORK_API void MaaResourceDestroy ( MaaResource res)

◆ MaaResourceRegisterCustomRecognition()

MAA_FRAMEWORK_API MaaBool MaaResourceRegisterCustomRecognition ( MaaResource res,
const char *  name,
MaaCustomRecognitionCallback  recognition,
void *  trans_arg 
)

◆ MaaResourceUnregisterCustomRecognition()

MAA_FRAMEWORK_API MaaBool MaaResourceUnregisterCustomRecognition ( MaaResource res,
const char *  name 
)

◆ MaaResourceClearCustomRecognition()

MAA_FRAMEWORK_API MaaBool MaaResourceClearCustomRecognition ( MaaResource res)

◆ MaaResourceRegisterCustomAction()

MAA_FRAMEWORK_API MaaBool MaaResourceRegisterCustomAction ( MaaResource res,
const char *  name,
MaaCustomActionCallback  action,
void *  trans_arg 
)

◆ MaaResourceUnregisterCustomAction()

MAA_FRAMEWORK_API MaaBool MaaResourceUnregisterCustomAction ( MaaResource res,
const char *  name 
)

◆ MaaResourceClearCustomAction()

MAA_FRAMEWORK_API MaaBool MaaResourceClearCustomAction ( MaaResource res)

◆ MaaResourcePostPath()

MAA_FRAMEWORK_API MaaResId MaaResourcePostPath ( MaaResource res,
const char *  path 
)

◆ MaaResourceClear()

MAA_FRAMEWORK_API MaaBool MaaResourceClear ( MaaResource res)

◆ MaaResourceStatus()

MAA_FRAMEWORK_API MaaStatus MaaResourceStatus ( const MaaResource res,
MaaResId  id 
)

◆ MaaResourceWait()

MAA_FRAMEWORK_API MaaStatus MaaResourceWait ( const MaaResource res,
MaaResId  id 
)

◆ MaaResourceLoaded()

MAA_FRAMEWORK_API MaaBool MaaResourceLoaded ( const MaaResource res)

◆ MaaResourceSetOption()

MAA_FRAMEWORK_API MaaBool MaaResourceSetOption ( MaaResource res,
MaaResOption  key,
MaaOptionValue  value,
MaaOptionValueSize  val_size 
)

◆ MaaResourceGetHash()

MAA_FRAMEWORK_API MaaBool MaaResourceGetHash ( const MaaResource res,
MaaStringBuffer buffer 
)

◆ MaaResourceGetTaskList()

MAA_FRAMEWORK_API MaaBool MaaResourceGetTaskList ( const MaaResource res,
MaaStringListBuffer buffer 
)