ELinks 0.16.1.1
codw_hop Struct Reference

Data saved by continue_download() for the continue_download_do() callback. More...

Collaboration diagram for codw_hop:

Data Fields

struct type_querytype_query
char * real_file
 The name of the local file to which the data will be downloaded.
char * file

(Note that these are not member symbols.)

static void transform_codw_to_cmdw (struct terminal *term, int fd, struct codw_hop *codw_hop, download_flags_T flags)
 Resume downloading a file, based on information in struct codw_hop.
static void continue_download_do (struct terminal *term, int fd, void *data, download_flags_T flags)
static void continue_download (void *data, char *file)
 When asked what to do with a file, the user chose to download it to a local file named file.

Detailed Description

Data saved by continue_download() for the continue_download_do() callback.

◆ continue_download()

void continue_download ( void * data,
char * file )
related

When asked what to do with a file, the user chose to download it to a local file named file.

Or an external handler was selected, in which case type_query.external_handler is non-NULL and file does not matter because this function will generate a name.

tp_save() passes this function as the std callback to query_file().

◆ continue_download_do()

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

continue_download() passes this function as a ::cdf_callback_T to create_download_file().

◆ transform_codw_to_cmdw()

void transform_codw_to_cmdw ( struct terminal * term,
int fd,
struct codw_hop * codw_hop,
download_flags_T flags )
related

Resume downloading a file, based on information in struct codw_hop.

This function actually starts a new download from the current end of the file, even though a download from the beginning is already in progress at codw_hop->type_query->download. The caller will cancel the preexisting download after this function returns.

Field Documentation

◆ file

char* codw_hop::file

◆ real_file

char* codw_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 continue_download_do() is called. The string must be freed with mem_free().

◆ type_query

struct type_query* codw_hop::type_query

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