diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2002-02-28 10:28:12 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2002-02-28 10:28:12 +0800 |
commit | e1fa571225dcf92a75e3ff4a84c7153e32b3664f (patch) | |
tree | 39c9b03cde721b756f11925e5c411b557e883321 /camel/camel-mime-filter-save.h | |
parent | 7ac88d86319e2ef5b43ad7413f759bd1423ecd21 (diff) | |
download | gsoc2013-evolution-e1fa571225dcf92a75e3ff4a84c7153e32b3664f.tar gsoc2013-evolution-e1fa571225dcf92a75e3ff4a84c7153e32b3664f.tar.gz gsoc2013-evolution-e1fa571225dcf92a75e3ff4a84c7153e32b3664f.tar.bz2 gsoc2013-evolution-e1fa571225dcf92a75e3ff4a84c7153e32b3664f.tar.lz gsoc2013-evolution-e1fa571225dcf92a75e3ff4a84c7153e32b3664f.tar.xz gsoc2013-evolution-e1fa571225dcf92a75e3ff4a84c7153e32b3664f.tar.zst gsoc2013-evolution-e1fa571225dcf92a75e3ff4a84c7153e32b3664f.zip |
Don't #include camel-mime-filter-save.h, we don't use it.
2002-02-27 Jeffrey Stedfast <fejj@ximian.com>
* camel-folder-summary.h: Don't #include camel-mime-filter-save.h,
we don't use it.
* camel-file-utils.c: Fixed a few 'might be used uninitialized'
warnings which were real problems.
* camel-mime-part-utils.c
(camel_mime_part_construct_content_from_parser): Save the raw mime
stream for any/all signed parts.
* camel-mime-part.c (camel_mime_part_init): Initialize our raw
stream to NULL.
(camel_mime_part_finalize): Unref our raw stream, if we have one.
(write_to_stream): If we have a raw stream, write that out instead
of re-encoding.
* camel-mime-filter-save.[c,h]: Rewritten to save to a stream
rather than a file.
svn path=/trunk/; revision=15867
Diffstat (limited to 'camel/camel-mime-filter-save.h')
-rw-r--r-- | camel/camel-mime-filter-save.h | 50 |
1 files changed, 26 insertions, 24 deletions
diff --git a/camel/camel-mime-filter-save.h b/camel/camel-mime-filter-save.h index 08a507a87d..f1e54eca5b 100644 --- a/camel/camel-mime-filter-save.h +++ b/camel/camel-mime-filter-save.h @@ -1,28 +1,33 @@ +/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ /* - * Copyright (C) 2000 Ximian Inc. + * Authors: Jeffrey Stedfast <fejj@ximian.com> * - * Authors: Michael Zucchi <notzed@ximian.com> + * Copyright 2002 Ximian, Inc. (www.ximian.com) * - * This program is free software; you can redistribute it and/or - * modify it under the terms of version 2 of the GNU General Public - * License as published by the Free Software Foundation. + * 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. * - * This program 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 - * General Public License for more details. + * This program 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Street #330, Boston, MA 02111-1307, USA. * - * You should have received a copy of the GNU General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., 59 Temple Place - Suite 330, - * Boston, MA 02111-1307, USA. */ -#ifndef _CAMEL_MIME_FILTER_SAVE_H -#define _CAMEL_MIME_FILTER_SAVE_H + +#ifndef __CAMEL_MIME_FILTER_SAVE_H__ +#define __CAMEL_MIME_FILTER_SAVE_H__ #include <camel/camel-mime-filter.h> +#include <camel/camel-seekable-stream.h> +#define CAMEL_MIME_FILTER_SAVE_TYPE (camel_mime_filter_save_get_type ()) #define CAMEL_MIME_FILTER_SAVE(obj) CAMEL_CHECK_CAST (obj, camel_mime_filter_save_get_type (), CamelMimeFilterSave) #define CAMEL_MIME_FILTER_SAVE_CLASS(klass) CAMEL_CHECK_CLASS_CAST (klass, camel_mime_filter_save_get_type (), CamelMimeFilterSaveClass) #define CAMEL_IS_MIME_FILTER_SAVE(obj) CAMEL_CHECK_TYPE (obj, camel_mime_filter_save_get_type ()) @@ -31,20 +36,17 @@ typedef struct _CamelMimeFilterSaveClass CamelMimeFilterSaveClass; struct _CamelMimeFilterSave { CamelMimeFilter parent; - - struct _CamelMimeFilterSavePrivate *priv; - - char *filename; - int fd; + + CamelStream *stream; }; struct _CamelMimeFilterSaveClass { CamelMimeFilterClass parent_class; }; -guint camel_mime_filter_save_get_type (void); -CamelMimeFilterSave *camel_mime_filter_save_new (void); +CamelType camel_mime_filter_save_get_type (void); -CamelMimeFilterSave *camel_mime_filter_save_new_name (const char *name, int flags, int mode); +CamelMimeFilter *camel_mime_filter_save_new (void); +CamelMimeFilter *camel_mime_filter_save_new_with_stream (CamelStream *stream); -#endif /* ! _CAMEL_MIME_FILTER_SAVE_H */ +#endif /* __CAMEL_MIME_FILTER_SAVE_H__ */ |