1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
3 * Copyright 2012 Red Hat, Inc.
6 #ifndef __SOUP_BODY_INPUT_STREAM_H__
7 #define __SOUP_BODY_INPUT_STREAM_H__ 1
9 #include "soup-types.h"
10 #include "soup-filter-input-stream.h"
11 #include "soup-message-headers.h"
15 #define SOUP_TYPE_BODY_INPUT_STREAM (soup_body_input_stream_get_type ())
16 #define SOUP_BODY_INPUT_STREAM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SOUP_TYPE_BODY_INPUT_STREAM, SoupBodyInputStream))
17 #define SOUP_BODY_INPUT_STREAM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SOUP_TYPE_BODY_INPUT_STREAM, SoupBodyInputStreamClass))
18 #define SOUP_IS_BODY_INPUT_STREAM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SOUP_TYPE_BODY_INPUT_STREAM))
19 #define SOUP_IS_BODY_INPUT_STREAM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((obj), SOUP_TYPE_BODY_INPUT_STREAM))
20 #define SOUP_BODY_INPUT_STREAM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SOUP_TYPE_BODY_INPUT_STREAM, SoupBodyInputStreamClass))
22 typedef struct _SoupBodyInputStreamPrivate SoupBodyInputStreamPrivate;
25 GFilterInputStream parent;
27 SoupBodyInputStreamPrivate *priv;
28 } SoupBodyInputStream;
31 GFilterInputStreamClass parent_class;
33 /* Padding for future expansion */
34 void (*_libsoup_reserved1) (void);
35 void (*_libsoup_reserved2) (void);
36 void (*_libsoup_reserved3) (void);
37 void (*_libsoup_reserved4) (void);
38 } SoupBodyInputStreamClass;
40 GType soup_body_input_stream_get_type (void);
42 GInputStream *soup_body_input_stream_new (GInputStream *base_stream,
43 SoupEncoding encoding,
44 goffset content_length);
48 #endif /* __SOUP_BODY_INPUT_STREAM_H__ */