1 #ifndef __G_CALLBACK_OUTPUT_STREAM_H__
2 #define __G_CALLBACK_OUTPUT_STREAM_H__
8 #define G_TYPE_CALLBACK_OUTPUT_STREAM (g_callback_output_stream_get_type ())
9 #define G_CALLBACK_OUTPUT_STREAM(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), G_TYPE_CALLBACK_OUTPUT_STREAM, GCallbackOutputStream))
10 #define G_CALLBACK_OUTPUT_STREAM_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), G_TYPE_CALLBACK_OUTPUT_STREAM, GCallbackOutputStreamClass))
11 #define G_IS_CALLBACK_OUTPUT_STREAM(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), G_TYPE_CALLBACK_OUTPUT_STREAM))
12 #define G_IS_CALLBACK_OUTPUT_STREAM_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), G_TYPE_CALLBACK_OUTPUT_STREAM))
13 #define G_CALLBACK_OUTPUT_STREAM_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), G_TYPE_CALLBACK_OUTPUT_STREAM, GCallbackOutputStreamClass))
16 typedef struct _GCallbackOutputStream GCallbackOutputStream
;
17 typedef struct _GCallbackOutputStreamClass GCallbackOutputStreamClass
;
18 typedef struct _GCallbackOutputStreamPrivate GCallbackOutputStreamPrivate
;
20 struct _GCallbackOutputStream
22 GOutputStream parent_instance
;
25 GCallbackOutputStreamPrivate
*priv
;
28 struct _GCallbackOutputStreamClass
30 GOutputStreamClass parent_class
;
33 GType
g_callback_output_stream_get_type (void) G_GNUC_CONST
;
35 typedef gssize (*GCallbackOutputStreamWriteFunc
) (const void *buffer
,
37 GCancellable
*cancellable
,
41 typedef gboolean (*GCallbackOutputStreamFlushFunc
) (GCancellable
*cancellable
,
45 typedef gboolean (*GCallbackOutputStreamCloseFunc
) (GCancellable
*cancellable
,
51 g_callback_output_stream_new (GCallbackOutputStreamWriteFunc read_func
,
52 GCallbackOutputStreamFlushFunc flush_func
,
53 GCallbackOutputStreamCloseFunc close_func
,
58 #endif /* __G_CALLBACK_OUTPUT_STREAM_H__ */