|
ELinks 0.18.0
|
The document base functionality. More...
#include <errno.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include <sys/types.h>#include "elinks.h"#include "cache/cache.h"#include "config/options.h"#include "document/document.h"#include "document/forms.h"#include "document/html/frames.h"#include "document/html/iframes.h"#include "document/html/parser.h"#include "document/html/parser/parse.h"#include "document/html/renderer.h"#include "document/options.h"#include "document/refresh.h"#include "document/renderer.h"#include "main/module.h"#include "main/object.h"#include "network/dns.h"#include "protocol/uri.h"#include "terminal/draw.h"#include "util/color.h"#include "util/error.h"#include "util/lists.h"#include "util/memory.h"#include "util/string.h"#include "viewer/text/link.h"
Data Structures | |
| struct | document_list |
Macros | |
| #define | check_document_css_magic(document) |
Variables | |
| static struct document_list list | format_cache = { D_LIST_HEAD_EL(format_cache) } |
| const char * | script_event_hook_name [] |
| struct module | document_module |
The document base functionality.
| #define check_document_css_magic | ( | document | ) |
|
static |
|
|
static |
| void done_link_members | ( | struct link * | link | ) |
Free's the allocated members of the link.
| int find_tag | ( | struct document * | document, |
| char * | name, | ||
| int | namelen ) |
|
static |
|
static |
| struct document * get_cached_document | ( | struct cache_entry * | cached, |
| struct document_options * | options ) |
| int get_format_cache_refresh_count | ( | void | ) |
| int get_format_cache_size | ( | void | ) |
| int get_format_cache_used_count | ( | void | ) |
|
static |
| int get_link_number_by_offset | ( | struct document * | document, |
| int | offset ) |
|
|
static |
|
static |
|
|
static |
| void reset_document | ( | struct document * | document | ) |
assertm(!is_object_used(document), "Attempt to free locked formatted data."); if_assert_failed return;
if (document->uri) { done_uri(document->uri); document->uri = NULL; } if (document->querydns) { kill_dns_request(&document->querydns); document->querydns = NULL; } mem_free_set(&document->ip, NULL); mem_free_set(&document->title, NULL); if (document->frame_desc) { free_frameset_desc(document->frame_desc); document->frame_desc = NULL; } if (document->refresh) { done_document_refresh(document->refresh); document->refresh = NULL; }
done_document_options(&document->options);
| void shrink_format_cache | ( | int | whole | ) |
| void update_cached_document_options | ( | struct session * | ses | ) |
| struct module document_module |
|
static |
| const char* script_event_hook_name[] |