Dillo v3.1.1-99-gf3103cc4
|
Go to the source code of this file.
Classes | |
struct | _DilloWeb |
Macros | |
#define | WEB_RootUrl 1 |
#define | WEB_Image 2 |
#define | WEB_Stylesheet 4 |
#define | WEB_Download 8 /* Half implemented... */ |
Typedefs | |
typedef struct _DilloWeb | DilloWeb |
Functions | |
void | a_Web_init (void) |
DilloWeb * | a_Web_new (BrowserWindow *bw, const DilloUrl *url, const DilloUrl *requester) |
Allocate and set safe values for a DilloWeb structure. | |
int | a_Web_valid (DilloWeb *web) |
Validate a DilloWeb pointer. | |
void | a_Web_free (DilloWeb *) |
Deallocate a DilloWeb structure. | |
int | a_Web_dispatch_by_type (const char *Type, DilloWeb *web, CA_Callback_t *Call, void **Data) |
Given the MIME content type, and a fd to read it from, this function connects the proper MIME viewer to it. | |
int a_Web_dispatch_by_type | ( | const char * | Type, |
DilloWeb * | Web, | ||
CA_Callback_t * | Call, | ||
void ** | Data | ||
) |
Given the MIME content type, and a fd to read it from, this function connects the proper MIME viewer to it.
Return value: 1 on success (and Call and Data properly set). -1 for unhandled MIME types (and Call and Data untouched).
Definition at line 50 of file web.cc.
References _MSG, a_Mime_get_viewer(), a_Nav_expect_done(), a_UIcmd_set_bug_prog(), a_UIcmd_set_img_prog(), a_UIcmd_set_location_text(), a_UIcmd_set_page_prog(), a_UIcmd_set_page_title(), dw::core::style::BACKGROUND_ATTACHMENT_SCROLL, dw::core::style::BACKGROUND_REPEAT, DilloPrefs::bg_color, _DilloWeb::bgColor, _DilloWeb::bw, dw::core::style::Color::create(), dw::core::style::createPerLength(), dReturn_val_if_fail, dStrnAsciiCasecmp(), _DilloWeb::flags, dw::core::style::ColorAttrs::getColor(), layout, MSG_HTTP, prefs, BrowserWindow::render_layout, dw::core::Layout::setBgColor(), dw::core::Layout::setBgImage(), dw::core::Layout::setWidget(), StyleEngine::startElement(), StyleEngine::style(), _DilloWeb::url, URL_STR, WEB_RootUrl, and BrowserWindow::zoom.
Referenced by Cache_process_queue(), and Cache_provide_redirection_blocked_page().
void a_Web_free | ( | DilloWeb * | web | ) |
Deallocate a DilloWeb structure.
Definition at line 152 of file web.cc.
References _MSG, a_Image_unref(), a_Url_free(), dFree(), dList_length(), dList_remove(), _DilloWeb::filename, _DilloWeb::Image, _DilloWeb::requester, _DilloWeb::url, and ValidWebs.
Referenced by a_Capi_open_url(), and Cache_client_dequeue().
void a_Web_init | ( | void | ) |
DilloWeb * a_Web_new | ( | BrowserWindow * | bw, |
const DilloUrl * | url, | ||
const DilloUrl * | requester | ||
) |
Allocate and set safe values for a DilloWeb structure.
Definition at line 121 of file web.cc.
References _MSG, a_Url_dup(), _DilloWeb::bgColor, _DilloWeb::bw, dList_append(), dList_length(), dNew, _DilloWeb::filename, _DilloWeb::flags, _DilloWeb::Image, _DilloWeb::requester, _DilloWeb::SavedBytes, _DilloWeb::stream, _DilloWeb::url, and ValidWebs.
Referenced by a_Html_load_stylesheet(), a_Nav_save_url(), StyleEngine::apply(), Html_load_image(), and Nav_open_url().
int a_Web_valid | ( | DilloWeb * | web | ) |
Validate a DilloWeb pointer.
Definition at line 144 of file web.cc.
References dList_find(), and ValidWebs.
Referenced by a_Http_connect_done(), Http_connect_queued_sockets(), Http_connect_socket(), Http_dns_cb(), Http_socket_enqueue(), and Http_socket_reuse_compatible().