gtlsfiledatabase.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /* GIO - GLib Input, Output and Streaming Library
  2. *
  3. * Copyright © 2010 Collabora, Ltd.
  4. *
  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.
  9. *
  10. * See the included COPYING file for more information.
  11. *
  12. * Author: Stef Walter <[email protected]>
  13. */
  14. #ifndef __G_TLS_FILE_DATABASE_H__
  15. #define __G_TLS_FILE_DATABASE_H__
  16. #if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
  17. #error "Only <gio/gio.h> can be included directly."
  18. #endif
  19. #include <gio/giotypes.h>
  20. G_BEGIN_DECLS
  21. #define G_TYPE_TLS_FILE_DATABASE (g_tls_file_database_get_type ())
  22. #define G_TLS_FILE_DATABASE(inst) (G_TYPE_CHECK_INSTANCE_CAST ((inst), G_TYPE_TLS_FILE_DATABASE, GTlsFileDatabase))
  23. #define G_IS_TLS_FILE_DATABASE(inst) (G_TYPE_CHECK_INSTANCE_TYPE ((inst), G_TYPE_TLS_FILE_DATABASE))
  24. #define G_TLS_FILE_DATABASE_GET_INTERFACE(inst) (G_TYPE_INSTANCE_GET_INTERFACE ((inst), G_TYPE_TLS_FILE_DATABASE, GTlsFileDatabaseInterface))
  25. typedef struct _GTlsFileDatabaseInterface GTlsFileDatabaseInterface;
  26. /**
  27. * GTlsFileDatabaseInterface:
  28. * @g_iface: The parent interface.
  29. *
  30. * Provides an interface for #GTlsFileDatabase implementations.
  31. *
  32. */
  33. struct _GTlsFileDatabaseInterface
  34. {
  35. GTypeInterface g_iface;
  36. /*< private >*/
  37. /* Padding for future expansion */
  38. gpointer padding[8];
  39. };
  40. GLIB_AVAILABLE_IN_ALL
  41. GType g_tls_file_database_get_type (void) G_GNUC_CONST;
  42. GLIB_AVAILABLE_IN_ALL
  43. GTlsDatabase* g_tls_file_database_new (const gchar *anchors,
  44. GError **error);
  45. G_END_DECLS
  46. #endif /* __G_TLS_FILE_DATABASE_H___ */