#ifndef __MAIN_H__ #define __MAIN_H__ #include /* To use this exported function of dll, include this header * in your project. */ #ifdef BUILD_DLL #define DLL_EXPORT __declspec(dllexport) #else #define DLL_EXPORT __declspec(dllimport) #endif #ifdef __cplusplus extern "C" { #endif typedef void* datastreamer_t; datastreamer_t DLL_EXPORT datastreamer_create(); void DLL_EXPORT datastreamer_destroy(datastreamer_t); const unsigned char* DLL_EXPORT datastreamer_errormessage(); int DLL_EXPORT datastreamer_open(datastreamer_t dt, unsigned char* dsn, unsigned char* uid, unsigned char* pwd); int DLL_EXPORT datastreamer_setfield(datastreamer_t dt, unsigned char* t, unsigned char* p, unsigned char* d); int DLL_EXPORT datastreamer_setvalue(datastreamer_t dt, int id, char* val); #ifdef __cplusplus } #endif #endif // __MAIN_H__