diff options
Diffstat (limited to 'camel/camel-seekable-substream.h')
-rw-r--r-- | camel/camel-seekable-substream.h | 23 |
1 files changed, 3 insertions, 20 deletions
diff --git a/camel/camel-seekable-substream.h b/camel/camel-seekable-substream.h index 4710f5fd5a..75a7a41cac 100644 --- a/camel/camel-seekable-substream.h +++ b/camel/camel-seekable-substream.h @@ -1,7 +1,5 @@ /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ -/* camel-seekable-substream.h : stream */ - -/* +/* camel-seekable-substream.h : stream * * Author : * Bertrand Guiheneuf <bertrand@helixcode.com> @@ -38,52 +36,37 @@ extern "C" { #include "camel-types.h" #include "camel-seekable-stream.h" - #define CAMEL_SEEKABLE_SUBSTREAM_TYPE (camel_seekable_substream_get_type ()) #define CAMEL_SEEKABLE_SUBSTREAM(obj) (GTK_CHECK_CAST((obj), CAMEL_SEEKABLE_SUBSTREAM_TYPE, CamelSeekableSubstream)) #define CAMEL_SEEKABLE_SUBSTREAM_CLASS(k) (GTK_CHECK_CLASS_CAST ((k), CAMEL_SEEKABLE_SUBSTREAM_TYPE, CamelSeekableSubstreamClass)) #define CAMEL_IS_SEEKABLE_SUBSTREAM(o) (GTK_CHECK_TYPE((o), CAMEL_SEEKABLE_SUBSTREAM_TYPE)) - - - struct _CamelSeekableSubstream { CamelSeekableStream parent_object; /* --**-- Private fields --**-- */ CamelSeekableStream *parent_stream; - guint32 inf_bound; /* first valid position */ - gint64 sup_bound; /* first invalid position */ - gboolean eos; }; - - typedef struct { CamelSeekableStreamClass parent_class; /* Virtual methods */ void (*init_with_seekable_stream_and_bounds) (CamelSeekableSubstream *seekable_substream, CamelSeekableStream *parent_stream, - guint32 inf_bound, - gint64 sup_bound); - + off_t start, off_t end); } CamelSeekableSubstreamClass; - - /* Standard Gtk function */ GtkType camel_seekable_substream_get_type (void); - /* public methods */ /* obtain a new seekable substream */ CamelStream * camel_seekable_substream_new_with_seekable_stream_and_bounds (CamelSeekableStream *parent_stream, - guint32 inf_bound, - gint64 sup_bound); + off_t start, off_t end); #ifdef __cplusplus } |