38 lines
995 B
C
38 lines
995 B
C
#ifndef _HK_STREAMER_
|
|
#define _HK_STREAMER_
|
|
|
|
// // #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__
|
|
|
|
typedef struct {
|
|
char sDeviceAddress[129];
|
|
char sUserName[64];
|
|
char sPassword[64];
|
|
} LoginInfo, *LPLoginInfo;
|
|
|
|
typedef struct
|
|
{
|
|
unsigned long dwYear; //年
|
|
unsigned long dwMonth; //月
|
|
unsigned long dwDay; //日
|
|
unsigned long dwHour; //时
|
|
unsigned long dwMinute; //分
|
|
unsigned long dwSecond; //秒
|
|
} StreamDate, *LStreamDate;
|
|
typedef struct {
|
|
unsigned long lChannel;
|
|
StreamDate start;
|
|
StreamDate end;
|
|
} StreamCon, *LPStream;
|
|
|
|
#define HPR_OK 0
|
|
#define HPR_ERROR -1
|
|
int playback(LPLoginInfo loginInfo, LPStream stream);
|
|
#endif |