From 1cca904ce6af5dd8133e26e03ec8e3e63ebd8b68 Mon Sep 17 00:00:00 2001 From: Kalle Olavi Niemitalo Date: Thu, 23 Jul 2009 22:57:11 +0300 Subject: [PATCH] download: Document the rest of struct type_query --- src/session/download.h | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/src/session/download.h b/src/session/download.h index 0802fac1..aca5c5e4 100644 --- a/src/session/download.h +++ b/src/session/download.h @@ -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 -- 2.11.4.GIT