1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ 2 /* 3 * Copyright (C) 2016, 2017, 2018 Igalia S.L. 4 * Copyright (C) 2017, 2018 Metrological Group B.V. 5 */ 6 7 #ifndef __SOUP_HSTS_ENFORCER_DB_H__ 8 #define __SOUP_HSTS_ENFORCER_DB_H__ 1 9 10 #include <libsoup/soup-hsts-enforcer.h> 11 12 G_BEGIN_DECLS 13 14 #define SOUP_TYPE_HSTS_ENFORCER_DB (soup_hsts_enforcer_db_get_type ()) 15 #define SOUP_HSTS_ENFORCER_DB(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SOUP_TYPE_HSTS_ENFORCER_DB, SoupHSTSEnforcerDB)) 16 #define SOUP_HSTS_ENFORCER_DB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SOUP_TYPE_HSTS_ENFORCER_DB, SoupHSTSEnforcerDBClass)) 17 #define SOUP_IS_HSTS_ENFORCER_DB(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SOUP_TYPE_HSTS_ENFORCER_DB)) 18 #define SOUP_IS_HSTS_ENFORCER_DB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((obj), SOUP_TYPE_HSTS_ENFORCER_DB)) 19 #define SOUP_HSTS_ENFORCER_DB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SOUP_TYPE_HSTS_ENFORCER_DB, SoupHSTSEnforcerDBClass)) 20 21 typedef struct _SoupHSTSEnforcerDBPrivate SoupHSTSEnforcerDBPrivate; 22 23 typedef struct { 24 SoupHSTSEnforcer parent; 25 26 SoupHSTSEnforcerDBPrivate *priv; 27 28 } SoupHSTSEnforcerDB; 29 30 typedef struct { 31 SoupHSTSEnforcerClass parent_class; 32 33 /* Padding for future expansion */ 34 void (*_libsoup_reserved1) (void); 35 void (*_libsoup_reserved2) (void); 36 void (*_libsoup_reserved3) (void); 37 void (*_libsoup_reserved4) (void); 38 } SoupHSTSEnforcerDBClass; 39 40 #define SOUP_HSTS_ENFORCER_DB_FILENAME "filename" 41 42 SOUP_AVAILABLE_IN_2_68 43 GType soup_hsts_enforcer_db_get_type (void); 44 45 SOUP_AVAILABLE_IN_2_68 46 SoupHSTSEnforcer *soup_hsts_enforcer_db_new (const char *filename); 47 48 G_END_DECLS 49 50 #endif /* __SOUP_HSTS_ENFORCER_DB_H__ */ 51