修改该linux下dll导出

This commit is contained in:
xin
2025-06-30 15:41:52 +08:00
parent cb1d44f616
commit 9ccfe6c75f
2 changed files with 22 additions and 12 deletions

View File

@ -19,14 +19,19 @@
extern "C" {
#endif
#ifdef _WIN32
#define WINDOWSEXPORT __declspec(dllexport) // Windows下导出函数
#elif
#define WINDOWSEXPORT // Linux下导出函数
#endif
__declspec(dllexport) int IS3SensorInit();
__declspec(dllexport) void IS3Set_Serial_FUN(SERIALWRITE writefunc,SERIALWRITE readfunc);
__declspec(dllexport) STRsensorinfo_C IS3Get_SensorInfo();
__declspec(dllexport) int IS3OptSnenser(int percent);
__declspec(dllexport) int IS3GetData(uint16_t *outdata,int shuttertime);
__declspec(dllexport) int IS3SetWeaveLenthCoeff(double *a,int lenth);
__declspec(dllexport) void IS3SetShutterOpen(int isopen);
WINDOWSEXPORT int IS3SensorInit();
WINDOWSEXPORT void IS3Set_Serial_FUN(SERIALWRITE writefunc,SERIALWRITE readfunc);
WINDOWSEXPORT STRsensorinfo_C IS3Get_SensorInfo();
WINDOWSEXPORT int IS3OptSnenser(int percent);
WINDOWSEXPORT int IS3GetData(uint16_t *outdata,int shuttertime);
WINDOWSEXPORT int IS3SetWeaveLenthCoeff(double *a,int lenth);
WINDOWSEXPORT void IS3SetShutterOpen(int isopen);
#ifdef __cplusplus
}
#endif

View File

@ -19,12 +19,17 @@
extern "C" {
#endif
#ifdef _WIN32
#define WINDOWSEXPORT __declspec(dllexport) // Windows下导出函数
#elif
#define WINDOWSEXPORT // Linux下导出函数
#endif
__declspec(dllexport) int IS11SensorInit();
__declspec(dllexport) void Set_Serial_FUN(SERIALWRITE writefunc,SERIALWRITE readfunc);
__declspec(dllexport) STRsensorinfo_C Get_SensorInfo();
__declspec(dllexport) int IS11OptSnenser(int percent);
__declspec(dllexport) int IS11GetData(uint16_t *outdata,int shuttertime);
WINDOWSEXPORT int IS11SensorInit();
WINDOWSEXPORT void Set_Serial_FUN(SERIALWRITE writefunc,SERIALWRITE readfunc);
WINDOWSEXPORT STRsensorinfo_C Get_SensorInfo();
WINDOWSEXPORT int IS11OptSnenser(int percent);
WINDOWSEXPORT int IS11GetData(uint16_t *outdata,int shuttertime);
#ifdef __cplusplus
}