summaryrefslogtreecommitdiff
path: root/libsoup/soup-hsts-enforcer-db.h
blob: 8205003873634bbfbb5051c0b0056fcde499e613 (plain)
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
50
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
 * Copyright (C) 2016, 2017, 2018 Igalia S.L.
 * Copyright (C) 2017, 2018 Metrological Group B.V.
 */

#ifndef __SOUP_HSTS_ENFORCER_DB_H__
#define __SOUP_HSTS_ENFORCER_DB_H__ 1

#include <libsoup/soup-hsts-enforcer.h>

G_BEGIN_DECLS

#define SOUP_TYPE_HSTS_ENFORCER_DB            (soup_hsts_enforcer_db_get_type ())
#define SOUP_HSTS_ENFORCER_DB(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), SOUP_TYPE_HSTS_ENFORCER_DB, SoupHSTSEnforcerDB))
#define SOUP_HSTS_ENFORCER_DB_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), SOUP_TYPE_HSTS_ENFORCER_DB, SoupHSTSEnforcerDBClass))
#define SOUP_IS_HSTS_ENFORCER_DB(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SOUP_TYPE_HSTS_ENFORCER_DB))
#define SOUP_IS_HSTS_ENFORCER_DB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((obj), SOUP_TYPE_HSTS_ENFORCER_DB))
#define SOUP_HSTS_ENFORCER_DB_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), SOUP_TYPE_HSTS_ENFORCER_DB, SoupHSTSEnforcerDBClass))

typedef struct _SoupHSTSEnforcerDBPrivate SoupHSTSEnforcerDBPrivate;

typedef struct {
	SoupHSTSEnforcer parent;

	SoupHSTSEnforcerDBPrivate *priv;

} SoupHSTSEnforcerDB;

typedef struct {
	SoupHSTSEnforcerClass parent_class;

	/* Padding for future expansion */
	void (*_libsoup_reserved1) (void);
	void (*_libsoup_reserved2) (void);
	void (*_libsoup_reserved3) (void);
	void (*_libsoup_reserved4) (void);
} SoupHSTSEnforcerDBClass;

#define SOUP_HSTS_ENFORCER_DB_FILENAME  "filename"

SOUP_AVAILABLE_IN_2_68
GType soup_hsts_enforcer_db_get_type (void);

SOUP_AVAILABLE_IN_2_68
SoupHSTSEnforcer *soup_hsts_enforcer_db_new (const char *filename);

G_END_DECLS

#endif /* __SOUP_HSTS_ENFORCER_DB_H__ */