summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/zlibsupport.h
diff options
context:
space:
mode:
Diffstat (limited to 'mdk-stage1/zlibsupport.h')
-rw-r--r--mdk-stage1/zlibsupport.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/mdk-stage1/zlibsupport.h b/mdk-stage1/zlibsupport.h
new file mode 100644
index 000000000..be3c7296a
--- /dev/null
+++ b/mdk-stage1/zlibsupport.h
@@ -0,0 +1,11 @@
+#ifndef _ZLIB_SUPPORT_H
+#define _ZLIB_SUPPORT_H
+
+/* Grab file. Decompresses if that is supported. Returns NULL on error. */
+extern void *grab_file(const char *filename, unsigned long *size);
+extern void *grab_fd(int fd, unsigned long *size);
+
+/* Free it up. */
+extern void release_file(void *data, unsigned long size);
+
+#endif /* _ZLIB_SUPPORT_H */