File: cookie.h

package info (click to toggle)
pavuk 0.9.34-4
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 4,744 kB
  • ctags: 3,826
  • sloc: ansic: 51,740; sh: 3,405; makefile: 363
file content (34 lines) | stat: -rw-r--r-- 895 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/***************************************************************************/
/*    This code is part of WWW grabber called pavuk                        */
/*    Copyright (c) 1997 - 2001 Stefan Ondrejicka                          */
/*    Distributed under GPL 2 or later                                     */
/***************************************************************************/

#ifndef _cookie_h_
#define _cookie_h_

#include <time.h>

#include "url.h"

/* private */
typedef struct _cookie_entry
{
  struct _cookie_entry *next;
  struct _cookie_entry *prev;
  char *domain;
  char *host;
  char *path;
  time_t expires;
  int secure;
  int flag;
  char *name;
  char *value;
  bool_t loaded;
} cookie_entry;

extern int cookie_read_file(const char *);
extern int cookie_update_file(int);
extern char *cookie_get_field(url *);
extern void cookie_insert_field(char *, url *);
#endif