|
| static void | add_to_document_list (struct document_list list *list, struct document *document) |
| static void | remove_document_from_format_cache (struct document *document) |
| static void | move_document_to_top_of_format_cache (struct document *document) |
| static void | get_ip (struct document *document) |
| struct document * | init_document (struct cache_entry *cached, struct document_options *options) |
| static void | free_frameset_desc (struct frameset_desc *frameset_desc) |
| static void | free_iframeset_desc (struct iframeset_desc *iframeset_desc) |
| void | done_link_members (struct link *link) |
| | Free's the allocated members of the link.
|
| static void | copy_link (struct link *dest, struct link *src) |
| static void | copy_line (struct line *dest, struct line *src) |
| void | reset_document (struct document *document) |
| void | done_document (struct document *document) |
| void | release_document (struct document *document) |
| int | find_tag (struct document *document, char *name, int namelen) |
| void | update_cached_document_options (struct session *ses) |
| struct document * | get_cached_document (struct cache_entry *cached, struct document_options *options) |
| void | shrink_format_cache (int whole) |
| int | get_format_cache_size (void) |
| int | get_format_cache_used_count (void) |
| int | get_format_cache_refresh_count (void) |
| static void | init_documents (struct module *module) |
| static void | done_documents (struct module *module) |
| static int | comp_offset (const void *v1, const void *v2) |
| static void | sort_offset (struct document *document) |
| int | get_link_number_by_offset (struct document *document, int offset) |
| void | insert_document_into_document (struct document *dest, struct document *src, int y) |
| void | remove_document_from_document (struct document *dest, struct document *src, int y) |
The document base functionality.
| 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);