diff options
author | pixel <pixel> | 2007-07-10 09:28:10 +0000 |
---|---|---|
committer | pixel <pixel> | 2007-07-10 09:28:10 +0000 |
commit | a3e08df7a6655e7baf3505edeed3a1c0dff5bbf8 (patch) | |
tree | c80f10b9a90268f209e5593544824e2d1a72b970 /mpq-file.h | |
parent | 8feb553794efc2a328f8ce2beed5eeacc43238f4 (diff) |
Adding first prototypes for mpq-fs, and harmonization of the headers.
Diffstat (limited to 'mpq-file.h')
-rw-r--r-- | mpq-file.h | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -1,7 +1,7 @@ #ifndef __MPQ_FILE_H__ #define __MPQ_FILE_H__ -#include "inttypes.h" +#include <stdint.h> struct mpq_file_t; @@ -11,10 +11,18 @@ enum mpqlib_file_seek_t { MPQLIB_SEEK_END, }; +#ifdef __cplusplus +extern "C" { +#endif + 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); void mpqlib_close(struct mpq_file_t * mpq_f); 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); +#ifdef __cplusplus +} +#endif + #endif |