summaryrefslogtreecommitdiff
path: root/mpq-file.h
diff options
context:
space:
mode:
authorpixel <pixel>2007-07-10 09:28:10 +0000
committerpixel <pixel>2007-07-10 09:28:10 +0000
commita3e08df7a6655e7baf3505edeed3a1c0dff5bbf8 (patch)
treec80f10b9a90268f209e5593544824e2d1a72b970 /mpq-file.h
parent8feb553794efc2a328f8ce2beed5eeacc43238f4 (diff)
Adding first prototypes for mpq-fs, and harmonization of the headers.
Diffstat (limited to 'mpq-file.h')
-rw-r--r--mpq-file.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/mpq-file.h b/mpq-file.h
index f9b17db..1cec05d 100644
--- a/mpq-file.h
+++ b/mpq-file.h
@@ -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