diff options
author | pixel <pixel> | 2007-07-09 19:06:25 +0000 |
---|---|---|
committer | pixel <pixel> | 2007-07-09 19:06:25 +0000 |
commit | 18ceb4dedfd48580a5649f8c31aaf72614790e72 (patch) | |
tree | 9646cc1b0d8b7d8de545a5b9894f132846d5f223 /mpq-file.h | |
parent | fabd02b4bb0c1df2b65ea682b29087a1776954ed (diff) |
Simplified writing.
Diffstat (limited to 'mpq-file.h')
-rw-r--r-- | mpq-file.h | 16 |
1 files changed, 6 insertions, 10 deletions
@@ -3,21 +3,17 @@ #include "inttypes.h" -struct mpq_file_internals_t; +struct mpq_file_t; -typedef struct { - struct mpq_file_internals_t * mpq_i; -} mpq_file_t; - -enum mpqfile_seek_t { +enum mpqlib_file_seek_t { MPQLIB_SEEK_SET, MPQLIB_SEEK_CUR, MPQLIB_SEEK_END, }; -mpq_file_t * mpqlib_open_file(mpq_archive_t * mpq_a, int entry); -mpq_file_t * mpqlib_open_filename(mpq_archive_t * mpq_a, const char * fname); -uint32_t mpqlib_read(mpq_file_t * mpq_f, void * buffer, uint32_t size); -uint32_t mpqlib_seek(mpq_file_t, int32_t offset, enum mpqfile_seek_t); +struct mpq_file_t * mpqlib_open_file(struct mpq_archive_t * mpq_a, int entry); +struct mpq_file_t * mpqlib_open_filename(struct mpq_archive_t * mpq_a, const char * fname); +uint32_t mpqlib_read(struct mpq_file_t * mpq_f, void * buffer, uint32_t size); +uint32_t mpqlib_seek(struct mpq_file_t * mpq_f, int32_t offset, enum mpqlib_file_seek_t); #endif |