1/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2/*
3 * Copyright (C) 2008 Diego Escalante Urrelo
4 */
5
6#ifndef __SOUP_COOKIE_JAR_DB_H__
7#define __SOUP_COOKIE_JAR_DB_H__ 1
8
9#include <libsoup/soup-cookie-jar.h>
10
11G_BEGIN_DECLS
12
13#define SOUP_TYPE_COOKIE_JAR_DB (soup_cookie_jar_db_get_type ())
14#define SOUP_COOKIE_JAR_DB(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SOUP_TYPE_COOKIE_JAR_DB, SoupCookieJarDB))
15#define SOUP_COOKIE_JAR_DB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SOUP_TYPE_COOKIE_JAR_DB, SoupCookieJarDBClass))
16#define SOUP_IS_COOKIE_JAR_DB(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SOUP_TYPE_COOKIE_JAR_DB))
17#define SOUP_IS_COOKIE_JAR_DB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((obj), SOUP_TYPE_COOKIE_JAR_DB))
18#define SOUP_COOKIE_JAR_DB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SOUP_TYPE_COOKIE_JAR_DB, SoupCookieJarDBClass))
19
20typedef struct {
21 SoupCookieJar parent;
22
23} SoupCookieJarDB;
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} SoupCookieJarDBClass;
34
35#define SOUP_COOKIE_JAR_DB_FILENAME "filename"
36
37SOUP_AVAILABLE_IN_2_42
38GType soup_cookie_jar_db_get_type (void);
39
40SOUP_AVAILABLE_IN_2_42
41SoupCookieJar *soup_cookie_jar_db_new (const char *filename,
42 gboolean read_only);
43
44G_END_DECLS
45
46#endif /* __SOUP_COOKIE_JAR_DB_H__ */
47