cookies.h
来自「一个很有名的浏览器」· C头文件 代码 · 共 58 行
H
58 行
/* $Id: cookies.h,v 1.26 2004/12/17 22:40:38 pasky Exp $ */#ifndef EL__COOKIES_COOKIES_H#define EL__COOKIES_COOKIES_H#include "modules/module.h"#include "protocol/uri.h"#include "util/object.h"#include "util/string.h"#include "util/ttime.h"struct listbox_item;enum cookies_accept { COOKIES_ACCEPT_NONE, COOKIES_ACCEPT_ASK, COOKIES_ACCEPT_ALL};struct cookie_server { LIST_HEAD(struct cookie_server); struct listbox_item *box_item; struct object object; unsigned char host[1]; /* Must be at end of struct. */};struct cookie { LIST_HEAD(struct cookie); unsigned char *name, *value; unsigned char *path, *domain; struct cookie_server *server; /* The host the cookie originated from */ ttime expires; /* Expiration time. Zero means undefined */ int secure; /* Did it have 'secure' attribute */ /* This is indeed maintained by cookies.c, not dialogs.c; much easier * and simpler. */ struct listbox_item *box_item; struct object object;};void accept_cookie(struct cookie *);void free_cookie(struct cookie *);void set_cookie(struct uri *, unsigned char *);void load_cookies(void);void save_cookies(void);/* Note that the returned value points to a static structure and thus the * string will be overwritten at the next call time. The string source * itself is dynamically allocated, though. */struct string *send_cookies(struct uri *uri);extern struct module cookies_module;#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?