12345678910111213141516171819202122232425262728293031323334353637 |
- #ifndef MODULECOMM_INTER_H
- #define MODULECOMM_INTER_H
- #include <QtCore/qglobal.h>
- #include <functional>
- #include <QDateTime>
- #if defined(MODULECOMM_INTER_LIBRARY)
- # define MODULECOMM_INTER_EXPORT Q_DECL_EXPORT
- #else
- # define MODULECOMM_INTER_EXPORT Q_DECL_IMPORT
- #endif
- #ifndef IV_MODULE_FUN
- typedef std::function<void(const char * ,const unsigned int , const unsigned int , QDateTime * ,const char *)> ModuleFun;
- typedef void (* SMCallBack)(const char * strdata,const unsigned int nSize,const unsigned int index,const QDateTime * dt,const char * strmemname);
- #define IV_MODULE_FUN
- #endif
- namespace iv {
- namespace modulecomm_inter {
- void * MODULECOMM_INTER_EXPORT RegisterSend(const char * strcommname,const unsigned int nBufSize,const unsigned int nMsgBufCount);
- void * MODULECOMM_INTER_EXPORT RegisterRecv(const char * strcommname,SMCallBack pCall);
- void * MODULECOMM_INTER_EXPORT RegisterRecvPlus(const char * strcommname,ModuleFun xFun);
- void MODULECOMM_INTER_EXPORT ModuleSendMsg(void * pHandle,const char * strdata,const unsigned int nDataLen);
- void MODULECOMM_INTER_EXPORT Unregister(void * pHandle);
- void MODULECOMM_INTER_EXPORT PauseComm(void * pHandle);
- void MODULECOMM_INTER_EXPORT ContintuComm(void * pHandle);
- }
- }
- #endif // MODULECOMM_INTER_H
|