diff options
author | DracoRPG <DracoRPG@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-02-28 00:57:29 +0000 |
---|---|---|
committer | DracoRPG <DracoRPG@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-02-28 00:57:29 +0000 |
commit | 0c948878b116ea28d073ee960d2942e30f076e43 (patch) | |
tree | ff0593486351f34506d9db41558e826a3b1a628a /src/tool/grfio.h | |
parent | 6e1e6ab9d7089465960a5c4077595a85cf2ce72f (diff) | |
download | hercules-0c948878b116ea28d073ee960d2942e30f076e43.tar.gz hercules-0c948878b116ea28d073ee960d2942e30f076e43.tar.bz2 hercules-0c948878b116ea28d073ee960d2942e30f076e43.tar.xz hercules-0c948878b116ea28d073ee960d2942e30f076e43.zip |
Added experimental new mapcache generator
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9928 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/tool/grfio.h')
-rw-r--r-- | src/tool/grfio.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/tool/grfio.h b/src/tool/grfio.h new file mode 100644 index 000000000..72aceeda9 --- /dev/null +++ b/src/tool/grfio.h @@ -0,0 +1,23 @@ +// 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(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_ */
+
|