summaryrefslogtreecommitdiff
path: root/mpq-bios.h
blob: 8eb3150bdd686b4f75833429374b242d766687b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#ifndef __MPQ_BIOS_H__
#define __MPQ_BIOS_H__

#include "inttypes.h"

struct mpq_internals_t;

typedef struct {
    char * name;

    struct mpq_internals_t * mpq_i;
} mpq_archive_t;

#ifdef __cplusplus
extern "C" {
#endif

void mpqlib_init();
mpq_archive_t * mpqlib_open_archive(const char * fname);
mpq_archive_t * mpqlib_reopen_archive(int fd);
void mpqlib_printtables(mpq_archive_t *);
void mpqlib_close_archive(mpq_archive_t *);
int mpqlib_find_hash_entry(mpq_archive_t *, const char * name, uint32_t language, uint32_t platform);

#ifdef __cplusplus
}
#endif

#endif