|
rpm-build |
4f3c61 |
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
|
|
rpm-build |
4f3c61 |
/*
|
|
rpm-build |
4f3c61 |
* Copyright 2007, 2008 Red Hat, Inc.
|
|
rpm-build |
4f3c61 |
*/
|
|
rpm-build |
4f3c61 |
|
|
rpm-build |
4f3c61 |
#ifndef SOUP_COOKIE_H
|
|
rpm-build |
4f3c61 |
#define SOUP_COOKIE_H 1
|
|
rpm-build |
4f3c61 |
|
|
rpm-build |
4f3c61 |
#include <libsoup/soup-types.h>
|
|
rpm-build |
4f3c61 |
|
|
rpm-build |
4f3c61 |
G_BEGIN_DECLS
|
|
rpm-build |
4f3c61 |
|
|
rpm-build |
4f3c61 |
struct _SoupCookie {
|
|
rpm-build |
4f3c61 |
char *name;
|
|
rpm-build |
4f3c61 |
char *value;
|
|
rpm-build |
4f3c61 |
char *domain;
|
|
rpm-build |
4f3c61 |
char *path;
|
|
rpm-build |
4f3c61 |
SoupDate *expires;
|
|
rpm-build |
4f3c61 |
gboolean secure;
|
|
rpm-build |
4f3c61 |
gboolean http_only;
|
|
rpm-build |
4f3c61 |
};
|
|
rpm-build |
4f3c61 |
|
|
rpm-build |
4f3c61 |
SOUP_AVAILABLE_IN_2_24
|
|
rpm-build |
4f3c61 |
GType soup_cookie_get_type (void);
|
|
rpm-build |
4f3c61 |
#define SOUP_TYPE_COOKIE (soup_cookie_get_type())
|
|
rpm-build |
4f3c61 |
|
|
rpm-build |
4f3c61 |
#define SOUP_COOKIE_MAX_AGE_ONE_HOUR (60 * 60)
|
|
rpm-build |
4f3c61 |
#define SOUP_COOKIE_MAX_AGE_ONE_DAY (SOUP_COOKIE_MAX_AGE_ONE_HOUR * 24)
|
|
rpm-build |
4f3c61 |
#define SOUP_COOKIE_MAX_AGE_ONE_WEEK (SOUP_COOKIE_MAX_AGE_ONE_DAY * 7)
|
|
rpm-build |
4f3c61 |
#define SOUP_COOKIE_MAX_AGE_ONE_YEAR (SOUP_COOKIE_MAX_AGE_ONE_DAY * 365.2422)
|
|
rpm-build |
4f3c61 |
|
|
rpm-build |
4f3c61 |
SOUP_AVAILABLE_IN_2_24
|
|
rpm-build |
4f3c61 |
SoupCookie *soup_cookie_new (const char *name,
|
|
rpm-build |
4f3c61 |
const char *value,
|
|
rpm-build |
4f3c61 |
const char *domain,
|
|
rpm-build |
4f3c61 |
const char *path,
|
|
rpm-build |
4f3c61 |
int max_age);
|
|
rpm-build |
4f3c61 |
SOUP_AVAILABLE_IN_2_24
|
|
rpm-build |
4f3c61 |
SoupCookie *soup_cookie_parse (const char *header,
|
|
rpm-build |
4f3c61 |
SoupURI *origin);
|
|
rpm-build |
4f3c61 |
SOUP_AVAILABLE_IN_2_24
|
|
rpm-build |
4f3c61 |
SoupCookie *soup_cookie_copy (SoupCookie *cookie);
|
|
rpm-build |
4f3c61 |
|
|
rpm-build |
4f3c61 |
SOUP_AVAILABLE_IN_2_32
|
|
rpm-build |
4f3c61 |
const char *soup_cookie_get_name (SoupCookie *cookie);
|
|
rpm-build |
4f3c61 |
SOUP_AVAILABLE_IN_2_24
|
|
rpm-build |
4f3c61 |
void soup_cookie_set_name (SoupCookie *cookie,
|
|
rpm-build |
4f3c61 |
const char *name);
|
|
rpm-build |
4f3c61 |
SOUP_AVAILABLE_IN_2_32
|
|
rpm-build |
4f3c61 |
const char *soup_cookie_get_value (SoupCookie *cookie);
|
|
rpm-build |
4f3c61 |
SOUP_AVAILABLE_IN_2_24
|
|
rpm-build |
4f3c61 |
void soup_cookie_set_value (SoupCookie *cookie,
|
|
rpm-build |
4f3c61 |
const char *value);
|
|
rpm-build |
4f3c61 |
SOUP_AVAILABLE_IN_2_32
|
|
rpm-build |
4f3c61 |
const char *soup_cookie_get_domain (SoupCookie *cookie);
|
|
rpm-build |
4f3c61 |
SOUP_AVAILABLE_IN_2_24
|
|
rpm-build |
4f3c61 |
void soup_cookie_set_domain (SoupCookie *cookie,
|
|
rpm-build |
4f3c61 |
const char *domain);
|
|
rpm-build |
4f3c61 |
SOUP_AVAILABLE_IN_2_32
|
|
rpm-build |
4f3c61 |
const char *soup_cookie_get_path (SoupCookie *cookie);
|
|
rpm-build |
4f3c61 |
SOUP_AVAILABLE_IN_2_24
|
|
rpm-build |
4f3c61 |
void soup_cookie_set_path (SoupCookie *cookie,
|
|
rpm-build |
4f3c61 |
const char *path);
|
|
rpm-build |
4f3c61 |
SOUP_AVAILABLE_IN_2_24
|
|
rpm-build |
4f3c61 |
void soup_cookie_set_max_age (SoupCookie *cookie,
|
|
rpm-build |
4f3c61 |
int max_age);
|
|
rpm-build |
4f3c61 |
SOUP_AVAILABLE_IN_2_32
|
|
rpm-build |
4f3c61 |
SoupDate *soup_cookie_get_expires (SoupCookie *cookie);
|
|
rpm-build |
4f3c61 |
SOUP_AVAILABLE_IN_2_24
|
|
rpm-build |
4f3c61 |
void soup_cookie_set_expires (SoupCookie *cookie,
|
|
rpm-build |
4f3c61 |
SoupDate *expires);
|
|
rpm-build |
4f3c61 |
SOUP_AVAILABLE_IN_2_32
|
|
rpm-build |
4f3c61 |
gboolean soup_cookie_get_secure (SoupCookie *cookie);
|
|
rpm-build |
4f3c61 |
SOUP_AVAILABLE_IN_2_24
|
|
rpm-build |
4f3c61 |
void soup_cookie_set_secure (SoupCookie *cookie,
|
|
rpm-build |
4f3c61 |
gboolean secure);
|
|
rpm-build |
4f3c61 |
SOUP_AVAILABLE_IN_2_32
|
|
rpm-build |
4f3c61 |
gboolean soup_cookie_get_http_only (SoupCookie *cookie);
|
|
rpm-build |
4f3c61 |
SOUP_AVAILABLE_IN_2_24
|
|
rpm-build |
4f3c61 |
void soup_cookie_set_http_only (SoupCookie *cookie,
|
|
rpm-build |
4f3c61 |
gboolean http_only);
|
|
rpm-build |
4f3c61 |
|
|
rpm-build |
4f3c61 |
SOUP_AVAILABLE_IN_2_24
|
|
rpm-build |
4f3c61 |
char *soup_cookie_to_set_cookie_header (SoupCookie *cookie);
|
|
rpm-build |
4f3c61 |
SOUP_AVAILABLE_IN_2_24
|
|
rpm-build |
4f3c61 |
char *soup_cookie_to_cookie_header (SoupCookie *cookie);
|
|
rpm-build |
4f3c61 |
|
|
rpm-build |
4f3c61 |
SOUP_AVAILABLE_IN_2_24
|
|
rpm-build |
4f3c61 |
gboolean soup_cookie_applies_to_uri (SoupCookie *cookie,
|
|
rpm-build |
4f3c61 |
SoupURI *uri);
|
|
rpm-build |
4f3c61 |
SOUP_AVAILABLE_IN_2_24
|
|
rpm-build |
4f3c61 |
gboolean soup_cookie_equal (SoupCookie *cookie1,
|
|
rpm-build |
4f3c61 |
SoupCookie *cookie2);
|
|
rpm-build |
4f3c61 |
|
|
rpm-build |
4f3c61 |
SOUP_AVAILABLE_IN_2_24
|
|
rpm-build |
4f3c61 |
void soup_cookie_free (SoupCookie *cookie);
|
|
rpm-build |
4f3c61 |
|
|
rpm-build |
4f3c61 |
SOUP_AVAILABLE_IN_2_24
|
|
rpm-build |
4f3c61 |
GSList *soup_cookies_from_response (SoupMessage *msg);
|
|
rpm-build |
4f3c61 |
SOUP_AVAILABLE_IN_2_24
|
|
rpm-build |
4f3c61 |
GSList *soup_cookies_from_request (SoupMessage *msg);
|
|
rpm-build |
4f3c61 |
|
|
rpm-build |
4f3c61 |
SOUP_AVAILABLE_IN_2_24
|
|
rpm-build |
4f3c61 |
void soup_cookies_to_response (GSList *cookies,
|
|
rpm-build |
4f3c61 |
SoupMessage *msg);
|
|
rpm-build |
4f3c61 |
SOUP_AVAILABLE_IN_2_24
|
|
rpm-build |
4f3c61 |
void soup_cookies_to_request (GSList *cookies,
|
|
rpm-build |
4f3c61 |
SoupMessage *msg);
|
|
rpm-build |
4f3c61 |
|
|
rpm-build |
4f3c61 |
SOUP_AVAILABLE_IN_2_24
|
|
rpm-build |
4f3c61 |
void soup_cookies_free (GSList *cookies);
|
|
rpm-build |
4f3c61 |
|
|
rpm-build |
4f3c61 |
SOUP_AVAILABLE_IN_2_24
|
|
rpm-build |
4f3c61 |
char *soup_cookies_to_cookie_header (GSList *cookies);
|
|
rpm-build |
4f3c61 |
|
|
rpm-build |
4f3c61 |
SOUP_AVAILABLE_IN_2_30
|
|
rpm-build |
4f3c61 |
gboolean soup_cookie_domain_matches (SoupCookie *cookie,
|
|
rpm-build |
4f3c61 |
const char *host);
|
|
rpm-build |
4f3c61 |
|
|
rpm-build |
4f3c61 |
G_END_DECLS
|
|
rpm-build |
4f3c61 |
|
|
rpm-build |
4f3c61 |
#endif /* SOUP_COOKIE_H */
|