4 #ifndef __KINESIS_VIDEO_WEBRTC_FILE_CACHE__
5 #define __KINESIS_VIDEO_WEBRTC_FILE_CACHE__
15 #define DEFAULT_CACHE_FILE_PATH (PCHAR) "./.SignalingCache_v0"
16 #define MAX_SIGNALING_CACHE_ENTRY_TIMESTAMP_STR_LEN 10
19 #define MAX_SERIALIZED_SIGNALING_CACHE_ENTRY_LEN \
20 MAX_CHANNEL_NAME_LEN + MAX_ARN_LEN + MAX_REGION_NAME_LEN + MAX_SIGNALING_ENDPOINT_URI_LEN * 2 + MAX_SIGNALING_CACHE_ENTRY_TIMESTAMP_STR_LEN + 8
21 #define MAX_SIGNALING_CACHE_ENTRY_COUNT 32
22 #define SIGNALING_FILE_CACHE_ROLE_TYPE_MASTER_STR "Master"
23 #define SIGNALING_FILE_CACHE_ROLE_TYPE_VIEWER_STR "Viewer"
28 CHAR storageEnabled[2];
30 CHAR channelArn[MAX_ARN_LEN + 1];
31 CHAR region[MAX_REGION_NAME_LEN + 1];
34 CHAR storageStreamArn[MAX_ARN_LEN + 1];
STATUS deserializeSignalingCacheEntries(PCHAR, UINT64, PSignalingFileCacheEntry, PUINT32, PCHAR)
Definition: FileCache.c:27
STATUS signalingCacheLoadFromFile(PCHAR, PCHAR, SIGNALING_CHANNEL_ROLE_TYPE, PSignalingFileCacheEntry, PBOOL, PCHAR)
Definition: FileCache.c:127
struct SignalingFileCacheEntry * PSignalingFileCacheEntry
STATUS signalingCacheSaveToFile(PSignalingFileCacheEntry, PCHAR)
Definition: FileCache.c:176
#define MAX_SIGNALING_ENDPOINT_URI_LEN
Definition: Include.h:461
#define MAX_CHANNEL_NAME_LEN
Definition: Include.h:439
SIGNALING_CHANNEL_ROLE_TYPE
Channel role type.
Definition: Include.h:932
Definition: FileCache.h:25
UINT64 creationTsEpochSeconds
Definition: FileCache.h:27
SIGNALING_CHANNEL_ROLE_TYPE role
Definition: FileCache.h:26