aboutsummaryrefslogtreecommitdiffstats
path: root/facebook/facebook-util.h
diff options
context:
space:
mode:
authorjgeboski <jgeboski@gmail.com>2015-12-15 23:41:53 -0500
committerjgeboski <jgeboski@gmail.com>2015-12-20 13:08:39 -0500
commit2018aa1a288d5204d5d066bff672df8cb46065b9 (patch)
treecc051528a9ce8896cbc6d2b9d2bab0190cba3a35 /facebook/facebook-util.h
parentb9f3d252fc662e3ff3a216f1ea42e0d85cd34d69 (diff)
downloadbitlbee-facebook-2018aa1a288d5204d5d066bff672df8cb46065b9.tar.gz
bitlbee-facebook-2018aa1a288d5204d5d066bff672df8cb46065b9.tar.bz2
bitlbee-facebook-2018aa1a288d5204d5d066bff672df8cb46065b9.tar.xz
facebook-util: use the GConverter interface instead of zlib
Diffstat (limited to 'facebook/facebook-util.h')
-rw-r--r--facebook/facebook-util.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/facebook/facebook-util.h b/facebook/facebook-util.h
index f1eb84a..6c71dce 100644
--- a/facebook/facebook-util.h
+++ b/facebook/facebook-util.h
@@ -224,6 +224,7 @@ fb_util_zcompressed(const GByteArray *bytes);
/**
* fb_util_zcompress:
* @bytes: The #GByteArray.
+ * @error: The return location for the #GError, or #NULL.
*
* Compresses a #GByteArray with zlib. The returned #GByteArray should
* be freed with #g_byte_array_free() when no longer needed.
@@ -231,11 +232,12 @@ fb_util_zcompressed(const GByteArray *bytes);
* Returns: The compressed #GByteArray.
*/
GByteArray *
-fb_util_zcompress(const GByteArray *bytes);
+fb_util_zcompress(const GByteArray *bytes, GError **error);
/**
* fb_util_zuncompress:
* @bytes: The #GByteArray.
+ * @error: The return location for the #GError, or #NULL.
*
* Uncompresses a #GByteArray with zlib. The returned #GByteArray
* should be freed with #g_byte_array_free() when no longer needed.
@@ -243,6 +245,6 @@ fb_util_zcompress(const GByteArray *bytes);
* Returns: The uncompressed #GByteArray, or #NULL on error.
*/
GByteArray *
-fb_util_zuncompress(const GByteArray *bytes);
+fb_util_zuncompress(const GByteArray *bytes, GError **error);
#endif /* _FACEBOOK_UTIL_H_ */