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.

38 lines
835 B

2 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"
#define CheckUpdatesFnKey "checkUpdates"
#define GetSettingsFnKey "getSettings"
#define VersionFnKey "version"
2 years ago
2 years ago
struct ActionResult
{
bool sucess;
wchar_t* result;
wchar_t* error;
};
struct ScanResult
{
bool sucess;
2 years ago
bool isMalware;
double score;
2 years ago
wchar_t* name;
wchar_t* error;
2 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);
typedef ActionResult(*CheckUpdatesFn)(bool checkSDKUpdates, bool loadDBAfterUpdate);
typedef ActionResult(*GetSettingsFn)();
typedef wchar_t* (*VersionFn)();
2 years ago
2 years ago
#endif // _XVNENG_H