summaryrefslogtreecommitdiff
path: root/src/common/grfio.h
blob: d5334ccf3b440412912a503871e357f125f24ee0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Copyright (c) Athena Dev Teams - Licensed under GNU GPL
// For more information, see LICENCE in the main folder

#ifndef	_GRFIO_H_
#define	_GRFIO_H_

#include <zlib.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);

#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);

#endif /* _GRFIO_H_ */