summaryrefslogtreecommitdiff
path: root/int-bios.h
blob: 1c05d297bd0dc3504909d434398c8ad7b1653cd8 (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(mpq_archive_t *, int);
int __mpqlib_seek(mpq_archive_t *, off_t);
int __mpqlib_read(mpq_archive_t *, void *, size_t);

#endif