EasyCVR在不断开拓接入协议及平台,目前我们正在对华为IVS平台做对接测试。由于接口众多,后期我们会挑几个重要的接口跟大家介绍一下。本文介绍查询共享目录信息列表这个接口。
方法定义:
代码语言:javascript复制//cpp code
IVS_INT32 IVS_SDK_GetShareCatalogList (
IVS_INT32 iSessionID,
const IVS_CHAR* pExDomainCode,
const IVS_INDEX_RANGE* pIndexRange,
IVS_UINT32 bDirect,
IVS_CHAR** pRspXml);
参数描述:
表1查询目录共享信息响应XML:
使用示例:
代码语言:javascript复制//cpp code
IVS_INT32 iRet = IVS_FAIL;
iRet = IVS_SDK_Init();
if (IVS_SUCCEED != iRet)
{
return 0;
}
IVS_LOGIN_INFO LoginReqInfo = {0};
LoginReqInfo.stIP.uiIPType = IP_V4;
strncpy(LoginReqInfo.stIP.cIP, "192.168.1.1, IVS_IP_LEN);
LoginReqInfo.uiPort = 9900;
strncpy(LoginReqInfo.cUserName, "Admin", IVS_NAME_LEN);
strncpy(LoginReqInfo.pPWD, "super123", IVS_PWD_LEN);
iRet = IVS_SDK_Login(&LoginReqInfo, &iSessionID);
if (IVS_SUCCEED == iRet)
{
const IVS_CHAR* pExDomainCode = "33010000002000000002";
bDirect = 1;
IVS_INDEX_RANGE IndexRange = {0};
IndexRange.uiFromIndex= 1;
IndexRange.uiToIndex= 1024;
IVS_CHAR* pRspXml = NULL;
iRet = IVS_SDK_GetShareCatalogList(iSessionID, pExDomainCode, &IndexRange, bDirect, &pRspXml);
if (IVS_SUCCEED == iRet)
{
//成功
if (NULL != pRspXml)
{
IVS_SDK_ReleaseBuffer(pRspXml);
pRspXml = NULL;
}
}
}