summaryrefslogblamecommitdiff
path: root/src/common/grfio.h
blob: aba9db391bff2c6d6c7e0f21f999e5f8ce26021d (plain) (tree)
1
2
3
4
5
6
7
8
9







                                                            
                                                                   


                                             




                                                                                                                   


                                                             
// 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

#define grfio_read(fn) grfio_reads(fn, NULL)

int grfio_size(char*);			// GRFIO data file size get
unsigned long grfio_crc32(const 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_