Advanced Adaptive Media Player (AAMP) Curl store.
More...
Go to the source code of this file.
|
#define | CURL_EASY_SETOPT(curl, CURLoption, option) |
|
|
static void | curl_lock_callback (CURL *curl, curl_lock_data data, curl_lock_access access, void *user_ptr) |
|
static void | curl_unlock_callback (CURL *curl, curl_lock_data data, void *user_ptr) |
|
static size_t | write_callback (char *ptr, size_t size, size_t nmemb, void *userdata) |
| write callback to be used by CURL More...
|
|
static size_t | header_callback (const char *ptr, size_t size, size_t nmemb, void *user_data) |
| callback invoked on http header by curl More...
|
|
static int | progress_callback (void *clientp, double dltotal, double dlnow, double ultotal, double ulnow) |
|
CURLcode | ssl_callback (CURL *curl, void *ssl_ctx, void *user_ptr) |
|
static int | eas_curl_debug_callback (CURL *handle, curl_infotype type, char *data, size_t size, void *userp) |
|
|
static pthread_mutex_t | gCurlShMutex = PTHREAD_MUTEX_INITIALIZER |
|
Advanced Adaptive Media Player (AAMP) Curl store.
Definition in file AampCurlStore.cpp.
◆ CURL_EASY_SETOPT
#define CURL_EASY_SETOPT |
( |
|
curl, |
|
|
|
CURLoption, |
|
|
|
option |
|
) |
| |
Value: if (curl_easy_setopt(curl, CURLoption, option) != 0) {\
logprintf("Failed at curl_easy_setopt ");\
}
Definition at line 28 of file AampCurlStore.cpp.
◆ curl_lock_callback()
static void curl_lock_callback |
( |
CURL * |
curl, |
|
|
curl_lock_data |
data, |
|
|
curl_lock_access |
access, |
|
|
void * |
user_ptr |
|
) |
| |
|
static |
◆ curl_unlock_callback()
static void curl_unlock_callback |
( |
CURL * |
curl, |
|
|
curl_lock_data |
data, |
|
|
void * |
user_ptr |
|
) |
| |
|
static |
◆ write_callback()
static size_t write_callback |
( |
char * |
ptr, |
|
|
size_t |
size, |
|
|
size_t |
nmemb, |
|
|
void * |
userdata |
|
) |
| |
|
static |
write callback to be used by CURL
- Parameters
-
ptr | pointer to buffer containing the data |
size | size of the buffer |
nmemb | number of bytes |
userdata | CurlCallbackContext pointer |
- Return values
-
size | consumed or 0 if interrupted |
Definition at line 122 of file AampCurlStore.cpp.
◆ header_callback()
static size_t header_callback |
( |
const char * |
ptr, |
|
|
size_t |
size, |
|
|
size_t |
nmemb, |
|
|
void * |
user_data |
|
) |
| |
|
static |
callback invoked on http header by curl
- Parameters
-
ptr | pointer to buffer containing the data |
size | size of the buffer |
nmemb | number of bytes |
user_data | CurlCallbackContext pointer |
- Return values
-
Definition at line 141 of file AampCurlStore.cpp.
◆ progress_callback()
static int progress_callback |
( |
void * |
clientp, |
|
|
double |
dltotal, |
|
|
double |
dlnow, |
|
|
double |
ultotal, |
|
|
double |
ulnow |
|
) |
| |
|
static |
- Parameters
-
clientp | app-specific as optionally set with CURLOPT_PROGRESSDATA |
dltotal | total bytes expected to download |
dlnow | downloaded bytes so far |
ultotal | total bytes expected to upload |
ulnow | uploaded bytes so far |
- Return values
-
Definition at line 161 of file AampCurlStore.cpp.
◆ ssl_callback()
CURLcode ssl_callback |
( |
CURL * |
curl, |
|
|
void * |
ssl_ctx, |
|
|
void * |
user_ptr |
|
) |
| |
- Parameters
-
curl | ptr to CURL instance |
ssl_ctx | SSL context used by CURL |
user_ptr | data pointer set as param to CURLOPT_SSL_CTX_DATA |
- Return values
-
CURLcode | CURLE_OK if no errors, otherwise corresponding CURL code |
Definition at line 186 of file AampCurlStore.cpp.
◆ eas_curl_debug_callback()
static int eas_curl_debug_callback |
( |
CURL * |
handle, |
|
|
curl_infotype |
type, |
|
|
char * |
data, |
|
|
size_t |
size, |
|
|
void * |
userp |
|
) |
| |
|
static |
- Parameters
-
handle | ptr to CURL instance |
type | type of data passed in the callback |
data | data pointer, NOT null terminated |
size | size of the data |
userp | user pointer set with CURLOPT_DEBUGDATA |
- Return values
-
Definition at line 209 of file AampCurlStore.cpp.