ELinks 0.18.0
cmdw_hop Struct Reference

Data saved by common_download() for the common_download_do() callback. More...

Collaboration diagram for cmdw_hop:

Data Fields

struct sessionses
 
struct uridownload_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.
 

Detailed Description

Data saved by common_download() for the common_download_do() callback.


Friends And Related Symbol Documentation

◆ common_download()

static void common_download ( struct session * ses,
char * file,
download_flags_T flags )
related

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_do()

static void common_download_do ( struct terminal * term,
int fd,
void * data,
download_flags_T flags )
related

common_download() passes this function as a cdf_callback_T to create_download_file().

◆ resume_download()

void resume_download ( void * ses,
char * file )
related

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().

◆ start_download()

void start_download ( void * ses,
char * file )
related

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().

Field Documentation

◆ download_uri

struct uri* cmdw_hop::download_uri

The URI from which the data will be downloaded.


◆ real_file

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().

◆ ses

struct session* cmdw_hop::ses

The documentation for this struct was generated from the following file: