-/* os_uncompress: Uncompress a string with zlib. */
-int os_uncompress(char *src, char *dst, int src_size, int dst_size);
+/* Uncompress a string with zlib
+ * src: the source string to uncompress
+ * dst: the destination buffer for the uncompressed string, will be
+ * null-terminated on success
+ * src_size: the length of the source string
+ * dst_size: the size of the destination buffer
+ * Returns 0 on failure, else the length of the uncompressed string
+ */
+unsigned long int os_zlib_uncompress(const char *src, char *dst,
+ unsigned long int src_size,
+ unsigned long int dst_size);