1 /* GIO - GLib Input, Output and Streaming Library
3 * Copyright © 2010 Red Hat, Inc.
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.
13 #ifndef __G_TLS_INPUT_STREAM_GNUTLS_H__
14 #define __G_TLS_INPUT_STREAM_GNUTLS_H__
17 #include "gtlsconnection-gnutls.h"
21 #define G_TYPE_TLS_INPUT_STREAM_GNUTLS (g_tls_input_stream_gnutls_get_type ())
22 #define G_TLS_INPUT_STREAM_GNUTLS(inst) (G_TYPE_CHECK_INSTANCE_CAST ((inst), G_TYPE_TLS_INPUT_STREAM_GNUTLS, GTlsInputStreamGnutls))
23 #define G_TLS_INPUT_STREAM_GNUTLS_CLASS(class) (G_TYPE_CHECK_CLASS_CAST ((class), G_TYPE_TLS_INPUT_STREAM_GNUTLS, GTlsInputStreamGnutlsClass))
24 #define G_IS_TLS_INPUT_STREAM_GNUTLS(inst) (G_TYPE_CHECK_INSTANCE_TYPE ((inst), G_TYPE_TLS_INPUT_STREAM_GNUTLS))
25 #define G_IS_TLS_INPUT_STREAM_GNUTLS_CLASS(class) (G_TYPE_CHECK_CLASS_TYPE ((class), G_TYPE_TLS_INPUT_STREAM_GNUTLS))
26 #define G_TLS_INPUT_STREAM_GNUTLS_GET_CLASS(inst) (G_TYPE_INSTANCE_GET_CLASS ((inst), G_TYPE_TLS_INPUT_STREAM_GNUTLS, GTlsInputStreamGnutlsClass))
28 typedef struct _GTlsInputStreamGnutlsPrivate GTlsInputStreamGnutlsPrivate;
29 typedef struct _GTlsInputStreamGnutlsClass GTlsInputStreamGnutlsClass;
30 typedef struct _GTlsInputStreamGnutls GTlsInputStreamGnutls;
32 struct _GTlsInputStreamGnutlsClass
34 GInputStreamClass parent_class;
37 struct _GTlsInputStreamGnutls
39 GInputStream parent_instance;
40 GTlsInputStreamGnutlsPrivate *priv;
43 GType g_tls_input_stream_gnutls_get_type (void) G_GNUC_CONST;
44 GInputStream *g_tls_input_stream_gnutls_new (GTlsConnectionGnutls *conn);
48 #endif /* __G_TLS_INPUT_STREAM_GNUTLS_H___ */