summaryrefslogtreecommitdiff
path: root/lib/cookie.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-08-11 09:56:06 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-08-11 09:56:06 +0000
commit96e217b49628a7dd19ad4be66b1842dcf0940309 (patch)
tree35ab1caf61deeaab7eb7c1171aa91652d68de00a /lib/cookie.h
parent2dd1518d630e3fa0857d3086c75948bf26f6c833 (diff)
downloadcurl-96e217b49628a7dd19ad4be66b1842dcf0940309.tar.gz
the new cookie functions that require 'data' passed in
Diffstat (limited to 'lib/cookie.h')
-rw-r--r--lib/cookie.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/cookie.h b/lib/cookie.h
index a3a54c717..9be196aba 100644
--- a/lib/cookie.h
+++ b/lib/cookie.h
@@ -68,14 +68,18 @@ struct CookieInfo {
#define MAX_NAME 256
#define MAX_NAME_TXT "255"
+struct SessionHandle;
/*
* Add a cookie to the internal list of cookies. The domain and path arguments
* are only used if the header boolean is TRUE.
*/
-struct Cookie *Curl_cookie_add(struct CookieInfo *, bool header, char *line,
+
+struct Cookie *Curl_cookie_add(struct SessionHandle *data,
+ struct CookieInfo *, bool header, char *line,
char *domain, char *path);
-struct CookieInfo *Curl_cookie_init(char *, struct CookieInfo *, bool);
+struct CookieInfo *Curl_cookie_init(struct SessionHandle *data,
+ char *, struct CookieInfo *, bool);
struct Cookie *Curl_cookie_getlist(struct CookieInfo *, char *, char *, bool);
void Curl_cookie_freelist(struct Cookie *);
void Curl_cookie_cleanup(struct CookieInfo *);