summaryrefslogtreecommitdiff
path: root/src/common/grfio.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/grfio.h')
-rw-r--r--src/common/grfio.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/common/grfio.h b/src/common/grfio.h
new file mode 100644
index 000000000..c5a56a14e
--- /dev/null
+++ b/src/common/grfio.h
@@ -0,0 +1,17 @@
+// Copyright (c) Athena Dev Teams - Licensed under GNU GPL
+// For more information, see LICENCE in the main folder
+
+#ifndef _GRFIO_H_
+#define _GRFIO_H_
+
+void grfio_init(const char* fname);
+void grfio_final(void);
+void* grfio_reads(const char* fname, int* size);
+char* grfio_find_file(const char* fname);
+#define grfio_read(fn) grfio_reads(fn, NULL)
+
+unsigned long grfio_crc32(const unsigned char *buf, unsigned int len);
+int decode_zip(void* dest, unsigned long* destLen, const void* source, unsigned long sourceLen);
+int encode_zip(void* dest, unsigned long* destLen, const void* source, unsigned long sourceLen);
+
+#endif /* _GRFIO_H_ */