aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-seekable-substream.h
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2000-04-20 06:50:32 +0800
committerDan Winship <danw@src.gnome.org>2000-04-20 06:50:32 +0800
commit52d16fdd6399ddb106d42a94d8b517cd5b6621d2 (patch)
tree116bc18d5d6b7c81d8d78fa6326a5504fa86771e /camel/camel-seekable-substream.h
parent435ef42f7108cecefd0ed36bb4929d5bc4f1fb68 (diff)
downloadgsoc2013-evolution-52d16fdd6399ddb106d42a94d8b517cd5b6621d2.tar.gz
gsoc2013-evolution-52d16fdd6399ddb106d42a94d8b517cd5b6621d2.tar.zst
gsoc2013-evolution-52d16fdd6399ddb106d42a94d8b517cd5b6621d2.zip
clean up a lot. (eos): When testing for end-of-stream, reset the parent
* camel-seekable-substream.c: clean up a lot. (eos): When testing for end-of-stream, reset the parent position before testing if it is at end-of-stream, since either (a) it may have been seek'ed to eos by someone else, or (b) we may have been seek'ed away from eos and it hasn't been synced yet. svn path=/trunk/; revision=2519
Diffstat (limited to 'camel/camel-seekable-substream.h')
-rw-r--r--camel/camel-seekable-substream.h23
1 files changed, 10 insertions, 13 deletions
diff --git a/camel/camel-seekable-substream.h b/camel/camel-seekable-substream.h
index 72f04601c8..4710f5fd5a 100644
--- a/camel/camel-seekable-substream.h
+++ b/camel/camel-seekable-substream.h
@@ -1,15 +1,15 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/* camel-seekable-substream.h : stream */
-/*
+/*
*
- * Author :
+ * Author :
* Bertrand Guiheneuf <bertrand@helixcode.com>
*
* Copyright 1999, 2000 Helix Code, Inc. (http://www.helixcode.com)
*
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
@@ -52,24 +52,21 @@ struct _CamelSeekableSubstream
CamelSeekableStream parent_object;
/* --**-- Private fields --**-- */
- CamelSeekableStream *parent_stream; /* the stream this substream uses */
- guint32 cur_pos; /* current postion in the stream */
+ CamelSeekableStream *parent_stream;
guint32 inf_bound; /* first valid position */
gint64 sup_bound; /* first invalid position */
- gboolean open;
gboolean eos;
-
};
typedef struct {
CamelSeekableStreamClass parent_class;
-
- /* Virtual methods */
- void (*init_with_seekable_stream_and_bounds) (CamelSeekableSubstream *seekable_substream,
+
+ /* Virtual methods */
+ void (*init_with_seekable_stream_and_bounds) (CamelSeekableSubstream *seekable_substream,
CamelSeekableStream *parent_stream,
- guint32 inf_bound,
+ guint32 inf_bound,
gint64 sup_bound);
} CamelSeekableSubstreamClass;
@@ -85,7 +82,7 @@ GtkType camel_seekable_substream_get_type (void);
/* obtain a new seekable substream */
CamelStream *
camel_seekable_substream_new_with_seekable_stream_and_bounds (CamelSeekableStream *parent_stream,
- guint32 inf_bound,
+ guint32 inf_bound,
gint64 sup_bound);
#ifdef __cplusplus
e to 4.10.1olivierd2013-03-043-4/+11 * Bump PORTREVISION for Thunar related portsolivierd2012-12-311-1/+1 * Bump PORTREVISION for libexo-related portsolivierd2012-12-311-1/+1 * Bump PORTREVISION for Thunar related portsolivierd2012-12-151-1/+1 * Bump PORTREVISION for libexo-related portsolivierd2012-12-151-10/+7 * - update png to 1.5.10dinoex2012-06-011-0/+1 * - Convert complete XFCE to new options frameworkmiwi2012-05-311-6/+7 * - Welcome XFCE 4.10 to the portstree!miwi2012-05-266-120/+17 * - Update to 4.8.2miwi2011-10-283-4/+6 * Consistify spelling of "Xfce", and some other projects while there.rene2011-10-271-1/+1 * Re-assign to the Xfce team.rene2011-10-231-1/+1 * Chase libnotify, libproxy and webkit-gtk2 shlib changes, and fix build where ...kwm2011-08-241-2/+2 * update x11/libexo to 0.6.2oliver2011-07-271-1/+1 * update thunar to 1.2.2oliver2011-06-071-1/+1 * update libexo to 0.6.1oliver2011-06-071-0/+1 * fix the compilation if thunar support is disabledoliver2011-04-281-0/+12 * update to 4.8.2oliver2011-04-253-152/+182 * fix 100% CPU usage under some circumstancesoliver2011-03-081-0/+12 * fix 100% CPU usage under some circumstancesoliver2011-03-081-5/+4 * bump PORTREVISION because of changed dependencies in my previous commitoliver2011-03-051-0/+1 * libexo is required in any caseoliver2011-03-051-8/+5 * Welcome XFCE 4.8 to the portstree!oliver2011-03-033-156/+93 * update xfce to 4.6.2oliver2010-05-313-5/+59 * Bounce PORTREVISION for gettext-related ports. Have fun, ya'll.ade2010-05-311-1/+1 * - update to 1.4.1dinoex2010-03-281-1/+1 * - update to jpeg-8dinoex2010-02-051-1/+1 * bump PORTREVISION for the recent update ofoliver2010-01-101-1/+1 * - bump all port that indirectly depends on libjpeg and have not yet been bump...dinoex2009-07-311-0/+1 * update xfce to 4.6.1oliver2009-05-063-7/+16 * fix pkg-plist after last updateoliver2009-03-031-1/+30 * add libxfce4menu to the list of dependencies to get the opportunity to setupoliver2009-03-031-1/+2 * update Xfce to 4.6oliver2009-03-033-79/+18 * update xfce to 4.4.3oliver2008-10-313-5/+11 * Bump portrevision due to upgrade of devel/gettext.edwin2008-06-061-1/+1 * - Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORGmiwi2008-03-241-1/+0 * update xfce4 to 4.4.2oliver2008-02-133-5/+9 * - Fix a typo in bsd.sites.mk along with all the places it affectedsat2007-10-261-1/+1 * - Welcome X.org 7.2 \o/.flz2007-05-201-1/+1 * update xfce to 4.4.1oliver2007-04-123-10/+13 * Switch to using new files Mk/bsd.ocaml.mk [1] and Mk/bsd.xfce.mk [2].linimon2007-03-141-2/+5 * fix objformat problem more properlyoliver2007-02-061-3/+2 * fix build (by using libtool:15) with recent CURRENTs where objformat went awayoliver2007-02-041-0/+1 * enhance the descriptionoliver2007-01-291-5/+7 * Import xfce 4.4oliver2007-01-234-80/+61 * fix build with non-standard X11BASEoliver2006-11-281-2/+2 * Chase the GNOME X11BASE to LOCALBASE move, and fix the build with themarcus2006-10-142-6/+36 * Remove USE_REINPLACE from categories starting with Xedwin2006-05-131-1/+0 * Conversion to a single libtool environment.ade2006-02-232-2/+8 * SHA256ifyedwin2006-01-241-0/+1 * Replace ugly "@unexec rmdir %D... 2>/dev/null || true" with @dirrmtryedwin2006-01-221-20/+20