Dillo v3.1.1-91-g6d5b3ee3
Loading...
Searching...
No Matches
cookies.h
Go to the documentation of this file.
1#ifndef __COOKIES_H__
2#define __COOKIES_H__
3
4#ifdef __cplusplus
5extern "C" {
6#endif /* __cplusplus */
7
8void a_Cookies_init( void );
9
10#ifdef DISABLE_COOKIES
11# define a_Cookies_get_query(url, requester) dStrdup("")
12# define a_Cookies_set() ;
13# define a_Cookies_freeall() ;
14#else
15 char *a_Cookies_get_query(const DilloUrl *query_url,
16 const DilloUrl *requester);
17 void a_Cookies_set(Dlist *cookie_string, const DilloUrl *set_url,
18 const char *server_date);
19 void a_Cookies_freeall( void );
20#endif
21
22
23#ifdef __cplusplus
24}
25#endif /* __cplusplus */
26#endif /* !__COOKIES_H__ */
void a_Cookies_init(void)
Initialize the cookies module (The 'disabled' variable is writable only within a_Cookies_init)
Definition cookies.c:117
void a_Cookies_freeall(void)
Flush cookies to disk and free all the memory allocated.
Definition cookies.c:135
char * a_Cookies_get_query(const DilloUrl *query_url, const DilloUrl *requester)
Return a string containing cookie data for an HTTP query.
Definition cookies.c:185
void a_Cookies_set(Dlist *cookie_string, const DilloUrl *set_url, const char *server_date)
Set the value corresponding to the cookie string.
Definition cookies.c:142
Definition url.h:88
Definition dlib.h:131