| Asterisk - The Open Source Telephony Project GIT-master-27fb039
    | 
Context structure passed to ast_curl_write_default_cb. More...
#include <curl_utils.h>
| Data Fields | |
| int | _internal_memstream | 
| size_t | bytes_downloaded | 
| char * | debug_info | 
| size_t | max_download_bytes | 
| FILE * | output | 
| char * | stream_buffer | 
| size_t | stream_bytes_downloaded | 
Context structure passed to ast_curl_write_default_cb.
Definition at line 245 of file curl_utils.h.
| int _internal_memstream | 
Definition at line 286 of file curl_utils.h.
Referenced by curl_write_cb(), and curler().
| size_t bytes_downloaded | 
Keeps track of the number of bytes read so far. This is updated by the callback regardless of whether the output stream is updating stream_bytes_downloaded.
Definition at line 267 of file curl_utils.h.
Referenced by curl_write_cb().
| char* debug_info | 
Identifying info placed at the start of log and trace messages.
Definition at line 260 of file curl_utils.h.
Referenced by curl_download_to_file(), curl_download_to_memory(), curl_write_cb(), and curl_write_data_free().
| size_t max_download_bytes | 
If this value is > 0, the request will be cancelled when bytes_downloaded exceeds it.
Definition at line 250 of file curl_utils.h.
Referenced by curl_write_cb().
| FILE* output | 
Where to write to. Could be anything you can get a FILE* for. A file opened with fopen, a buffer opened with open_memstream(), etc. Required by ast_curl_write_default_cb.
Definition at line 256 of file curl_utils.h.
Referenced by curl_download_to_file(), curl_write_cb(), curl_write_data_free(), and curler().
| char* stream_buffer | 
A buffer to be used for anything the output stream needs. For instance, the address of this member can be passed to open_memstream which will update it as it reads data. When the memstream is flushed/closed, this will contain all of the data read so far. You must free this yourself with ast_std_free().
Definition at line 276 of file curl_utils.h.
Referenced by curl_download_to_memory(), curl_write_cb(), and curl_write_data_free().
| size_t stream_bytes_downloaded | 
Keeps track of the number of bytes read so far. Can be used by memstream.
Definition at line 281 of file curl_utils.h.
Referenced by curl_download_to_memory(), and curl_write_cb().