evince r3441 - trunk/libdocument
- From: chpe svn gnome org
- To: svn-commits-list gnome org
- Subject: evince r3441 - trunk/libdocument
- Date: Sun, 15 Feb 2009 13:51:48 +0000 (UTC)
Author: chpe
Date: Sun Feb 15 13:51:48 2009
New Revision: 3441
URL: http://svn.gnome.org/viewvc/evince?rev=3441&view=rev
Log:
More docs
Modified:
trunk/libdocument/ev-file-helpers.c
Modified: trunk/libdocument/ev-file-helpers.c
==============================================================================
--- trunk/libdocument/ev-file-helpers.c (original)
+++ trunk/libdocument/ev-file-helpers.c Sun Feb 15 13:51:48 2009
@@ -391,6 +391,24 @@
return uri_dst;
}
+/**
+ * ev_file_uncompress:
+ * @uri: a file URI
+ * @type: the compression type
+ * @error: a #GError location to store an error, or %NULL
+ *
+ * Uncompresses the file at @uri.
+ *
+ * If @type is %EV_COMPRESSION_NONE, it does nothing and returns %NULL.
+ *
+ * Otherwise, it returns the filename of a
+ * temporary file containing the decompressed data from the file at @uri.
+ * On error it returns %NULL and fills in @error.
+ *
+ * It is the caller's responsibility to unlink the temp file after use.
+ *
+ * Returns: a newly allocated string URI, or %NULL on error
+ */
gchar *
ev_file_uncompress (const gchar *uri,
EvCompressionType type,
@@ -401,6 +419,25 @@
return compression_run (uri, type, FALSE, error);
}
+/**
+ * ev_file_compress:
+ * @uri: a file URI
+ * @type: the compression type
+ * @error: a #GError location to store an error, or %NULL
+ *
+ * Compresses the file at @uri.
+
+ * If @type is %EV_COMPRESSION_NONE, it does nothing and returns %NULL.
+ *
+ * Otherwise, it returns the filename of a
+ * temporary file containing the compressed data from the file at @uri.
+ *
+ * On error it returns %NULL and fills in @error.
+ *
+ * It is the caller's responsibility to unlink the temp file after use.
+ *
+ * Returns: a newly allocated string URI, or %NULL on error
+ */
gchar *
ev_file_compress (const gchar *uri,
EvCompressionType type,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]