#include "Include_i.h"
Macros | |
#define | LOG_CLASS "CurlApiCallbacks" |
Functions | |
STATUS | createCurlApiCallbacks (PCallbacksProvider pCallbacksProvider, PCHAR region, API_CALL_CACHE_TYPE cacheType, UINT64 endpointCachingPeriod, PCHAR controlPlaneUrl, PCHAR certPath, PCHAR userAgentNamePostfix, PCHAR customUserAgent, PCurlApiCallbacks *ppCurlApiCallbacks) |
STATUS | freeCurlApiCallbacks (PCurlApiCallbacks *ppCurlApiCallbacks) |
STATUS | freeApiCallbacksCurl (PUINT64 customData) |
STATUS | curlApiCallbacksShutdown (PCurlApiCallbacks pCurlApiCallbacks, UINT64 timeout) |
STATUS | curlApiCallbacksMarkStreamShuttingdownCallback (UINT64 customData, PHashEntry pHashEntry) |
STATUS | curlApiCallbacksCachedEndpointsTableShutdownCallback (UINT64 customData, PHashEntry pHashEntry) |
STATUS | curlApiCallbacksShutdownActiveRequests (PCurlApiCallbacks pCurlApiCallbacks, STREAM_HANDLE streamHandle, UINT64 timeout, BOOL fromCurlThread, BOOL killThread) |
STATUS | curlApiCallbacksShutdownCachedEndpoints (PCurlApiCallbacks pCurlApiCallbacks, STREAM_HANDLE streamHandle, BOOL removeFromTable) |
STATUS | curlApiCallbacksShutdownActiveUploads (PCurlApiCallbacks pCurlApiCallbacks, STREAM_HANDLE streamHandle, UPLOAD_HANDLE uploadHandle, UINT64 timeout, BOOL fromCurlThread, BOOL killThread) |
STATUS | notifyCallResult (PCallbacksProvider pCallbacksProvider, STATUS status, STREAM_HANDLE streamHandle) |
STREAM_STATUS | getStreamStatusFromString (PCHAR status, UINT32 length) |
STATUS | curlCallApi (PCurlRequest pCurlRequest) |
STATUS | clientShutdownCurl (UINT64 customData, CLIENT_HANDLE clientHandle) |
STATUS | shutdownStreamCurl (UINT64 customData, STREAM_HANDLE streamHandle, BOOL resetStream) |
STATUS | dataAvailableCurl (UINT64 customData, STREAM_HANDLE streamHandle, PCHAR streamName, UPLOAD_HANDLE uploadHandle, UINT64 durationAvailable, UINT64 bytesAvailable) |
STATUS | streamClosedCurl (UINT64 customData, STREAM_HANDLE streamHandle, UPLOAD_HANDLE uploadHandle) |
STATUS | fragmentAckReceivedCurl (UINT64 customData, STREAM_HANDLE streamHandle, UPLOAD_HANDLE uploadHandle, PFragmentAck pFragmentAck) |
STATUS | createDeviceCurl (UINT64 customData, PCHAR deviceName, PServiceCallContext pServiceCallContext) |
STATUS | createStreamCurl (UINT64 customData, PCHAR deviceName, PCHAR streamName, PCHAR contentType, PCHAR kmsKeyId, UINT64 retentionPeriod, PServiceCallContext pServiceCallContext) |
STATUS | createStreamCachingCurl (UINT64 customData, PCHAR deviceName, PCHAR streamName, PCHAR contentType, PCHAR kmsKeyId, UINT64 retentionPeriod, PServiceCallContext pServiceCallContext) |
PVOID | createStreamCurlHandler (PVOID arg) |
STATUS | describeStreamCurl (UINT64 customData, PCHAR streamName, PServiceCallContext pServiceCallContext) |
STATUS | describeStreamCachingCurl (UINT64 customData, PCHAR streamName, PServiceCallContext pServiceCallContext) |
PVOID | describeStreamCurlHandler (PVOID arg) |
STATUS | getStreamingEndpointCurl (UINT64 customData, PCHAR streamName, PCHAR apiName, PServiceCallContext pServiceCallContext) |
STATUS | getStreamingEndpointCachingCurl (UINT64 customData, PCHAR streamName, PCHAR apiName, PServiceCallContext pServiceCallContext) |
PVOID | getStreamingEndpointCurlHandler (PVOID arg) |
STATUS | tagResourceCurl (UINT64 customData, PCHAR streamArn, UINT32 tagCount, PTag tags, PServiceCallContext pServiceCallContext) |
STATUS | tagResourceCachingCurl (UINT64 customData, PCHAR streamArn, UINT32 tagCount, PTag tags, PServiceCallContext pServiceCallContext) |
PVOID | tagResourceCurlHandler (PVOID arg) |
STATUS | putStreamCurl (UINT64 customData, PCHAR streamName, PCHAR containerType, UINT64 startTimestamp, BOOL absoluteFragmentTimestamp, BOOL acksEnabled, PCHAR streamingEndpoint, PServiceCallContext pServiceCallContext) |
PVOID | putStreamCurlHandler (PVOID arg) |
STATUS | findRequestWithUploadHandle (UPLOAD_HANDLE uploadHandle, PCurlApiCallbacks pCurlApiCallbacks, PCurlRequest *ppCurlRequest) |
STATUS | checkApiCallEmulation (PCurlApiCallbacks pCurlApiCallbacks, STREAM_HANDLE streamHandle, PBOOL pEmulateApiCall) |
#define LOG_CLASS "CurlApiCallbacks" |
Kinesis Video Producer CURL based API Callbacks
STATUS checkApiCallEmulation | ( | PCurlApiCallbacks | pCurlApiCallbacks, |
STREAM_HANDLE | streamHandle, | ||
PBOOL | pEmulateApiCall | ||
) |
STATUS clientShutdownCurl | ( | UINT64 | customData, |
CLIENT_HANDLE | clientHandle | ||
) |
STATUS createCurlApiCallbacks | ( | PCallbacksProvider | pCallbacksProvider, |
PCHAR | region, | ||
API_CALL_CACHE_TYPE | cacheType, | ||
UINT64 | endpointCachingPeriod, | ||
PCHAR | controlPlaneUrl, | ||
PCHAR | certPath, | ||
PCHAR | userAgentNamePostfix, | ||
PCHAR | customUserAgent, | ||
PCurlApiCallbacks * | ppCurlApiCallbacks | ||
) |
Creates CURL based API callbacks provider
STATUS createDeviceCurl | ( | UINT64 | customData, |
PCHAR | deviceName, | ||
PServiceCallContext | pServiceCallContext | ||
) |
STATUS createStreamCachingCurl | ( | UINT64 | customData, |
PCHAR | deviceName, | ||
PCHAR | streamName, | ||
PCHAR | contentType, | ||
PCHAR | kmsKeyId, | ||
UINT64 | retentionPeriod, | ||
PServiceCallContext | pServiceCallContext | ||
) |
STATUS createStreamCurl | ( | UINT64 | customData, |
PCHAR | deviceName, | ||
PCHAR | streamName, | ||
PCHAR | contentType, | ||
PCHAR | kmsKeyId, | ||
UINT64 | retentionPeriod, | ||
PServiceCallContext | pServiceCallContext | ||
) |
PVOID createStreamCurlHandler | ( | PVOID | arg | ) |
STATUS curlApiCallbacksCachedEndpointsTableShutdownCallback | ( | UINT64 | customData, |
PHashEntry | pHashEntry | ||
) |
STATUS curlApiCallbacksMarkStreamShuttingdownCallback | ( | UINT64 | customData, |
PHashEntry | pHashEntry | ||
) |
STATUS curlApiCallbacksShutdown | ( | PCurlApiCallbacks | pCurlApiCallbacks, |
UINT64 | timeout | ||
) |
STATUS curlApiCallbacksShutdownActiveRequests | ( | PCurlApiCallbacks | pCurlApiCallbacks, |
STREAM_HANDLE | streamHandle, | ||
UINT64 | timeout, | ||
BOOL | fromCurlThread, | ||
BOOL | killThread | ||
) |
STATUS curlApiCallbacksShutdownActiveUploads | ( | PCurlApiCallbacks | pCurlApiCallbacks, |
STREAM_HANDLE | streamHandle, | ||
UPLOAD_HANDLE | uploadHandle, | ||
UINT64 | timeout, | ||
BOOL | fromCurlThread, | ||
BOOL | killThread | ||
) |
STATUS curlApiCallbacksShutdownCachedEndpoints | ( | PCurlApiCallbacks | pCurlApiCallbacks, |
STREAM_HANDLE | streamHandle, | ||
BOOL | removeFromTable | ||
) |
STATUS curlCallApi | ( | PCurlRequest | pCurlRequest | ) |
STATUS dataAvailableCurl | ( | UINT64 | customData, |
STREAM_HANDLE | streamHandle, | ||
PCHAR | streamName, | ||
UPLOAD_HANDLE | uploadHandle, | ||
UINT64 | durationAvailable, | ||
UINT64 | bytesAvailable | ||
) |
STATUS describeStreamCachingCurl | ( | UINT64 | customData, |
PCHAR | streamName, | ||
PServiceCallContext | pServiceCallContext | ||
) |
STATUS describeStreamCurl | ( | UINT64 | customData, |
PCHAR | streamName, | ||
PServiceCallContext | pServiceCallContext | ||
) |
PVOID describeStreamCurlHandler | ( | PVOID | arg | ) |
STATUS findRequestWithUploadHandle | ( | UPLOAD_HANDLE | uploadHandle, |
PCurlApiCallbacks | pCurlApiCallbacks, | ||
PCurlRequest * | ppCurlRequest | ||
) |
STATUS fragmentAckReceivedCurl | ( | UINT64 | customData, |
STREAM_HANDLE | streamHandle, | ||
UPLOAD_HANDLE | uploadHandle, | ||
PFragmentAck | pFragmentAck | ||
) |
STATUS freeApiCallbacksCurl | ( | PUINT64 | customData | ) |
STATUS freeCurlApiCallbacks | ( | PCurlApiCallbacks * | ppCurlApiCallbacks | ) |
Frees the CURL API callbacks object
NOTE: The caller should have passed a pointer which was previously created by the corresponding function NOTE: The call is idempotent
STATUS getStreamingEndpointCachingCurl | ( | UINT64 | customData, |
PCHAR | streamName, | ||
PCHAR | apiName, | ||
PServiceCallContext | pServiceCallContext | ||
) |
STATUS getStreamingEndpointCurl | ( | UINT64 | customData, |
PCHAR | streamName, | ||
PCHAR | apiName, | ||
PServiceCallContext | pServiceCallContext | ||
) |
PVOID getStreamingEndpointCurlHandler | ( | PVOID | arg | ) |
STREAM_STATUS getStreamStatusFromString | ( | PCHAR | status, |
UINT32 | length | ||
) |
STATUS notifyCallResult | ( | PCallbacksProvider | pCallbacksProvider, |
STATUS | status, | ||
STREAM_HANDLE | streamHandle | ||
) |
STATUS putStreamCurl | ( | UINT64 | customData, |
PCHAR | streamName, | ||
PCHAR | containerType, | ||
UINT64 | startTimestamp, | ||
BOOL | absoluteFragmentTimestamp, | ||
BOOL | acksEnabled, | ||
PCHAR | streamingEndpoint, | ||
PServiceCallContext | pServiceCallContext | ||
) |
PVOID putStreamCurlHandler | ( | PVOID | arg | ) |
STATUS shutdownStreamCurl | ( | UINT64 | customData, |
STREAM_HANDLE | streamHandle, | ||
BOOL | resetStream | ||
) |
STATUS streamClosedCurl | ( | UINT64 | customData, |
STREAM_HANDLE | streamHandle, | ||
UPLOAD_HANDLE | uploadHandle | ||
) |
STATUS tagResourceCachingCurl | ( | UINT64 | customData, |
PCHAR | streamArn, | ||
UINT32 | tagCount, | ||
PTag | tags, | ||
PServiceCallContext | pServiceCallContext | ||
) |
STATUS tagResourceCurl | ( | UINT64 | customData, |
PCHAR | streamArn, | ||
UINT32 | tagCount, | ||
PTag | tags, | ||
PServiceCallContext | pServiceCallContext | ||
) |
PVOID tagResourceCurlHandler | ( | PVOID | arg | ) |