Add some more cases to the app-id unit tests
[glib.git] / gio / gtlsfiledatabase.h
blob5024949287c6fab928cdc312fd008eade91f959b
1 /* GIO - GLib Input, Output and Streaming Library
3 * Copyright © 2010 Collabora, Ltd.
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU Lesser General Public License as published
7 * by the Free Software Foundation; either version 2 of the licence or (at
8 * your option) any later version.
10 * See the included COPYING file for more information.
12 * Author: Stef Walter <stefw@collabora.co.uk>
15 #ifndef __G_TLS_FILE_DATABASE_H__
16 #define __G_TLS_FILE_DATABASE_H__
18 #if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
19 #error "Only <gio/gio.h> can be included directly."
20 #endif
22 #include <gio/giotypes.h>
24 G_BEGIN_DECLS
26 #define G_TYPE_TLS_FILE_DATABASE (g_tls_file_database_get_type ())
27 #define G_TLS_FILE_DATABASE(inst) (G_TYPE_CHECK_INSTANCE_CAST ((inst), G_TYPE_TLS_FILE_DATABASE, GTlsFileDatabase))
28 #define G_IS_TLS_FILE_DATABASE(inst) (G_TYPE_CHECK_INSTANCE_TYPE ((inst), G_TYPE_TLS_FILE_DATABASE))
29 #define G_TLS_FILE_DATABASE_GET_INTERFACE(inst) (G_TYPE_INSTANCE_GET_INTERFACE ((inst), G_TYPE_TLS_FILE_DATABASE, GTlsFileDatabaseInterface))
31 typedef struct _GTlsFileDatabaseInterface GTlsFileDatabaseInterface;
33 /**
34 * GTlsFileDatabaseInterface:
35 * @g_iface: The parent interface.
37 * Provides an interface for #GTlsFileDatabase implementations.
40 struct _GTlsFileDatabaseInterface
42 GTypeInterface g_iface;
44 /*< private >*/
45 /* Padding for future expansion */
46 gpointer padding[8];
49 GLIB_AVAILABLE_IN_ALL
50 GType g_tls_file_database_get_type (void) G_GNUC_CONST;
52 GLIB_AVAILABLE_IN_ALL
53 GTlsDatabase* g_tls_file_database_new (const gchar *anchors,
54 GError **error);
56 G_END_DECLS
58 #endif /* __G_TLS_FILE_DATABASE_H___ */