Change LGPL-2.1+ to LGPL-2.1-or-later
[platform/upstream/glib.git] / gio / gsocketoutputstream.h
1 /* GIO - GLib Input, Output and Streaming Library
2  *
3  * Copyright © 2008 Christian Kellner, Samuel Cormier-Iijima
4  * Copyright © 2009 Codethink Limited
5  *
6  * SPDX-License-Identifier: LGPL-2.1-or-later
7  *
8  * This library is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU Lesser General Public
10  * License as published by the Free Software Foundation; either
11  * version 2.1 of the License, or (at your option) any later version.
12  *
13  * See the included COPYING file for more information.
14  *
15  * Authors: Christian Kellner <gicmo@gnome.org>
16  *          Samuel Cormier-Iijima <sciyoshi@gmail.com>
17  *          Ryan Lortie <desrt@desrt.ca>
18  */
19
20 #ifndef __G_SOCKET_OUTPUT_STREAM_H__
21 #define __G_SOCKET_OUTPUT_STREAM_H__
22
23 #include <gio/goutputstream.h>
24 #include <gio/gsocket.h>
25
26 G_BEGIN_DECLS
27
28 #define G_TYPE_SOCKET_OUTPUT_STREAM                         (_g_socket_output_stream_get_type ())
29 #define G_SOCKET_OUTPUT_STREAM(inst)                        (G_TYPE_CHECK_INSTANCE_CAST ((inst),                     \
30                                                              G_TYPE_SOCKET_OUTPUT_STREAM, GSocketOutputStream))
31 #define G_SOCKET_OUTPUT_STREAM_CLASS(class)                 (G_TYPE_CHECK_CLASS_CAST ((class),                       \
32                                                              G_TYPE_SOCKET_OUTPUT_STREAM, GSocketOutputStreamClass))
33 #define G_IS_SOCKET_OUTPUT_STREAM(inst)                     (G_TYPE_CHECK_INSTANCE_TYPE ((inst),                     \
34                                                              G_TYPE_SOCKET_OUTPUT_STREAM))
35 #define G_IS_SOCKET_OUTPUT_STREAM_CLASS(class)              (G_TYPE_CHECK_CLASS_TYPE ((class),                       \
36                                                              G_TYPE_SOCKET_OUTPUT_STREAM))
37 #define G_SOCKET_OUTPUT_STREAM_GET_CLASS(inst)              (G_TYPE_INSTANCE_GET_CLASS ((inst),                      \
38                                                              G_TYPE_SOCKET_OUTPUT_STREAM, GSocketOutputStreamClass))
39
40 typedef struct _GSocketOutputStreamPrivate                  GSocketOutputStreamPrivate;
41 typedef struct _GSocketOutputStreamClass                    GSocketOutputStreamClass;
42 typedef struct _GSocketOutputStream                         GSocketOutputStream;
43
44 struct _GSocketOutputStreamClass
45 {
46   GOutputStreamClass parent_class;
47 };
48
49 struct _GSocketOutputStream
50 {
51   GOutputStream parent_instance;
52   GSocketOutputStreamPrivate *priv;
53 };
54
55 GType                   _g_socket_output_stream_get_type                 (void) G_GNUC_CONST;
56 GSocketOutputStream *   _g_socket_output_stream_new                     (GSocket *socket);
57
58 G_END_DECLS
59
60 #endif /* __G_SOCKET_OUTPUT_STREAM_H__ */