core: Clean up checksumming

Don't expose GChecksum in APIs.  Add a new stream class which allows
us to pass an input stream somewhere, but gather a checksum as it's
read.

Move some bits of the internals towards binary csums.
This commit is contained in:
Colin Walters committed 2012-04-11 22:04:06 -04:00
1 parent fa4cbc8b89
commit f15c184584
17 files changed
+605 -274

No files matched your search

+9 -3
View File
@@ -61,14 +61,20 @@ gboolean ot_gfile_load_contents_utf8 (GFile *file,
GCancellable *cancellable,
GError **error);
gboolean ot_gio_splice_and_checksum (GOutputStream *out,
gboolean ot_gio_splice_get_checksum (GOutputStream *out,
GInputStream *in,
GChecksum **out_checksum,
guchar **out_csum,
GCancellable *cancellable,
GError **error);
gboolean ot_gio_splice_update_checksum (GOutputStream *out,
GInputStream *in,
GChecksum *checksum,
GCancellable *cancellable,
GError **error);
gboolean ot_gio_checksum_stream (GInputStream *in,
GChecksum **out_checksum,
guchar **out_csum,
GCancellable *cancellable,
GError **error);