Add SoupSession:proxy-resolver
[platform/upstream/libsoup.git] / libsoup / soup-cookie-jar-sqlite.c
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 /*
3  * soup-cookie-jar-sqlite.c: deprecated version of sqlite-based cookie storage
4  *
5  * Copyright 2012 Red Hat, Inc.
6  */
7
8 #ifdef HAVE_CONFIG_H
9 #include <config.h>
10 #endif
11
12 #include <stdlib.h>
13
14 /* Avoid deprecation warnings */
15 #define SOUP_VERSION_MIN_REQUIRED SOUP_VERSION_2_40
16
17 #include "soup.h"
18 #include "soup-cookie-jar-sqlite.h"
19
20 enum {
21         PROP_0,
22
23         PROP_FILENAME,
24
25         LAST_PROP
26 };
27
28 G_DEFINE_TYPE (SoupCookieJarSqlite, soup_cookie_jar_sqlite, SOUP_TYPE_COOKIE_JAR_DB)
29
30 static void
31 soup_cookie_jar_sqlite_init (SoupCookieJarSqlite *sqlite)
32 {
33 }
34
35 SoupCookieJar *
36 soup_cookie_jar_sqlite_new (const char *filename, gboolean read_only)
37 {
38         g_return_val_if_fail (filename != NULL, NULL);
39
40         return g_object_new (SOUP_TYPE_COOKIE_JAR_SQLITE,
41                              SOUP_COOKIE_JAR_SQLITE_FILENAME, filename,
42                              SOUP_COOKIE_JAR_READ_ONLY, read_only,
43                              NULL);
44 }
45
46 static void
47 soup_cookie_jar_sqlite_class_init (SoupCookieJarSqliteClass *sqlite_class)
48 {
49 }