#ifndef __PROTO_CAPA_H__ #define __PROTO_CAPA_H__ #ifdef __cplusplus extern "C" { #endif #include "proto_comm.h" struct tagProfile { char token[PROTO_TOKEN_SIZE]; // 唯一标识设备配置文件的令牌字符串 struct tagVideoSourceConfiguration videoCfg; struct tagVideoEncoderConfiguration venc; // 视频编码器配置信息 }; struct tagCapabilities { char MediaXAddr[PROTO_ADDRESS_SIZE]; // 媒体服务地址 char EventXAddr[PROTO_ADDRESS_SIZE]; // 事件服务地址 char AnalyticsXAddr[PROTO_ADDRESS_SIZE]; char DeviceXAddr[PROTO_ADDRESS_SIZE]; char ImageXAddr[PROTO_ADDRESS_SIZE]; char PTZXAddr[PROTO_ADDRESS_SIZE]; }; int proto_GetProfiles(const char *MediaXAddr, struct tagProfile **profiles, const char *username, const char *passwd); int proto_GetCapabilities(const char *DeviceXAddr, struct tagCapabilities *capa, const char *username, const char *passwd); #ifdef __cplusplus } #endif #endif