96e0fb7a44001ce59e1b3a137fbaa39817199c31
[platform/upstream/glib-networking.git] / tls / openssl / gtlsserverconnection-openssl.h
1 /*
2  * gtlsserverconnection-openssl.h
3  *
4  * Copyright (C) 2015 NICE s.r.l.
5  *
6  * This file is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * This file is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public License
17  * along with this program. If not, see <http://www.gnu.org/licenses/>.
18  *
19  * In addition, when the library is used with OpenSSL, a special
20  * exception applies. Refer to the LICENSE_EXCEPTION file for details.
21  *
22  * Authors: Ignacio Casal Quinteiro
23  */
24
25 #ifndef __G_TLS_SERVER_CONNECTION_OPENSSL_H__
26 #define __G_TLS_SERVER_CONNECTION_OPENSSL_H__
27
28 #include <gio/gio.h> 
29 #include "gtlsconnection-openssl.h"
30
31 G_BEGIN_DECLS
32
33 #define G_TYPE_TLS_SERVER_CONNECTION_OPENSSL            (g_tls_server_connection_openssl_get_type ())
34 #define G_TLS_SERVER_CONNECTION_OPENSSL(inst)           (G_TYPE_CHECK_INSTANCE_CAST ((inst), G_TYPE_TLS_SERVER_CONNECTION_OPENSSL, GTlsServerConnectionOpenssl))
35 #define G_TLS_SERVER_CONNECTION_OPENSSL_CLASS(class)    (G_TYPE_CHECK_CLASS_CAST ((class), G_TYPE_TLS_SERVER_CONNECTION_OPENSSL, GTlsServerConnectionOpensslClass))
36 #define G_IS_TLS_SERVER_CONNECTION_OPENSSL(inst)        (G_TYPE_CHECK_INSTANCE_TYPE ((inst), G_TYPE_TLS_SERVER_CONNECTION_OPENSSL))
37 #define G_IS_TLS_SERVER_CONNECTION_OPENSSL_CLASS(class) (G_TYPE_CHECK_CLASS_TYPE ((class), G_TYPE_TLS_SERVER_CONNECTION_OPENSSL))
38 #define G_TLS_SERVER_CONNECTION_OPENSSL_GET_CLASS(inst) (G_TYPE_INSTANCE_GET_CLASS ((inst), G_TYPE_TLS_SERVER_CONNECTION_OPENSSL, GTlsServerConnectionOpensslClass))
39
40 typedef struct _GTlsServerConnectionOpensslClass GTlsServerConnectionOpensslClass;
41 typedef struct _GTlsServerConnectionOpenssl      GTlsServerConnectionOpenssl;
42
43 struct _GTlsServerConnectionOpensslClass
44 {
45   GTlsConnectionOpensslClass parent_class;
46 };
47
48 struct _GTlsServerConnectionOpenssl
49 {
50   GTlsConnectionOpenssl parent_instance;
51 };
52
53 GType g_tls_server_connection_openssl_get_type (void) G_GNUC_CONST;
54
55 G_END_DECLS
56
57 #endif /* __G_TLS_SERVER_CONNECTION_OPENSSL_H___ */