1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ 2 /* 3 * soup-cache-input-stream.h - Header for SoupCacheInputStream 4 */ 5 6 #ifndef __SOUP_CACHE_INPUT_STREAM_H__ 7 #define __SOUP_CACHE_INPUT_STREAM_H__ 8 9 #include "soup-filter-input-stream.h" 10 11 G_BEGIN_DECLS 12 13 #define SOUP_TYPE_CACHE_INPUT_STREAM (soup_cache_input_stream_get_type()) 14 #define SOUP_CACHE_INPUT_STREAM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SOUP_TYPE_CACHE_INPUT_STREAM, SoupCacheInputStream)) 15 #define SOUP_CACHE_INPUT_STREAM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SOUP_TYPE_CACHE_INPUT_STREAM, SoupCacheInputStreamClass)) 16 #define SOUP_IS_CACHE_INPUT_STREAM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SOUP_TYPE_CACHE_INPUT_STREAM)) 17 #define SOUP_IS_CACHE_INPUT_STREAM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SOUP_TYPE_CACHE_INPUT_STREAM)) 18 #define SOUP_CACHE_INPUT_STREAM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SOUP_TYPE_CACHE_INPUT_STREAM, SoupCacheInputStreamClass)) 19 20 typedef struct _SoupCacheInputStream SoupCacheInputStream; 21 typedef struct _SoupCacheInputStreamClass SoupCacheInputStreamClass; 22 typedef struct _SoupCacheInputStreamPrivate SoupCacheInputStreamPrivate; 23 24 struct _SoupCacheInputStreamClass 25 { 26 SoupFilterInputStreamClass parent_class; 27 28 /* signals */ 29 void (*caching_finished) (SoupCacheInputStream *istream, gsize bytes_written, GError *error); 30 }; 31 32 struct _SoupCacheInputStream 33 { 34 SoupFilterInputStream parent; 35 36 SoupCacheInputStreamPrivate *priv; 37 }; 38 39 GType soup_cache_input_stream_get_type (void) G_GNUC_CONST; 40 41 GInputStream *soup_cache_input_stream_new (GInputStream *base_stream, 42 GFile *file); 43 44 G_END_DECLS 45 46 #endif /* __SOUP_CACHE_INPUT_STREAM_H__ */ 47