1/* GIO - GLib Input, Output and Streaming Library
2 *
3 * Copyright © 2008 Christian Kellner, Samuel Cormier-Iijima
4 * Copyright © 2009 Codethink Limited
5 *
6 * This library 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 * See the included COPYING file for more information.
12 *
13 * Authors: Christian Kellner <gicmo@gnome.org>
14 * Samuel Cormier-Iijima <sciyoshi@gmail.com>
15 * Ryan Lortie <desrt@desrt.ca>
16 */
17
18#ifndef __G_SOCKET_OUTPUT_STREAM_H__
19#define __G_SOCKET_OUTPUT_STREAM_H__
20
21#include <gio/goutputstream.h>
22#include <gio/gsocket.h>
23
24G_BEGIN_DECLS
25
26#define G_TYPE_SOCKET_OUTPUT_STREAM (_g_socket_output_stream_get_type ())
27#define G_SOCKET_OUTPUT_STREAM(inst) (G_TYPE_CHECK_INSTANCE_CAST ((inst), \
28 G_TYPE_SOCKET_OUTPUT_STREAM, GSocketOutputStream))
29#define G_SOCKET_OUTPUT_STREAM_CLASS(class) (G_TYPE_CHECK_CLASS_CAST ((class), \
30 G_TYPE_SOCKET_OUTPUT_STREAM, GSocketOutputStreamClass))
31#define G_IS_SOCKET_OUTPUT_STREAM(inst) (G_TYPE_CHECK_INSTANCE_TYPE ((inst), \
32 G_TYPE_SOCKET_OUTPUT_STREAM))
33#define G_IS_SOCKET_OUTPUT_STREAM_CLASS(class) (G_TYPE_CHECK_CLASS_TYPE ((class), \
34 G_TYPE_SOCKET_OUTPUT_STREAM))
35#define G_SOCKET_OUTPUT_STREAM_GET_CLASS(inst) (G_TYPE_INSTANCE_GET_CLASS ((inst), \
36 G_TYPE_SOCKET_OUTPUT_STREAM, GSocketOutputStreamClass))
37
38typedef struct _GSocketOutputStreamPrivate GSocketOutputStreamPrivate;
39typedef struct _GSocketOutputStreamClass GSocketOutputStreamClass;
40typedef struct _GSocketOutputStream GSocketOutputStream;
41
42struct _GSocketOutputStreamClass
43{
44 GOutputStreamClass parent_class;
45};
46
47struct _GSocketOutputStream
48{
49 GOutputStream parent_instance;
50 GSocketOutputStreamPrivate *priv;
51};
52
53GType _g_socket_output_stream_get_type (void) G_GNUC_CONST;
54GSocketOutputStream * _g_socket_output_stream_new (GSocket *socket);
55
56G_END_DECLS
57
58#endif /* __G_SOCKET_OUTPUT_STREAM_H__ */
59

source code of gtk/subprojects/glib/gio/gsocketoutputstream.h