grfio.h 869 B

1234567891011121314151617181920212223
  1. // Copyright (c) Athena Dev Teams - Licensed under GNU GPL
  2. // For more information, see LICENCE in the main folder
  3. #ifndef _GRFIO_H_
  4. #define _GRFIO_H_
  5. void grfio_init(char*); // GRFIO Initialize
  6. void grfio_final(void); // GRFIO Finalize
  7. void* grfio_reads(char*,int*); // GRFIO data file read & size get
  8. char *grfio_find_file(char *fname);
  9. char *grfio_alloc_ptr(char *fname);
  10. #define grfio_read(fn) grfio_reads(fn, NULL)
  11. int grfio_size(char*); // GRFIO data file size get
  12. unsigned long grfio_crc32(const unsigned char *buf, unsigned int len);
  13. int decode_zip(unsigned char *dest, unsigned long* destLen, const unsigned char* source, unsigned long sourceLen);
  14. int encode_zip(unsigned char *dest, unsigned long* destLen, const unsigned char* source, unsigned long sourceLen);
  15. int deflate_file (const char *source, const char *filename);
  16. #endif /* _GRFIO_H_ */