~ubuntu-branches/ubuntu/edgy/lynx/edgy

« back to all changes in this revision

Viewing changes to src/LYCookie.h

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2004-09-16 12:14:10 UTC
  • Revision ID: james.westby@ubuntu.com-20040916121410-cz1gu92c4nqfeyrg
Tags: upstream-2.8.5
ImportĀ upstreamĀ versionĀ 2.8.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef LYCOOKIES_H
 
2
#define LYCOOKIES_H
 
3
 
 
4
#ifndef HTUTILS_H
 
5
#include <HTUtils.h>
 
6
#endif
 
7
 
 
8
#include <HTList.h>
 
9
 
 
10
typedef enum {
 
11
    ACCEPT_ALWAYS = 0
 
12
    , REJECT_ALWAYS
 
13
    , QUERY_USER
 
14
} behaviour_t;
 
15
 
 
16
typedef enum {
 
17
    INVCHECK_QUERY = 0
 
18
    , INVCHECK_STRICT
 
19
    , INVCHECK_LOOSE
 
20
} invcheck_behaviour_t;
 
21
 
 
22
typedef enum {
 
23
    FLAG_ACCEPT_ALWAYS = 0
 
24
    , FLAG_REJECT_ALWAYS
 
25
    , FLAG_QUERY_USER
 
26
    , FLAG_FROM_FILE
 
27
    , FLAG_INVCHECK_QUERY
 
28
    , FLAG_INVCHECK_STRICT
 
29
    , FLAG_INVCHECK_LOOSE
 
30
} cookie_domain_flags;
 
31
 
 
32
struct _domain_entry {
 
33
    char *      domain;  /* Domain for which these cookies are valid */
 
34
    behaviour_t bv;
 
35
    invcheck_behaviour_t        invcheck_bv;
 
36
    HTList *    cookie_list;
 
37
};
 
38
typedef struct _domain_entry domain_entry;
 
39
 
 
40
extern void LYSetCookie PARAMS((
 
41
        CONST char *    SetCookie,
 
42
        CONST char *    SetCookie2,
 
43
        CONST char *    address));
 
44
extern char *LYAddCookieHeader PARAMS((
 
45
        char *          hostname,
 
46
        char *          partialpath,
 
47
        int             port,
 
48
        BOOL            secure));
 
49
extern void LYStoreCookies PARAMS((
 
50
        char *          cookie_file));
 
51
extern void LYLoadCookies PARAMS((
 
52
        char *          cookie_file));
 
53
extern void LYConfigCookies NOPARAMS;
 
54
 
 
55
#endif /* LYCOOKIES_H */