gtlsfiledatabase.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /* GIO - GLib Input, Output and Streaming Library
  2. *
  3. * Copyright © 2010 Collabora, Ltd.
  4. *
  5. * SPDX-License-Identifier: LGPL-2.1-or-later
  6. *
  7. * This library is free software; you can redistribute it and/or
  8. * modify it under the terms of the GNU Lesser General Public
  9. * License as published by the Free Software Foundation; either
  10. * version 2.1 of the License, or (at your option) any later version.
  11. *
  12. * See the included COPYING file for more information.
  13. *
  14. * Author: Stef Walter <stefw@collabora.co.uk>
  15. */
  16. #ifndef __G_TLS_FILE_DATABASE_H__
  17. #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
  21. #include <gio/giotypes.h>
  22. G_BEGIN_DECLS
  23. #define G_TYPE_TLS_FILE_DATABASE (g_tls_file_database_get_type ())
  24. #define G_TLS_FILE_DATABASE(inst) (G_TYPE_CHECK_INSTANCE_CAST ((inst), G_TYPE_TLS_FILE_DATABASE, GTlsFileDatabase))
  25. #define G_IS_TLS_FILE_DATABASE(inst) (G_TYPE_CHECK_INSTANCE_TYPE ((inst), G_TYPE_TLS_FILE_DATABASE))
  26. #define G_TLS_FILE_DATABASE_GET_INTERFACE(inst) (G_TYPE_INSTANCE_GET_INTERFACE ((inst), G_TYPE_TLS_FILE_DATABASE, GTlsFileDatabaseInterface))
  27. typedef struct _GTlsFileDatabaseInterface GTlsFileDatabaseInterface;
  28. /**
  29. * GTlsFileDatabaseInterface:
  30. * @g_iface: The parent interface.
  31. *
  32. * Provides an interface for #GTlsFileDatabase implementations.
  33. *
  34. */
  35. struct _GTlsFileDatabaseInterface
  36. {
  37. GTypeInterface g_iface;
  38. /*< private >*/
  39. /* Padding for future expansion */
  40. gpointer padding[8];
  41. };
  42. GIO_AVAILABLE_IN_ALL
  43. GType g_tls_file_database_get_type (void) G_GNUC_CONST;
  44. GIO_AVAILABLE_IN_ALL
  45. GTlsDatabase* g_tls_file_database_new (const gchar *anchors,
  46. GError **error);
  47. G_END_DECLS
  48. #endif /* __G_TLS_FILE_DATABASE_H___ */