grfio.h 639 B

1234567891011121314151617
  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(const char *fname);
  6. void grfio_final(void);
  7. void *grfio_reads(const char *fname, int *size);
  8. char *grfio_find_file(const char *fname);
  9. #define grfio_read(fn) grfio_reads(fn, NULL)
  10. unsigned long grfio_crc32(const unsigned char *buf, unsigned int len);
  11. int decode_zip(void *dest, unsigned long *destLen, const void *source, unsigned long sourceLen);
  12. int encode_zip(void *dest, unsigned long *destLen, const void *source, unsigned long sourceLen);
  13. #endif /* _GRFIO_H_ */