2023-03-24 19:34:36 +08:00
|
|
|
#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__
|
2023-03-29 19:03:49 +08:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C"
|
|
|
|
{
|
|
|
|
#endif
|
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
char sDeviceAddress[129];
|
|
|
|
char sUserName[64];
|
|
|
|
char sPassword[64];
|
|
|
|
} LoginInfo, *LPLoginInfo;
|
2023-03-24 19:34:36 +08:00
|
|
|
|
2023-03-29 19:03:49 +08:00
|
|
|
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;
|
2023-03-24 19:34:36 +08:00
|
|
|
|
2023-03-29 19:03:49 +08:00
|
|
|
#define HPR_OK 0
|
|
|
|
#define HPR_ERROR -1
|
|
|
|
int playback(LPLoginInfo loginInfo, LPStream stream);
|
|
|
|
int getCfg(LPLoginInfo loginInfo);
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
2023-03-24 19:34:36 +08:00
|
|
|
|
|
|
|
#endif
|