26#include <proto/exec.h>
36static struct List PageList;
39#define ALLOCVEC_SHARED(N) AllocVecTags((N), AVT_Type, MEMF_SHARED, TAG_DONE);
41#define ALLOCVEC_SHARED(N) AllocVec((N), MEMF_SHARED);
55 while(( node = RemHead( &PageList )))
57 if( node->ln_Name) FreeVec( node->ln_Name );
67 while(( node = RemHead( &PageList )))
69 if( node->ln_Name) FreeVec( node->ln_Name );
80static bool URLHistoryFound(
nsurl *url,
const struct url_data *data)
91 node = ALLOCVEC_SHARED(
sizeof(
struct Node));
95 STRPTR urladd = (STRPTR) ALLOCVEC_SHARED( strlen (
nsurl_access(url) ) + 1);
100 node->ln_Name = urladd;
101 AddTail( &PageList, node );
113 return FindName(&PageList,urlString);
122 if( strlen( urlString ) > 0 )
NetSurf URL handling (interface).
const char * nsurl_access(const nsurl *url)
Access a NetSurf URL object as a string.
struct nsurl nsurl
NetSurf URL object.
Minimal compatibility header for AmigaOS 3.
Interface to utility string handling.
Unified URL information database public interface.
void urldb_iterate_partial(const char *prefix, bool(*callback)(struct nsurl *url, const struct url_data *data))
Iterate over entries in the database which match the given prefix.
void URLHistory_Free(void)
struct List * URLHistory_GetList(void)
struct Node * URLHistory_FindPage(const char *urlString)
void URLHistory_ClearList(void)
void URLHistory_Init(void)
void URLHistory_AddPage(const char *urlString)
Option reading and saving interface.
#define nsoption_bool(OPTION)
Get the value of a boolean option.