ELinks 0.16.1.1
|
Data saved by common_download() for the common_download_do() callback. More...
Data Fields | |
struct session * | ses |
struct uri * | download_uri |
The URI from which the data will be downloaded. | |
char * | real_file |
The name of the local file to which the data will be downloaded. |
Related Symbols | |
(Note that these are not member symbols.) | |
static void | common_download_do (struct terminal *term, int fd, void *data, download_flags_T flags) |
static void | common_download (struct session *ses, char *file, download_flags_T flags) |
Begin or resume downloading from session.download_uri to the file specified by the user. | |
void | start_download (void *ses, char *file) |
Begin downloading from session.download_uri to the file specified by the user. | |
void | resume_download (void *ses, char *file) |
Resume downloading from session.download_uri to the file specified by the user. |
Data saved by common_download() for the common_download_do() callback.
|
Begin or resume downloading from session.download_uri to the file specified by the user.
This function contains the code shared between start_download() and resume_download().
|
common_download() passes this function as a ::cdf_callback_T to create_download_file().
|
Resume downloading from session.download_uri to the file specified by the user.
The ACT_MAIN_LINK_DOWNLOAD_RESUME action passes this function as the std
callback to query_file().
|
Begin downloading from session.download_uri to the file specified by the user.
The ACT_MAIN_SAVE_AS, ACT_MAIN_SAVE_URL_AS, ACT_MAIN_LINK_DOWNLOAD, and ACT_MAIN_LINK_DOWNLOAD_IMAGE actions pass this function as the std
callback to query_file().
struct uri* cmdw_hop::download_uri |
The URI from which the data will be downloaded.
char* cmdw_hop::real_file |
The name of the local file to which the data will be downloaded.
This is initially NULL, but its address is given to create_download_file(), which arranges for the pointer to be set before common_download_do() is called. The string must be freed with mem_free().
struct session* cmdw_hop::ses |