56 lines
2.1 KiB
C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#ifndef __LAUCAMSEARCH_H__
#define __LAUCAMSEARCH_H__
#define CAMSEAR_APIIMPORT extern "C" __declspec(dllexport)
//初始化,开始使用时调用
CAMSEAR_APIIMPORT BOOL __stdcall CAMSEAR_Startup();
//停止使用,结束使用时调用
CAMSEAR_APIIMPORT BOOL __stdcall CAMSEAR_Cleanup();
/*开始搜索
参数:
m_wait:等待时间(毫秒)
notify通知回调函数
参数如下:
devtype:设备类型1视频服务器2解码器
m_sername:服务器名称;
m_url:IP地址
m_webportWEB服务器端口
m_localport本地端口
*/
CAMSEAR_APIIMPORT BOOL __stdcall CAMSEAR_Searchcam(int m_wait,
void(WINAPI *notify)(int devtype,char *m_sername,char *m_url,BYTE m_mac[6],WORD m_webport,WORD m_localport,
char *m_submask,char *m_getway,char *m_multiip,char *m_dns,WORD m_multiport,int channel),char *localurl = NULL);
//兼容老版本的函数
CAMSEAR_APIIMPORT BOOL __stdcall CAMSEAR_Searchcam_old(int m_wait,
void(WINAPI *notify)(int devtype,char *m_sername,char *m_url,BYTE m_mac[6],WORD m_webport,WORD m_localport,
char *m_submask,char *m_getway,char *m_multiip,char *m_dns,WORD m_multiport,int channel),char *localurl = NULL);
/*
设置服务器地址:
m_mac: MAC地址只是作为服务器标识用
m_sername:服务器名称
m_url:服务器地址
m_submask:子网掩码
m_getway:网关
m_multiip多播地址
m_webport:WEB服务器端口
m_localport:本地服务端口
m_multiport:多播端口
*/
CAMSEAR_APIIMPORT BOOL __stdcall CAMSEAR_SearchSeturl(BYTE m_mac[6],char *m_sername,
char *m_url,char *m_submask,char *m_getway,char *m_multiip,char *m_dns,
WORD m_webport,WORD m_localport,WORD m_multiport,char *localurl = NULL);
/*
重启服务器,更改服务器地址后,需要重启才能生效
*/
CAMSEAR_APIIMPORT BOOL __stdcall CAMSEAR_SearchReset(BYTE m_mac[6],char *localurl = NULL);
CAMSEAR_APIIMPORT int __stdcall GetEthernetInfo(void(WINAPI *notify)(char *localip));
CAMSEAR_APIIMPORT BOOL __stdcall CAMSEAR_SearchRestore(BYTE m_mac[6],char *localurl = NULL);
CAMSEAR_APIIMPORT int __stdcall CAMSEAR_BadPixel(char *url, unsigned short *badpixelcount, unsigned short *badpixelcountmin,
unsigned short *badpixelcountmax);
#endif//__LAUCAMSEARCH_H__