fujuntang
2022-04-28 51ccd8155f029d66366d0df8e2baf886ffd50000
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#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