Amazon Kinesis Webrtc C SDK
ChannelInfo.h
Go to the documentation of this file.
1 /*******************************************
2 Signaling internal include file
3 *******************************************/
4 #ifndef __KINESIS_VIDEO_WEBRTC_CHANNEL_INFO__
5 #define __KINESIS_VIDEO_WEBRTC_CHANNEL_INFO__
6 
7 #pragma once
8 
9 #ifdef __cplusplus
10 extern "C" {
11 #endif
12 
13 // Max control plane URI char len
14 #define MAX_CONTROL_PLANE_URI_CHAR_LEN 256
15 
16 // Max channel status string length in describe API call in chars
17 #define MAX_DESCRIBE_CHANNEL_STATUS_LEN 32
18 
19 // Max channel type string length in describe API call in chars
20 #define MAX_DESCRIBE_CHANNEL_TYPE_LEN 128
21 
22 // Signaling channel type string
23 #define SIGNALING_CHANNEL_TYPE_UNKNOWN_STR (PCHAR) "UNKOWN"
24 #define SIGNALING_CHANNEL_TYPE_SINGLE_MASTER_STR (PCHAR) "SINGLE_MASTER"
25 
26 // Signaling channel role type string
27 #define SIGNALING_CHANNEL_ROLE_TYPE_UNKNOWN_STR (PCHAR) "UNKOWN"
28 #define SIGNALING_CHANNEL_ROLE_TYPE_MASTER_STR (PCHAR) "MASTER"
29 #define SIGNALING_CHANNEL_ROLE_TYPE_VIEWER_STR (PCHAR) "VIEWER"
30 
31 // Min and max for the message TTL value
32 #define MIN_SIGNALING_MESSAGE_TTL_VALUE (5 * HUNDREDS_OF_NANOS_IN_A_SECOND)
33 #define MAX_SIGNALING_MESSAGE_TTL_VALUE (120 * HUNDREDS_OF_NANOS_IN_A_SECOND)
34 
35 #define SIGNALING_USER_AGENT_POSTFIX_NAME (PCHAR) "AWS-WEBRTC-KVS-AGENT"
36 
37 #ifdef VERSION_STRING
38 #define SIGNALING_USER_AGENT_POSTFIX_VERSION (PCHAR) VERSION_STRING
39 #else
40 #define SIGNALING_USER_AGENT_POSTFIX_VERSION (PCHAR) "UNKNOWN"
41 #endif
42 
50 
59 
69 
79 
88 
98 
107 
120 
121 #ifdef __cplusplus
122 }
123 #endif
124 #endif /* __KINESIS_VIDEO_WEBRTC_CHANNEL_INFO__ */
PCHAR getStringFromChannelRoleType(SIGNALING_CHANNEL_ROLE_TYPE)
Definition: ChannelInfo.c:334
SIGNALING_CHANNEL_ROLE_TYPE getChannelRoleTypeFromString(PCHAR, UINT32)
Definition: ChannelInfo.c:320
SIGNALING_CHANNEL_TYPE getChannelTypeFromString(PCHAR, UINT32)
Definition: ChannelInfo.c:292
PCHAR getStringFromChannelType(SIGNALING_CHANNEL_TYPE)
Definition: ChannelInfo.c:304
STATUS freeChannelInfo(PChannelInfo *)
Definition: ChannelInfo.c:248
SIGNALING_CHANNEL_STATUS getChannelStatusFromString(PCHAR, UINT32)
Definition: ChannelInfo.c:274
STATUS validateKvsSignalingChannelArnAndExtractChannelName(PChannelInfo, PUINT16, PUINT16)
Definition: ChannelInfo.c:355
STATUS createValidateChannelInfo(PChannelInfo, PChannelInfo *)
Definition: ChannelInfo.c:20
SIGNALING_CHANNEL_ROLE_TYPE
Channel role type.
Definition: Include.h:927
SIGNALING_CHANNEL_TYPE
Channel type as reported by the service.
Definition: Include.h:919
SIGNALING_CHANNEL_STATUS
Defines channel status as reported by the service.
Definition: Include.h:865
Contains all signaling channel related information.
Definition: Include.h:1321