about summary refs log tree commit diff stats
path: root/src/LYCookie.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/LYCookie.h')
-rw-r--r--src/LYCookie.h25
1 files changed, 16 insertions, 9 deletions
diff --git a/src/LYCookie.h b/src/LYCookie.h
index 62caa88a..6f406287 100644
--- a/src/LYCookie.h
+++ b/src/LYCookie.h
@@ -4,6 +4,19 @@
 #include <HTUtils.h>
 #include <HTList.h>
 
+typedef enum {ACCEPT_ALWAYS, REJECT_ALWAYS, QUERY_USER, FROM_FILE} behaviour;
+typedef enum {INVCHECK_QUERY,
+	      INVCHECK_STRICT,
+	      INVCHECK_LOOSE} invcheck_behaviour;
+
+struct _domain_entry {
+    char *	domain;  /* Domain for which these cookies are valid */
+    behaviour	bv;
+    invcheck_behaviour	invcheck_bv;
+    HTList *	cookie_list;
+};
+typedef struct _domain_entry domain_entry;
+
 extern void LYSetCookie PARAMS((
 	CONST char *	SetCookie,
 	CONST char *	SetCookie2,
@@ -21,14 +34,8 @@ extern void cookie_add_acceptlist PARAMS((
 	char *		acceptdomains));
 extern void cookie_add_rejectlist PARAMS((
 	char *		rejectdomains));
-
-typedef enum {ACCEPT_ALWAYS, REJECT_ALWAYS, QUERY_USER, FROM_FILE} behaviour;
-
-struct _domain_entry {
-    char *	domain;  /* Domain for which these cookies are valid */
-    behaviour	bv;
-    HTList *	cookie_list;
-};
-typedef struct _domain_entry domain_entry;
+extern void cookie_set_invcheck PARAMS((
+	char *	 	domains,
+        invcheck_behaviour setting));
 
 #endif /* LYCOOKIES_H */