diff options
author | pixel <pixel> | 2007-07-06 16:22:15 +0000 |
---|---|---|
committer | pixel <pixel> | 2007-07-06 16:22:15 +0000 |
commit | 36fd1a3846fcb08abdf5dafcd6703586b51e369e (patch) | |
tree | 8d1601b798224bfa426c41d005f3adb2ac8ab9fe /int-bios.h | |
parent | 9e61ac4e3d435a530cdff0170975f7759c50b02d (diff) |
Various progress.
Diffstat (limited to 'int-bios.h')
-rw-r--r-- | int-bios.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/int-bios.h b/int-bios.h new file mode 100644 index 0000000..1c05d29 --- /dev/null +++ b/int-bios.h @@ -0,0 +1,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 |