/*
* camel-filter-input-stream.h
*
* This library is free software: you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation.
*
* This library is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
* for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this library. If not, see .
*
*/
#if !defined (__CAMEL_H_INSIDE__) && !defined (CAMEL_COMPILATION)
#error "Only can be included directly."
#endif
#ifndef CAMEL_FILTER_INPUT_STREAM_H
#define CAMEL_FILTER_INPUT_STREAM_H
#include
#include
/* Standard GObject macros */
#define CAMEL_TYPE_FILTER_INPUT_STREAM \
(camel_filter_input_stream_get_type ())
#define CAMEL_FILTER_INPUT_STREAM(obj) \
(G_TYPE_CHECK_INSTANCE_CAST \
((obj), CAMEL_TYPE_FILTER_INPUT_STREAM, CamelFilterInputStream))
#define CAMEL_FILTER_INPUT_STREAM_CLASS(cls) \
(G_TYPE_CHECK_CLASS_CAST \
((cls), CAMEL_TYPE_FILTER_INPUT_STREAM, CamelFilterInputStreamClass))
#define CAMEL_IS_FILTER_INPUT_STREAM(obj) \
(G_TYPE_CHECK_INSTANCE_TYPE \
((obj), CAMEL_TYPE_FILTER_INPUT_STREAM))
#define CAMEL_IS_FILTER_INPUT_STREAM_CLASS(cls) \
(G_TYPE_CHECK_CLASS_TYPE \
((cls), CAMEL_TYPE_FILTER_INPUT_STREAM))
#define CAMEL_FILTER_INPUT_STREAM_GET_CLASS(obj) \
(G_TYPE_INSTANCE_GET_CLASS \
((obj), CAMEL_TYPE_FILTER_INPUT_STREAM, CamelFilterInputStreamClass))
G_BEGIN_DECLS
typedef struct _CamelFilterInputStream CamelFilterInputStream;
typedef struct _CamelFilterInputStreamClass CamelFilterInputStreamClass;
typedef struct _CamelFilterInputStreamPrivate CamelFilterInputStreamPrivate;
struct _CamelFilterInputStream {
GFilterInputStream parent;
CamelFilterInputStreamPrivate *priv;
};
struct _CamelFilterInputStreamClass {
GFilterInputStreamClass parent_class;
};
GType camel_filter_input_stream_get_type
(void) G_GNUC_CONST;
GInputStream * camel_filter_input_stream_new
(GInputStream *base_stream,
CamelMimeFilter *filter);
CamelMimeFilter *
camel_filter_input_stream_get_filter
(CamelFilterInputStream *filter_stream);
G_END_DECLS
#endif /* CAMEL_FILTER_INPUT_STREAM_H */