Add some more cases to the app-id unit tests
[glib.git] / gio / gsocketinputstream.h
blob8e5776fef7a595f0c93b739f174fd11d7c6c5285
1 /* GIO - GLib Input, Output and Streaming Library
3 * Copyright © 2008 Christian Kellner, Samuel Cormier-Iijima
4 * Copyright © 2009 Codethink Limited
6 * This program is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU Lesser General Public License as published
8 * by the Free Software Foundation; either version 2 of the licence or (at
9 * your option) any later version.
11 * See the included COPYING file for more information.
13 * Authors: Christian Kellner <gicmo@gnome.org>
14 * Samuel Cormier-Iijima <sciyoshi@gmail.com>
15 * Ryan Lortie <desrt@desrt.ca>
18 #ifndef __G_SOCKET_INPUT_STREAM_H__
19 #define __G_SOCKET_INPUT_STREAM_H__
21 #include <gio/ginputstream.h>
22 #include <gio/gsocket.h>
24 G_BEGIN_DECLS
26 #define G_TYPE_SOCKET_INPUT_STREAM (_g_socket_input_stream_get_type ())
27 #define G_SOCKET_INPUT_STREAM(inst) (G_TYPE_CHECK_INSTANCE_CAST ((inst), \
28 G_TYPE_SOCKET_INPUT_STREAM, GSocketInputStream))
29 #define G_SOCKET_INPUT_STREAM_CLASS(class) (G_TYPE_CHECK_CLASS_CAST ((class), \
30 G_TYPE_SOCKET_INPUT_STREAM, GSocketInputStreamClass))
31 #define G_IS_SOCKET_INPUT_STREAM(inst) (G_TYPE_CHECK_INSTANCE_TYPE ((inst), \
32 G_TYPE_SOCKET_INPUT_STREAM))
33 #define G_IS_SOCKET_INPUT_STREAM_CLASS(class) (G_TYPE_CHECK_CLASS_TYPE ((class), \
34 G_TYPE_SOCKET_INPUT_STREAM))
35 #define G_SOCKET_INPUT_STREAM_GET_CLASS(inst) (G_TYPE_INSTANCE_GET_CLASS ((inst), \
36 G_TYPE_SOCKET_INPUT_STREAM, GSocketInputStreamClass))
38 typedef struct _GSocketInputStreamPrivate GSocketInputStreamPrivate;
39 typedef struct _GSocketInputStreamClass GSocketInputStreamClass;
40 typedef struct _GSocketInputStream GSocketInputStream;
42 struct _GSocketInputStreamClass
44 GInputStreamClass parent_class;
47 struct _GSocketInputStream
49 GInputStream parent_instance;
50 GSocketInputStreamPrivate *priv;
53 GType _g_socket_input_stream_get_type (void) G_GNUC_CONST;
54 GSocketInputStream * _g_socket_input_stream_new (GSocket *socket);
56 G_END_DECLS
58 #endif /* __G_SOCKET_INPUT_STREAM_H___ */