blob: 10a4a44fb2038a485ea4e896df0a481ab7fc831b (
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
|
#ifndef __INT_BIOS_H__
#define __INT_BIOS_H__
#include <unistd.h>
#include <sys/types.h>
#include "mpq-bios.h"
typedef struct {
uint64_t block_offset;
uint32_t block_size;
uint32_t file_size;
uint32_t flags;
} block_t;
#define FLAGS_FILE_COMP_IMPLODE 0x00000100
#define FLAGS_FILE_COMP_MULTI 0x00000200
#define FLAGS_FILE_COMPRESSED 0x0000FF00
#define FLAGS_FILE_ENCRYPTED 0x00010000
#define FLAGS_FILE_EXISTS 0x80000000
const block_t * __mpqlib_get_block_entry(struct mpq_archive_t *, int);
int __mpqlib_seek(struct mpq_archive_t *, off_t);
int __mpqlib_read(struct mpq_archive_t *, void *, size_t);
#endif
|