• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 /*
3  * Copyright 2012 Red Hat, Inc.
4  */
5 
6 #ifndef __SOUP_IO_STREAM_H__
7 #define __SOUP_IO_STREAM_H__ 1
8 
9 #include <libsoup/soup-types.h>
10 
11 G_BEGIN_DECLS
12 
13 #define SOUP_TYPE_IO_STREAM            (soup_io_stream_get_type ())
14 #define SOUP_IO_STREAM(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), SOUP_TYPE_IO_STREAM, SoupIOStream))
15 #define SOUP_IO_STREAM_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), SOUP_TYPE_IO_STREAM, SoupIOStreamClass))
16 #define SOUP_IS_IO_STREAM(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SOUP_TYPE_IO_STREAM))
17 #define SOUP_IS_IO_STREAM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((obj), SOUP_TYPE_IO_STREAM))
18 #define SOUP_IO_STREAM_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), SOUP_TYPE_IO_STREAM, SoupIOStreamClass))
19 
20 typedef struct _SoupIOStreamPrivate SoupIOStreamPrivate;
21 
22 typedef struct {
23 	GIOStream parent;
24 
25 	SoupIOStreamPrivate *priv;
26 } SoupIOStream;
27 
28 typedef struct {
29 	GIOStreamClass parent_class;
30 
31 } SoupIOStreamClass;
32 
33 GType soup_io_stream_get_type (void);
34 
35 GIOStream *soup_io_stream_new (GIOStream *base_iostream,
36 			       gboolean   close_on_dispose);
37 
38 GIOStream *soup_io_stream_get_base_iostream (SoupIOStream *stream);
39 
40 G_END_DECLS
41 
42 #endif /* __SOUP_IO_STREAM_H__ */
43