summaryrefslogtreecommitdiff
path: root/src/common/grfio.h
diff options
context:
space:
mode:
authorblackhole89 <blackhole89@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-05-04 17:31:41 +0000
committerblackhole89 <blackhole89@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-05-04 17:31:41 +0000
commitd6d6fdd7aec99a7d3a074b0720a17b00ef1f6c29 (patch)
tree2d5c63036bb11be1976e88ae50206a0ca0e6af8e /src/common/grfio.h
parent5a9235d7367fd15827114f3b439027e322e70ffb (diff)
downloadhercules-d6d6fdd7aec99a7d3a074b0720a17b00ef1f6c29.tar.gz
hercules-d6d6fdd7aec99a7d3a074b0720a17b00ef1f6c29.tar.bz2
hercules-d6d6fdd7aec99a7d3a074b0720a17b00ef1f6c29.tar.xz
hercules-d6d6fdd7aec99a7d3a074b0720a17b00ef1f6c29.zip
adding read-from-GRF/GAT back in. Read Changelog-Trunk.txt for more details.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@10455 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/common/grfio.h')
-rw-r--r--src/common/grfio.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/common/grfio.h b/src/common/grfio.h
index ce2b75150..408dafd1b 100644
--- a/src/common/grfio.h
+++ b/src/common/grfio.h
@@ -4,7 +4,19 @@
#ifndef _GRFIO_H_
#define _GRFIO_H_
+void grfio_init(char*); // GRFIO Initialize
+void grfio_final(void); // GRFIO Finalize
+void* grfio_reads(char*,int*); // GRFIO data file read & size get
+char *grfio_find_file(char *fname);
+char *grfio_alloc_ptr(char *fname);
+
+#define grfio_read(fn) grfio_reads(fn, NULL)
+
+int grfio_size(char*); // GRFIO data file size get
+unsigned long grfio_crc32(const unsigned char *buf, unsigned int len);
+
int decode_zip(unsigned char *dest, unsigned long* destLen, const unsigned char* source, unsigned long sourceLen);
int encode_zip(unsigned char *dest, unsigned long* destLen, const unsigned char* source, unsigned long sourceLen);
+int deflate_file (const char *source, const char *filename);
#endif /* _GRFIO_H_ */