44 lines
928 B
C++
44 lines
928 B
C++
#ifndef _HK_STREAMER_
|
|
#define _HK_STREAMER_
|
|
#include <string>
|
|
using namespace std;
|
|
// // #ifdef __LINUX__
|
|
// typedef unsigned char UCHAR;
|
|
// typedef unsigned char* PBYTE;
|
|
// typedef char* LPTSTR;
|
|
// typedef unsigned short USHORT;
|
|
|
|
// typedef unsigned long ULONG;
|
|
// typedef unsigned long unsigned long ;
|
|
// // #endif //#ifdef __LINUX__
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
{
|
|
#endif
|
|
typedef struct
|
|
{
|
|
string sDeviceAddress;
|
|
string sUserName;
|
|
string sPassword;
|
|
} LoginInfo, *LPLoginInfo;
|
|
|
|
|
|
typedef struct
|
|
{
|
|
unsigned long lChannel;
|
|
unsigned long bitrate;
|
|
string start;
|
|
string end;
|
|
} StreamCon, *LPStream;
|
|
|
|
#define HPR_OK 0
|
|
#define HPR_ERROR -1
|
|
int playback(LPLoginInfo loginInfo, LPStream stream);
|
|
int play(LPLoginInfo loginInfo, LPStream stream);
|
|
int getCfg(LPLoginInfo loginInfo);
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|