summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/kernel/kernel/utils.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/kernel/kernel/utils.h b/include/kernel/kernel/utils.h
index cf56a71..2211547 100644
--- a/include/kernel/kernel/utils.h
+++ b/include/kernel/kernel/utils.h
@@ -64,6 +64,16 @@ int sceHmacSha1Digest(const unsigned char *key, uint32_t key_len, const void *pl
int sceHmacSha224Digest(const unsigned char *key, uint32_t key_len, const void *plain, uint32_t len, char *result);
int sceHmacSha256Digest(const unsigned char *key, uint32_t key_len, const void *plain, uint32_t len, char *result);
+/**
+ * @param[out] dst - dst buf
+ * @param[in] dst_size - Size when decompressed
+ * @param[in] src - Gzip compressed data
+ * @param[out] crc32 - crc32 when decompressed
+ *
+ * @return dst_size on success, < 0 on error.
+ */
+int sceGzipDecompress(void *dst, int dst_size, const void *src, int *crc32);
+
#ifdef __cplusplus
}
#endif