1 /* GIO - GLib Input, Output and Streaming Library
3 * Copyright © 2008 Christian Kellner, Samuel Cormier-Iijima
4 * Copyright © 2009 Codethink Limited
6 * SPDX-License-Identifier: LGPL-2.1-or-later
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.
13 * See the included COPYING file for more information.
15 * Authors: Christian Kellner <gicmo@gnome.org>
16 * Samuel Cormier-Iijima <sciyoshi@gmail.com>
17 * Ryan Lortie <desrt@desrt.ca>
20 #ifndef __G_SOCKET_OUTPUT_STREAM_H__
21 #define __G_SOCKET_OUTPUT_STREAM_H__
23 #include <gio/goutputstream.h>
24 #include <gio/gsocket.h>
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))
40 typedef struct _GSocketOutputStreamPrivate GSocketOutputStreamPrivate;
41 typedef struct _GSocketOutputStreamClass GSocketOutputStreamClass;
42 typedef struct _GSocketOutputStream GSocketOutputStream;
44 struct _GSocketOutputStreamClass
46 GOutputStreamClass parent_class;
49 struct _GSocketOutputStream
51 GOutputStream parent_instance;
52 GSocketOutputStreamPrivate *priv;
55 GType _g_socket_output_stream_get_type (void) G_GNUC_CONST;
56 GSocketOutputStream * _g_socket_output_stream_new (GSocket *socket);
60 #endif /* __G_SOCKET_OUTPUT_STREAM_H__ */