diff options
author | Richard Wilson <rjw@netsurf-browser.org> | 2005-02-03 13:18:22 +0000 |
---|---|---|
committer | Richard Wilson <rjw@netsurf-browser.org> | 2005-02-03 13:18:22 +0000 |
commit | 2affb76944a4cd83a2ff6722c3150abbb972f37d (patch) | |
tree | b74bf45e17f25b59c941f592ea4685f326e82d01 /content/url_store.h | |
parent | 4a343579867c0659dedc8e4216d02d2c166eee07 (diff) | |
download | netsurf-2affb76944a4cd83a2ff6722c3150abbb972f37d.tar.gz netsurf-2affb76944a4cd83a2ff6722c3150abbb972f37d.tar.bz2 |
[project @ 2005-02-03 13:18:22 by rjw]
Implementation of URL suggestion
svn path=/import/netsurf/; revision=1488
Diffstat (limited to 'content/url_store.h')
-rw-r--r-- | content/url_store.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/content/url_store.h b/content/url_store.h new file mode 100644 index 000000000..b152508af --- /dev/null +++ b/content/url_store.h @@ -0,0 +1,39 @@ +/* + * This file is part of NetSurf, http://netsurf.sourceforge.net/ + * Licensed under the GNU General Public License, + * http://www.opensource.org/licenses/gpl-license + * Copyright 2005 Richard Wilson <info@tinct.net> + */ + +/** \file + * Central repository for URL data (interface). + */ + +#ifndef _NETSURF_CONTENT_URLSTORE_H_ +#define _NETSURF_CONTENT_URLSTORE_H_ + +struct url_content { + int visits; /** Number of times visited */ + int requests; /** Number of times requested */ +}; + +struct url_data { + struct url_content data; /** Stored URL content data */ + char *url; /** URL (including hostname) */ + int url_length; /** Length of URL (including hostname) */ + struct url_data *previous; /** Previous URL */ + struct url_data *next; /** Next URL */ + struct hostname_data *parent; /** Parent hostname data */ +}; + + +struct url_content *url_store_find(const char *url); +char *url_store_match(const char *url, struct url_data **reference); +char *url_store_match_string(const char *text); + +void url_store_load(const char *file); +void url_store_save(const char *file); + +void url_store_dump(void); + +#endif |