Dillo v3.1.1-98-g318d1f14
|
#include "url.h"
Go to the source code of this file.
Functions | |
int | a_History_add_url (DilloUrl *url) |
Add a new H_Item at the end of the history list (taking care of not making a duplicate entry) | |
void | a_History_set_title_by_url (const DilloUrl *url, const char *title) |
Set the page-title for a given URL. | |
const DilloUrl * | a_History_get_url (int idx) |
Return the DilloUrl field (by index) | |
const char * | a_History_get_title (int idx, int force) |
Return the title field (by index) ('force' returns URL_STR when there's no title) | |
const char * | a_History_get_title_by_url (const DilloUrl *url, int force) |
Return the title field (by url) ('force' returns URL_STR when there's no title) | |
void | a_History_freeall (void) |
Free all the memory used by this module. | |
int a_History_add_url | ( | DilloUrl * | url | ) |
Add a new H_Item at the end of the history list (taking care of not making a duplicate entry)
Definition at line 50 of file history.c.
References _MSG, a_List_add, a_Url_cmp(), a_Url_dup(), history, history_size, history_size_max, URL_FRAGMENT, and URL_STR.
Referenced by a_Nav_expect_done().
void a_History_freeall | ( | void | ) |
Free all the memory used by this module.
Definition at line 152 of file history.c.
References a_Url_free(), dFree(), history, and history_size.
Referenced by main().
const char * a_History_get_title | ( | int | idx, |
int | force | ||
) |
Return the title field (by index) ('force' returns URL_STR when there's no title)
Definition at line 94 of file history.c.
References dReturn_val_if_fail, history, history_size, and URL_STR.
Referenced by a_Menu_history_popup().
const char * a_History_get_title_by_url | ( | const DilloUrl * | url, |
int | force | ||
) |
Return the title field (by url) ('force' returns URL_STR when there's no title)
Definition at line 110 of file history.c.
References a_Url_cmp(), dReturn_val_if_fail, history, history_size, and URL_STR_.
Referenced by a_Bookmarks_add().
const DilloUrl * a_History_get_url | ( | int | idx | ) |
Return the DilloUrl field (by index)
Definition at line 80 of file history.c.
References _MSG, dReturn_val_if_fail, history, and history_size.
Referenced by a_Capi_dpi_verify_request(), a_Nav_back(), a_Nav_forw(), a_Nav_jump(), a_UIcmd_bugmeter_popup(), a_UIcmd_page_popup(), a_UIcmd_save(), UI::handle(), Menu_history_cb(), Nav_open_url(), Nav_redirection0_callback(), Nav_reload_callback(), and Nav_repush().
void a_History_set_title_by_url | ( | const DilloUrl * | url, |
const char * | title | ||
) |
Set the page-title for a given URL.
Definition at line 130 of file history.c.
References a_Url_cmp(), dFree(), dReturn_if, dStrdup(), history, history_size, MSG_ERR, and URL_STR.
Referenced by Html_tag_close_title().