TirayApiImport.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. #ifndef __TIRAY_API_IMPORT_H__
  2. #define __TIRAY_API_IMPORT_H__
  3. #include "TirayDef.h"
  4. extern int (*GetSdkVersion_Ptr)();
  5. typedef void(*ResultCallback)(TiRayVariant argv[], int argc);
  6. extern TiRayError(*Scan_Ptr)(ResultCallback fn, const char* interfaceIp, int scanDuration);
  7. extern TiRayError(*SetIp_Ptr)(const char* detectorSN, const char* upperIp, const char* lowerIp, const char* interfaceIp);
  8. typedef void (*EventCallback)(int detectorId, TiRayEvent event, TiRayVariant argv[], int argc, void* reservedArg, int reservedArgLen);
  9. extern TiRayError (*Startup_Ptr)(TiRayModel model, EventCallback fn, StartupOption* option);
  10. extern void (*Stop_Ptr)();
  11. extern TiRayError (*Execute_Ptr)(int detectorId, int commandId, TiRayVariant argv[], int argc);
  12. extern TiRayError (*ApplyPreset_Ptr)(int detectorId, TiRayVariant argv[], int argc, ResultCallback fn);
  13. extern TiRayError (*GenerateTemplate_Ptr)(TemplateType type, TiRayVariant images[], int count, char* templateBuffer, int bufferSize);
  14. #define GetSdkVersion (*GetSdkVersion_Ptr)
  15. #define Scan (*Scan_Ptr)
  16. #define SetIp (*SetIp_Ptr)
  17. #define Startup (*Startup_Ptr)
  18. #define Stop (*Stop_Ptr)
  19. #define Execute (*Execute_Ptr)
  20. #define ApplyPreset (*ApplyPreset_Ptr)
  21. #define GenerateTemplate (*GenerateTemplate_Ptr)
  22. extern int LoadTiRayApi();
  23. #endif