1234567891011121314151617181920212223242526272829303132333435363738 |
- #ifndef __TIRAY_API_IMPORT_H__
- #define __TIRAY_API_IMPORT_H__
- #include "TirayDef.h"
- extern int (*GetSdkVersion_Ptr)();
- typedef void(*ResultCallback)(TiRayVariant argv[], int argc);
- extern TiRayError(*Scan_Ptr)(ResultCallback fn, const char* interfaceIp, int scanDuration);
- extern TiRayError(*SetIp_Ptr)(const char* detectorSN, const char* upperIp, const char* lowerIp, const char* interfaceIp);
- typedef void (*EventCallback)(int detectorId, TiRayEvent event, TiRayVariant argv[], int argc, void* reservedArg, int reservedArgLen);
- extern TiRayError (*Startup_Ptr)(TiRayModel model, EventCallback fn, StartupOption* option);
- extern void (*Stop_Ptr)();
- extern TiRayError (*Execute_Ptr)(int detectorId, int commandId, TiRayVariant argv[], int argc);
- extern TiRayError (*ApplyPreset_Ptr)(int detectorId, TiRayVariant argv[], int argc, ResultCallback fn);
- extern TiRayError (*GenerateTemplate_Ptr)(TemplateType type, TiRayVariant images[], int count, char* templateBuffer, int bufferSize);
- #define GetSdkVersion (*GetSdkVersion_Ptr)
- #define Scan (*Scan_Ptr)
- #define SetIp (*SetIp_Ptr)
- #define Startup (*Startup_Ptr)
- #define Stop (*Stop_Ptr)
- #define Execute (*Execute_Ptr)
- #define ApplyPreset (*ApplyPreset_Ptr)
- #define GenerateTemplate (*GenerateTemplate_Ptr)
- extern int LoadTiRayApi();
- #endif
|