summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpixel <pixel>2007-07-09 19:14:34 +0000
committerpixel <pixel>2007-07-09 19:14:34 +0000
commita47cbe621febe11586f22c28a4507d74930d1737 (patch)
tree515cfc498a6249710edcdc114cf26c5344d9423d
parentd71a0bb87551712359702851576b3b01132622f6 (diff)
ioctl removs some dumb stuff...
-rw-r--r--int-bios.h14
-rw-r--r--mpq-bios.c11
2 files changed, 0 insertions, 25 deletions
diff --git a/int-bios.h b/int-bios.h
index 10a4a44..9fdee7e 100644
--- a/int-bios.h
+++ b/int-bios.h
@@ -6,20 +6,6 @@
#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);
diff --git a/mpq-bios.c b/mpq-bios.c
index bcea83d..abac013 100644
--- a/mpq-bios.c
+++ b/mpq-bios.c
@@ -56,8 +56,6 @@ typedef struct {
uint32_t file_block_index;
} hash_t;
-/* Defined in int-bios.h
-
typedef struct {
uint64_t block_offset;
uint32_t block_size;
@@ -65,8 +63,6 @@ typedef struct {
uint32_t flags;
} block_t;
-*/
-
struct mpq_archive_t {
int fd;
int closeit;
@@ -340,13 +336,6 @@ int mpqlib_find_hash_entry_by_hash(struct mpq_archive_t * mpq_a, uint32_t hA, ui
return -1;
}
-const block_t * __mpqlib_get_block_entry(struct mpq_archive_t * mpq_a, int entry) {
- if ((entry >= mpq_a->block_table_entries) || (entry < 0))
- return NULL;
-
- return mpq_a->blocks + entry;
-}
-
int __mpqlib_seek(struct mpq_archive_t * mpq_a, off_t off) {
if (lseek64(mpq_a->fd, off, SEEK_SET) != off)
return 0;