Remove build warning
[platform/upstream/libsoup.git] / libsoup / soup-body-output-stream.h
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_OUTPUT_STREAM_H
7 #define SOUP_BODY_OUTPUT_STREAM_H 1
8
9 #include "soup-types.h"
10 #include "soup-message-headers.h"
11
12 G_BEGIN_DECLS
13
14 #define SOUP_TYPE_BODY_OUTPUT_STREAM            (soup_body_output_stream_get_type ())
15 #define SOUP_BODY_OUTPUT_STREAM(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), SOUP_TYPE_BODY_OUTPUT_STREAM, SoupBodyOutputStream))
16 #define SOUP_BODY_OUTPUT_STREAM_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), SOUP_TYPE_BODY_OUTPUT_STREAM, SoupBodyOutputStreamClass))
17 #define SOUP_IS_BODY_OUTPUT_STREAM(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SOUP_TYPE_BODY_OUTPUT_STREAM))
18 #define SOUP_IS_BODY_OUTPUT_STREAM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((obj), SOUP_TYPE_BODY_OUTPUT_STREAM))
19 #define SOUP_BODY_OUTPUT_STREAM_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), SOUP_TYPE_BODY_OUTPUT_STREAM, SoupBodyOutputStreamClass))
20
21 typedef struct _SoupBodyOutputStreamPrivate SoupBodyOutputStreamPrivate;
22
23 typedef struct {
24         GFilterOutputStream parent;
25
26         SoupBodyOutputStreamPrivate *priv;
27 } SoupBodyOutputStream;
28
29 typedef struct {
30         GFilterOutputStreamClass parent_class;
31
32         /* Padding for future expansion */
33         void (*_libsoup_reserved1) (void);
34         void (*_libsoup_reserved2) (void);
35         void (*_libsoup_reserved3) (void);
36         void (*_libsoup_reserved4) (void);
37 } SoupBodyOutputStreamClass;
38
39 GType soup_body_output_stream_get_type (void);
40
41 GOutputStream *soup_body_output_stream_new (GOutputStream *base_stream,
42                                             SoupEncoding   encoding,
43                                             goffset        content_length);
44
45 G_END_DECLS
46
47 #endif /* SOUP_BODY_OUTPUT_STREAM_H */