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_BODY_INPUT_STREAM_H__ 7 #define __SOUP_BODY_INPUT_STREAM_H__ 1 8 9 #include "soup-types.h" 10 #include "soup-filter-input-stream.h" 11 #include "soup-message-headers.h" 12 13 G_BEGIN_DECLS 14 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)) 21 22 typedef struct _SoupBodyInputStreamPrivate SoupBodyInputStreamPrivate; 23 24 typedef struct { 25 GFilterInputStream parent; 26 27 SoupBodyInputStreamPrivate *priv; 28 } SoupBodyInputStream; 29 30 typedef struct { 31 GFilterInputStreamClass parent_class; 32 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; 39 40 GType soup_body_input_stream_get_type (void); 41 42 GInputStream *soup_body_input_stream_new (GInputStream *base_stream, 43 SoupEncoding encoding, 44 goffset content_length); 45 46 G_END_DECLS 47 48 #endif /* __SOUP_BODY_INPUT_STREAM_H__ */ 49