#include "../Include_i.h"
Macros | |
#define | LOG_CLASS "ChannelInfo" |
#define | ARN_DELIMETER_CHAR ':' |
#define | ARN_CHANNEL_NAME_CODE_SEP '/' |
#define | ARN_BEGIN "arn:aws" |
#define | SIGNALING_CHANNEL_ARN_SERVICE_NAME "kinesisvideo" |
#define | SIGNALING_CHANNEL_ARN_RESOURCE_TYPE "channel/" |
#define | AWS_ACCOUNT_ID_LENGTH 12 |
#define | AWS_KVS_ARN_CODE_LENGTH 13 |
#define | SIGNALING_CHANNEL_ARN_MIN_LENGTH 59 |
#define | CHANNEL_ARN_MIN_DIST_FROM_REGION_END_TO_END_OF_ARN 37 |
Functions | |
STATUS | createValidateChannelInfo (PChannelInfo pOrigChannelInfo, PChannelInfo *ppChannelInfo) |
STATUS | freeChannelInfo (PChannelInfo *ppChannelInfo) |
SIGNALING_CHANNEL_STATUS | getChannelStatusFromString (PCHAR status, UINT32 length) |
SIGNALING_CHANNEL_TYPE | getChannelTypeFromString (PCHAR type, UINT32 length) |
PCHAR | getStringFromChannelType (SIGNALING_CHANNEL_TYPE type) |
SIGNALING_CHANNEL_ROLE_TYPE | getChannelRoleTypeFromString (PCHAR type, UINT32 length) |
PCHAR | getStringFromChannelRoleType (SIGNALING_CHANNEL_ROLE_TYPE type) |
STATUS | validateKvsSignalingChannelArnAndExtractChannelName (PChannelInfo pChannelInfo, PUINT16 pStart, PUINT16 pNumChars) |
#define ARN_BEGIN "arn:aws" |
#define ARN_CHANNEL_NAME_CODE_SEP '/' |
#define ARN_DELIMETER_CHAR ':' |
#define AWS_ACCOUNT_ID_LENGTH 12 |
#define AWS_KVS_ARN_CODE_LENGTH 13 |
#define CHANNEL_ARN_MIN_DIST_FROM_REGION_END_TO_END_OF_ARN 37 |
#define LOG_CLASS "ChannelInfo" |
#define SIGNALING_CHANNEL_ARN_MIN_LENGTH 59 |
#define SIGNALING_CHANNEL_ARN_RESOURCE_TYPE "channel/" |
#define SIGNALING_CHANNEL_ARN_SERVICE_NAME "kinesisvideo" |
STATUS createValidateChannelInfo | ( | PChannelInfo | pOrigChannelInfo, |
PChannelInfo * | ppChannelInfo | ||
) |
Takes in a pointer to a public version of ChannelInfo object. Validates and creates an internal object
STATUS freeChannelInfo | ( | PChannelInfo * | ppChannelInfo | ) |
Frees the channel info object.
- | PChannelInfo* - IN - Channel info object to free |
SIGNALING_CHANNEL_ROLE_TYPE getChannelRoleTypeFromString | ( | PCHAR | type, |
UINT32 | length | ||
) |
Returns the signaling channel Role from a string
- | PCHAR - IN - String representation of the channel role |
- | UINT32 - IN - String length |
SIGNALING_CHANNEL_STATUS getChannelStatusFromString | ( | PCHAR | status, |
UINT32 | length | ||
) |
Returns the signaling channel status from a string
- | PCHAR - IN - String representation of the channel status |
- | UINT32 - IN - String length |
SIGNALING_CHANNEL_TYPE getChannelTypeFromString | ( | PCHAR | type, |
UINT32 | length | ||
) |
Returns the signaling channel type from a string
- | PCHAR - IN - String representation of the channel type |
- | UINT32 - IN - String length |
PCHAR getStringFromChannelRoleType | ( | SIGNALING_CHANNEL_ROLE_TYPE | type | ) |
Returns the signaling channel role type string
- | SIGNALING_CHANNEL_TYPE - IN - Signaling channel type |
PCHAR getStringFromChannelType | ( | SIGNALING_CHANNEL_TYPE | type | ) |
Returns the signaling channel type string
- | SIGNALING_CHANNEL_TYPE - IN - Signaling channel type |
STATUS validateKvsSignalingChannelArnAndExtractChannelName | ( | PChannelInfo | pChannelInfo, |
PUINT16 | pStart, | ||
PUINT16 | pNumChars | ||
) |
Determines whether or not the channel arn is valid If VALID it extracts the channel name And Sets the pChannelName field in PChannelInfo
- | PChannelInfo - IN - channel info object |
- | PUINT16 - OUT - start index of the arn (if valid) where the channel name is |
- | PUINT16 - OUT - number of characters for the arn (if valid) |