From 18ceb4dedfd48580a5649f8c31aaf72614790e72 Mon Sep 17 00:00:00 2001 From: pixel Date: Mon, 9 Jul 2007 19:06:25 +0000 Subject: Simplified writing. --- mpq-bios.h | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) (limited to 'mpq-bios.h') diff --git a/mpq-bios.h b/mpq-bios.h index 138367d..a30ef16 100644 --- a/mpq-bios.h +++ b/mpq-bios.h @@ -3,11 +3,7 @@ #include "inttypes.h" -struct mpq_internals_t; - -typedef struct { - struct mpq_internals_t * mpq_i; -} mpq_archive_t; +struct mpq_archive_t; #define MPQ_FLAGS_ISFILE 0x80000000 #define MPQ_FLAGS_HAS_META 0x04000000 @@ -32,12 +28,12 @@ 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); -uint64_t mpqlib_ioctl(mpq_archive_t *, enum mpqlib_ioctl_t command, int entry); +struct mpq_archive_t * mpqlib_open_archive(const char * fname); +struct mpq_archive_t * mpqlib_reopen_archive(int fd); +void mpqlib_printtables(struct mpq_archive_t *); +void mpqlib_close_archive(struct mpq_archive_t *); +int mpqlib_find_hash_entry(struct mpq_archive_t *, const char * name, uint32_t language, uint32_t platform); +uint64_t mpqlib_ioctl(struct mpq_archive_t *, enum mpqlib_ioctl_t command, int entry); #ifdef __cplusplus } -- cgit v1.2.3