aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-stream-fs.h
diff options
context:
space:
mode:
authorbertrand <bertrand@helixcode.com>2000-01-24 23:07:18 +0800
committerBertrand Guiheneuf <bertrand@src.gnome.org>2000-01-24 23:07:18 +0800
commit98e15c6b5c3757241e3a4017df85ee0e42a5f947 (patch)
treefb7153111faa14d8091793ae258a2a140baf70e7 /camel/camel-stream-fs.h
parentf64b3bb5f2d3f4fa6e05fcc9223aff78fd8c2f12 (diff)
downloadgsoc2013-evolution-98e15c6b5c3757241e3a4017df85ee0e42a5f947.tar
gsoc2013-evolution-98e15c6b5c3757241e3a4017df85ee0e42a5f947.tar.gz
gsoc2013-evolution-98e15c6b5c3757241e3a4017df85ee0e42a5f947.tar.bz2
gsoc2013-evolution-98e15c6b5c3757241e3a4017df85ee0e42a5f947.tar.lz
gsoc2013-evolution-98e15c6b5c3757241e3a4017df85ee0e42a5f947.tar.xz
gsoc2013-evolution-98e15c6b5c3757241e3a4017df85ee0e42a5f947.tar.zst
gsoc2013-evolution-98e15c6b5c3757241e3a4017df85ee0e42a5f947.zip
add recipient_list to the recipients, not recipients_list. I don't know
2000-01-24 bertrand <bertrand@helixcode.com> * camel/camel-recipient.c (camel_recipient_table_add_list): add recipient_list to the recipients, not recipients_list. I don't know what that variable was doing here. 2000-01-23 bertrand <bertrand@helixcode.com> * camel/camel-store.c (camel_store_get_session): added a public get_session method. * camel/providers/mbox/camel-mbox-summary.c (camel_mbox_save_summary): (camel_mbox_load_summary): load/save message sizes in the summary file * camel/providers/mbox/camel-mbox-summary.h: added a size field to the message information structure. * camel/providers/mbox/camel-mbox-utils.c (parsed_information_to_mbox_summary): copy message size to the mbox summary information too. * camel/camel-stream-fs.c (_seek): updated to work with bounded fs streams. (_write): ditto. (_read): ditto. * camel/camel-stream-fs.h (struct ): added the cur_pos, inf_bound and sup_bound members to allow for bounded fs stream. * camel/camel-stream-fs.c (_set_bounds): new func. (_init_with_fd_and_bounds): idem. (_init_with_name_and_bounds): idem. New functions to allow the usage of bounded fs streams. The bounded fs stream allow, for example, to make a stream from a message stored in an mbox file. svn path=/trunk/; revision=1620
Diffstat (limited to 'camel/camel-stream-fs.h')
-rw-r--r--camel/camel-stream-fs.h16
1 files changed, 14 insertions, 2 deletions
diff --git a/camel/camel-stream-fs.h b/camel/camel-stream-fs.h
index 85df8f3a2c..dc559bc7c9 100644
--- a/camel/camel-stream-fs.h
+++ b/camel/camel-stream-fs.h
@@ -52,9 +52,14 @@ typedef enum
typedef struct
{
+
CamelStream parent_object;
- gchar *name;
- int fd;
+ gchar *name; /* name of the underlying file */
+ gint fd; /* file descriptor on the underlying file */
+ guint32 cur_pos; /* current postion in the stream */
+ guint32 inf_bound; /* first valid position */
+ gint64 sup_bound; /* last valid position, -1 means, no sup bound */
+
} CamelStreamFs;
@@ -64,7 +69,10 @@ typedef struct {
/* Virtual methods */
void (*init_with_fd) (CamelStreamFs *stream_fs, int fd);
+ void (*init_with_fd_and_bounds) (CamelStreamFs *stream_fs, int fd, guint32 inf_bound, gint64 sup_bound);
void (*init_with_name) (CamelStreamFs *stream_fs, const gchar *name, CamelStreamFsMode mode);
+ void (*init_with_name_and_bounds) (CamelStreamFs *stream_fs, const gchar *name,
+ CamelStreamFsMode mode, guint32 inf_bound, gint64 sup_bound);
} CamelStreamFsClass;
@@ -76,7 +84,11 @@ GtkType camel_stream_fs_get_type (void);
/* public methods */
CamelStream *camel_stream_fs_new_with_name (const gchar *name, CamelStreamFsMode mode);
+CamelStream *camel_stream_fs_new_with_name_and_bounds (const gchar *name, CamelStreamFsMode mode,
+ guint32 inf_bound, gint64 sup_bound);
CamelStream *camel_stream_fs_new_with_fd (int fd);
+CamelStream *camel_stream_fs_new_with_fd_and_bounds (int fd,
+ guint32 inf_bound, gint64 sup_bound);
#ifdef __cplusplus
}