Dillo v3.2.0-93-g6a586845
Loading...
Searching...
No Matches
cookies.h
Go to the documentation of this file.
1/*
2 * File: cookies.h
3 *
4 * Copyright 2001 Lars Clausen <lrclause@cs.uiuc.edu>
5 * Jörgen Viksell <jorgen.viksell@telia.com>
6 * Copyright 2025 Rodrigo Arias Mallo <rodarima@gmail.com>
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 3 of the License, or
11 * (at your option) any later version.
12 */
13
14#ifndef __COOKIES_H__
15#define __COOKIES_H__
16
17#ifdef __cplusplus
18extern "C" {
19#endif /* __cplusplus */
20
21void a_Cookies_init( void );
22
23#ifdef DISABLE_COOKIES
24# define a_Cookies_get_query(url, requester, r) dStrdup("")
25# define a_Cookies_set() ;
26# define a_Cookies_freeall() ;
27#else
28 char *a_Cookies_get_query(const DilloUrl *query_url,
29 const DilloUrl *requester,
30 int is_root_url);
31 void a_Cookies_set(Dlist *cookie_string, const DilloUrl *set_url,
32 const char *server_date);
33 void a_Cookies_freeall( void );
34#endif
35
36
37#ifdef __cplusplus
38}
39#endif /* __cplusplus */
40#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:118
void a_Cookies_freeall(void)
Flush cookies to disk and free all the memory allocated.
Definition cookies.c:136
char * a_Cookies_get_query(const DilloUrl *query_url, const DilloUrl *requester, int is_root_url)
Return a string containing cookie data for an HTTP query.
Definition cookies.c:186
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:143
Definition url.h:88
Definition dlib.h:144