File: soup-cookie-jar-sqlite.c

package info (click to toggle)
libsoup2.4 2.72.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 5,856 kB
  • sloc: ansic: 57,273; xml: 1,418; python: 84; php: 75; javascript: 64; sh: 49; makefile: 14
file content (49 lines) | stat: -rw-r--r-- 1,013 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
 * soup-cookie-jar-sqlite.c: deprecated version of sqlite-based cookie storage
 *
 * Copyright 2012 Red Hat, Inc.
 */

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#include <stdlib.h>

/* Avoid deprecation warnings */
#define SOUP_VERSION_MIN_REQUIRED SOUP_VERSION_2_40

#include "soup.h"
#include "soup-cookie-jar-sqlite.h"

enum {
	PROP_0,

	PROP_FILENAME,

	LAST_PROP
};

G_DEFINE_TYPE (SoupCookieJarSqlite, soup_cookie_jar_sqlite, SOUP_TYPE_COOKIE_JAR_DB)

static void
soup_cookie_jar_sqlite_init (SoupCookieJarSqlite *sqlite)
{
}

SoupCookieJar *
soup_cookie_jar_sqlite_new (const char *filename, gboolean read_only)
{
	g_return_val_if_fail (filename != NULL, NULL);

	return g_object_new (SOUP_TYPE_COOKIE_JAR_SQLITE,
			     SOUP_COOKIE_JAR_SQLITE_FILENAME, filename,
			     SOUP_COOKIE_JAR_READ_ONLY, read_only,
			     NULL);
}

static void
soup_cookie_jar_sqlite_class_init (SoupCookieJarSqliteClass *sqlite_class)
{
}