You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
1.2 KiB

3 years ago
#pragma once
#ifndef _XVNENG_H
#define _XVNENG_H
2 years ago
#define LoadFnKey "load"
#define UnloadFnKey "unload"
#define ScanFnKey "scan"
#define ScanAsStringFnKey "scanAsString"
1 month ago
#define ScanFolderFnKey "scanFolder"
#define ScanFolderAsStringFnKey "scanFolderAsString"
2 years ago
#define CheckUpdatesFnKey "checkUpdates"
#define GetSettingsFnKey "getSettings"
1 year ago
#define LoggingFnKey "logging"
#define BaseFolderFnKey "baseFolder"
2 years ago
#define VersionFnKey "version"
3 years ago
2 years ago
struct ActionResult
{
bool sucess;
wchar_t *result;
wchar_t *error;
};
struct ScanResult
{
bool sucess;
1 month ago
wchar_t *error;
3 years ago
bool isMalware;
2 years ago
wchar_t *name;
1 month ago
double score;
wchar_t *path;
3 years ago
};
2 years ago
typedef ActionResult (*LoadFn)(bool force);
typedef ActionResult (*UnloadFn)();
typedef ScanResult (*ScanFn)(const wchar_t *filepath);
typedef ActionResult (*ScanAsStringFn)(const wchar_t *filepath);
1 month ago
typedef ScanResult *(*ScanFolderFn)(const wchar_t *folderPath);
typedef ActionResult (*ScanFolderAsStringFn)(const wchar_t *folderPath);
2 years ago
typedef ActionResult (*CheckUpdatesFn)(bool checkSDKUpdates, bool loadDBAfterUpdate);
typedef ActionResult (*GetSettingsFn)();
1 year ago
typedef bool (*LoggingFn)(bool enableLogging);
typedef wchar_t *(*BaseFolderFn)(const wchar_t *baseFolder);
2 years ago
typedef wchar_t *(*VersionFn)();
3 years ago
2 years ago
#endif // _XVNENG_H