Prefer g_seekable_seek() over camel_stream_reset().
authorMatthew Barnes <mbarnes@redhat.com>
Tue, 5 Jul 2011 13:20:47 +0000 (09:20 -0400)
committerMatthew Barnes <mbarnes@redhat.com>
Tue, 5 Jul 2011 14:20:26 +0000 (10:20 -0400)
commitb0ffef9c9da333986f99bb11fb14f456342336ea
tree98e2812a92556cdab0657f94604b98f4e88234a0
parent3c08defc43747d0e0cbf0f807dab9cec9091e922
Prefer g_seekable_seek() over camel_stream_reset().

When a stream is obviously a file or memory stream (both of which
implement the GSeekable interface), use g_seekable_seek() instead of
camel_stream_reset().

This is helping me discover if it's safe to remove camel_stream_reset().
We want to eventually move to GIO streams, which have no reset method.
19 files changed:
camel/camel-cipher-context.c
camel/camel-data-wrapper.c
camel/camel-filter-driver.c
camel/camel-gpg-context.c
camel/camel-mime-part-utils.c
camel/camel-multipart-signed.c
camel/camel-smime-context.c
camel/providers/imap/camel-imap-message-cache.c
camel/providers/imapx/camel-imapx-server.c
camel/providers/imapx/camel-imapx-stream.c
camel/providers/imapx/camel-imapx-utils.c
camel/providers/nntp/camel-nntp-folder.c
camel/providers/nntp/camel-nntp-store.c
camel/providers/pop3/camel-pop3-folder.c
camel/tests/lib/messages.c
camel/tests/message/test4.c
camel/tests/mime-filter/test-tohtml.c
camel/tests/smime/pgp.c
camel/tests/smime/pkcs7.c