blob: d94a2cf30cbd47b43ab7e8bb7cee17a9cee270ea (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#ifndef __MPQ_FILE_H__
#define __MPQ_FILE_H__
#include "inttypes.h"
struct mpq_file_internals_t;
typedef struct {
struct mpq_file_internals_t * mpq_i;
} mpq_file_t;
enum mpqfile_seek_t {
MPQLIB_SEEK_SET,
MPQLIB_SEEK_CUR,
MPQLIB_SEEK_END,
};
mpq_file_t * mpqlib_open_file(mpq_archive_t * mpq_a, int entry);
mpq_file_t * mpqlib_open_filename(mpq_archive_t * mpq_a, const char * fname);
uint32_t mpqlib_read(mpq_file_t * mpq_f, void * buffer, uint32_t size);
uint32_t mpqlib_seek(mpq_file_t, int32_t offset, enum mpqfile_seek_t);
#endif
|