1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

download: Document the rest of struct type_query

This commit is contained in:
Kalle Olavi Niemitalo 2009-07-23 22:57:11 +03:00 committed by Kalle Olavi Niemitalo
parent ce89947fcf
commit 1cca904ce6

View File

@ -47,12 +47,41 @@ struct download {
* destroy_session() calls done_type_query() to destroy them too. */
struct type_query {
LIST_HEAD(struct type_query);
/** After ELinks has downloaded enough of the resource to see
* that a type query is needed, it moves the download here and
* continues it while the user decides what to do. */
struct download download;
/** Cache entry loaded from #uri. Apparently used only for
* displaying the header. */
struct cache_entry *cached;
/** The session in which the user navigated to #uri. The
* type_query is in the session.type_queries list of this
* session. */
struct session *ses;
/** The URI of the resource about which ELinks is asking.
* This reference must be released with done_uri(). */
struct uri *uri;
/** The name of the frame in which the user navigated to #uri.
* If the user chooses to display the resource, it goes into
* this frame. This string must be freed with mem_free(). */
unsigned char *target_frame;
/** Command line for an external handler, to be run when the
* download finishes. When ELinks displays the type query,
* it copies this from mime_handler.program of the default
* handler of the type. The user can then edit the string.
* This string must be freed with mem_free(). */
unsigned char *external_handler;
/** Whether the external handler is going to use the terminal.
* When ELinks displays the type query, it copies this from
* mime_handler.block of the default handler of the type.
* The user can then change the flag with a checkbox. */
int block;
/** Whether the resource was generated by ELinks running