|
库的轮询,用于库处理内部事务。
当BVCSP_Initialize() bAutoHandle = 0 时,由调用者通过BVCSP_HandleEvent()处理库内部事务。
在BVCSP_Login() 之前需要 认证通过。
返回值的错误定义都在 BVCUConst.h头文件里面。
// Decoder
#define BVCU_MAX_SUPPORT_RESOLUTION 6 // 解码器输出口支持的最多分辨率数。
#define BVCU_DEC_MAX_WINDOWS 32 //解码器每个显示通道支持的最多窗口数。
#define BVCU_MAX_TOUR_IPCHANNEL_COUNT 16 //IP通道最大轮询连接数量
/*函数返回值及事件通知状态码*/
typedef enum _BVCU_Result {
BVCU_RESULT_E_FAILED = -0x10000, /*general error*/
BVCU_RESULT_E_INVALIDARG, /*invalid argument*/
BVCU_RESULT_E_UNSUPPORTED, /*unsupported functions*/
BVCU_RESULT_E_ALLOCMEMFAILED, /*allocate memory failed*/
BVCU_RESULT_E_MEMALIGNMENT, /*memory alignment is not satisfied*/
BVCU_RESULT_E_NOTFOUND, /*not found*/
BVCU_RESULT_E_NOTALLOWED, /*the requested access is not allowed*/
BVCU_RESULT_E_IO, /*I/O error*/
BVCU_RESULT_E_EOF, /*End of file*/
BVCU_RESULT_E_INVALIDDATA, /*Invalid data found when processing input*/
BVCU_RESULT_E_NOTIMPL, /*not implemented*/
BVCU_RESULT_E_BUSY, /*busy.deny service now*/
BVCU_RESULT_E_INUSE, /*device in use*/
BVCU_RESULT_E_BADREQUEST, /*bad request*/
BVCU_RESULT_E_AUTHORIZE_FAILED, /*authorize failed。登录/发送命令等的OnEvent回调中使用*/
BVCU_RESULT_E_BADSTATE, /*bad internal state*/
BVCU_RESULT_E_NOTINITILIZED, /*not initialized*/
BVCU_RESULT_E_FATALERROR, /*fatal error. BVCU should be closed*/
BVCU_RESULT_E_OUTOFSPACE, /*out of space*/
BVCU_RESULT_E_DISCONNECTED, /*disconnected*/
BVCU_RESULT_E_TIMEOUT, /*time out*/
BVCU_RESULT_E_CONNECTFAILED, /*connect failed*/
BVCU_RESULT_E_ABORTED, /*request aborted*/
BVCU_RESULT_E_THRAEDCONTEXT, /*can not execute in the specified thread context*/
BVCU_RESULT_E_UNAVAILABLE, /*unavailable, eg: initialize a dialog with an offlined PU*/
BVCU_RESULT_E_ALREADYEXIST, /*already exist*/
BVCU_RESULT_E_SEVERINTERNAL, /*Server internal error*/
BVCU_RESULT_E_MAXRETRIES, /*达到最大重试次数*/
BVCU_RESULT
|
|