summaryrefslogtreecommitdiff
path: root/content/urldb.c
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2016-06-13 23:34:45 +0100
committerVincent Sanders <vince@kyllikki.org>2016-06-13 23:34:45 +0100
commit976eca99580339c8cbb81819b54134de9ac8b97e (patch)
tree248b58aa6c57a9c7b37f2d7b820204e36939b12b /content/urldb.c
parent22d84a587b299f028dbff4d3f8d8ecd56b275c2f (diff)
downloadnetsurf-976eca99580339c8cbb81819b54134de9ac8b97e.tar.gz
netsurf-976eca99580339c8cbb81819b54134de9ac8b97e.tar.bz2
msplit public url database API out for frontends
Diffstat (limited to 'content/urldb.c')
-rw-r--r--content/urldb.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/content/urldb.c b/content/urldb.c
index 5230438d6..2f7b4a7fc 100644
--- a/content/urldb.c
+++ b/content/urldb.c
@@ -104,6 +104,7 @@
#include "utils/utils.h"
#include "utils/bloom.h"
#include "utils/time.h"
+#include "utils/nsurl.h"
#include "netsurf/bitmap.h"
#include "desktop/cookie_manager.h"
#include "desktop/gui_internal.h"
@@ -112,6 +113,9 @@
#include "content/urldb.h"
struct cookie_internal_data {
+ struct cookie_internal_data *prev; /**< Previous in list */
+ struct cookie_internal_data *next; /**< Next in list */
+
char *name; /**< Cookie name */
char *value; /**< Cookie value */
bool value_was_quoted; /**< Value was quoted in Set-Cookie: */
@@ -124,12 +128,10 @@ struct cookie_internal_data {
time_t last_used; /**< Last used time */
bool secure; /**< Only send for HTTPS requests */
bool http_only; /**< Only expose to HTTP(S) requests */
- cookie_version version; /**< Specification compliance */
+ enum cookie_version version; /**< Specification compliance */
bool no_destroy; /**< Never destroy this cookie,
* unless it's expired */
- struct cookie_internal_data *prev; /**< Previous in list */
- struct cookie_internal_data *next; /**< Next in list */
};
/* A protection space is defined as a tuple canonical_root_url and realm.