1/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2/*
3 * Copyright (C) 2008 Red Hat, Inc.
4 */
5
6#ifndef __SOUP_COOKIE_JAR_TEXT_H__
7#define __SOUP_COOKIE_JAR_TEXT_H__ 1
8
9#include <libsoup/soup-cookie-jar.h>
10
11G_BEGIN_DECLS
12
13#define SOUP_TYPE_COOKIE_JAR_TEXT (soup_cookie_jar_text_get_type ())
14#define SOUP_COOKIE_JAR_TEXT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SOUP_TYPE_COOKIE_JAR_TEXT, SoupCookieJarText))
15#define SOUP_COOKIE_JAR_TEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SOUP_TYPE_COOKIE_JAR_TEXT, SoupCookieJarTextClass))
16#define SOUP_IS_COOKIE_JAR_TEXT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SOUP_TYPE_COOKIE_JAR_TEXT))
17#define SOUP_IS_COOKIE_JAR_TEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((obj), SOUP_TYPE_COOKIE_JAR_TEXT))
18#define SOUP_COOKIE_JAR_TEXT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SOUP_TYPE_COOKIE_JAR_TEXT, SoupCookieJarTextClass))
19
20typedef struct {
21 SoupCookieJar parent;
22
23} SoupCookieJarText;
24
25typedef struct {
26 SoupCookieJarClass parent_class;
27
28 /* Padding for future expansion */
29 void (*_libsoup_reserved1) (void);
30 void (*_libsoup_reserved2) (void);
31 void (*_libsoup_reserved3) (void);
32 void (*_libsoup_reserved4) (void);
33} SoupCookieJarTextClass;
34
35#define SOUP_COOKIE_JAR_TEXT_FILENAME "filename"
36
37SOUP_AVAILABLE_IN_2_26
38GType soup_cookie_jar_text_get_type (void);
39
40SOUP_AVAILABLE_IN_2_26
41SoupCookieJar *soup_cookie_jar_text_new (const char *filename,
42 gboolean read_only);
43
44G_END_DECLS
45
46#endif /* __SOUP_COOKIE_JAR_TEXT_H__ */
47