Dillo v3.1.1-119-g140d9ebd
Loading...
Searching...
No Matches
history.h File Reference
#include "url.h"
Include dependency graph for history.h:
This graph shows which files directly or indirectly include this file:

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 DilloUrla_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.
 

Function Documentation

◆ a_History_add_url()

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().

◆ a_History_freeall()

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().

◆ a_History_get_title()

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().

◆ a_History_get_title_by_url()

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().

◆ a_History_get_url()

◆ a_History_set_title_by_url()

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().