summaryrefslogtreecommitdiff
path: root/content/url_store.h
diff options
context:
space:
mode:
authorJames Bursa <james@netsurf-browser.org>2006-01-02 13:18:32 +0000
committerJames Bursa <james@netsurf-browser.org>2006-01-02 13:18:32 +0000
commitcb04ca96402d536e67bbe3cdce423bcef1aa62f9 (patch)
treeb5fa480e3eedf1724fd08dea421d2080f777e847 /content/url_store.h
parente58c83f1893b41f1253349bdf9e7bacc43ff98f1 (diff)
downloadnetsurf-cb04ca96402d536e67bbe3cdce423bcef1aa62f9.tar.gz
netsurf-cb04ca96402d536e67bbe3cdce423bcef1aa62f9.tar.bz2
[project @ 2006-01-02 13:18:32 by bursa]
Fix documentation comments. Change types of some members of struct url_content. Fix possible leak in url_store_find_hostname(). svn path=/import/netsurf/; revision=1947
Diffstat (limited to 'content/url_store.h')
-rw-r--r--content/url_store.h37
1 files changed, 20 insertions, 17 deletions
diff --git a/content/url_store.h b/content/url_store.h
index 8dfc5b9aa..afd121680 100644
--- a/content/url_store.h
+++ b/content/url_store.h
@@ -12,33 +12,36 @@
#ifndef _NETSURF_CONTENT_URLSTORE_H_
#define _NETSURF_CONTENT_URLSTORE_H_
-#include "netsurf/image/bitmap.h"
+#include <time.h>
#include "netsurf/content/content_type.h"
+struct bitmap;
+
struct hostname_data {
- char *hostname; /** Hostname (lowercase) */
- int hostname_length; /** Length of hostname */
- struct url_data *url; /** URLs for this host */
- struct hostname_data *previous; /** Previous hostname */
- struct hostname_data *next; /** Next hostname */
+ char *hostname; /**< Hostname (lowercase) */
+ int hostname_length; /**< Length of hostname */
+ struct url_data *url; /**< URLs for this host */
+ struct hostname_data *previous; /**< Previous hostname */
+ struct hostname_data *next; /**< Next hostname */
};
+
struct url_content {
- struct bitmap *thumbnail; /** Thumbnail, or NULL */
- char *url; /** URL (including hostname) */
- char *title; /** Page title */
- int url_length; /** Length of URL (including hostname) */
- int visits; /** Number of times visited */
- int last_visit; /** The time() of the last visit */
- content_type type; /** The content type */
+ struct bitmap *thumbnail; /**< Thumbnail, or NULL */
+ char *url; /**< URL (including hostname) */
+ char *title; /**< Page title */
+ size_t url_length; /**< Length of URL (including hostname) */
+ unsigned int visits; /**< Number of times visited */
+ time_t last_visit; /**< The time() of the last visit */
+ content_type type; /**< The content type */
};
struct url_data {
- struct url_content data; /** Stored URL content data */
- struct url_data *previous; /** Previous URL */
- struct url_data *next; /** Next URL */
- struct hostname_data *parent; /** Parent hostname data */
+ struct url_content data; /**< Stored URL content data */
+ struct url_data *previous; /**< Previous URL */
+ struct url_data *next; /**< Next URL */
+ struct hostname_data *parent; /**< Parent hostname data */
};
extern struct hostname_data *url_store_hostnames;