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.
 
 

41 lines
1017 B

#pragma once
#ifndef _XVNENG_H
#define _XVNENG_H
#define LoadFnKey "load"
#define UnloadFnKey "unload"
#define ScanFnKey "scan"
#define ScanAsStringFnKey "scanAsString"
#define CheckUpdatesFnKey "checkUpdates"
#define GetSettingsFnKey "getSettings"
#define LoggingFnKey "logging"
#define BaseFolderFnKey "baseFolder"
#define VersionFnKey "version"
struct ActionResult
{
bool sucess;
wchar_t *result;
wchar_t *error;
};
struct ScanResult
{
bool sucess;
bool isMalware;
double score;
wchar_t *name;
wchar_t *error;
};
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 bool (*LoggingFn)(bool enableLogging);
typedef wchar_t *(*BaseFolderFn)(const wchar_t *baseFolder);
typedef wchar_t *(*VersionFn)();
#endif // _XVNENG_H