summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile2
-rw-r--r--mpq-fs.c11
-rw-r--r--mpq-fs.h2
3 files changed, 14 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 8479930..bd5721a 100644
--- a/Makefile
+++ b/Makefile
@@ -2,7 +2,7 @@ CC = gcc
LD = gcc
AR = ar rcs
-CPPFLAGS = -g -Wall -Werror -D_FILE_OFFSET_BITS=64
+CPPFLAGS = -g -Wall -Werror -D_FILE_OFFSET_BITS=64 -I.
LDFLAGS = -g -lssl
SOURCE_LIST = \
diff --git a/mpq-fs.c b/mpq-fs.c
index 87901a0..acc2648 100644
--- a/mpq-fs.c
+++ b/mpq-fs.c
@@ -1,2 +1,13 @@
+#include <stdlib.h>
#include "mpq-fs.h"
+void mpqlib_fs_add_archive(struct mpq_archive_t * mpq_a) {
+}
+
+void mpqlib_fs_attach_listfile(struct mpq_archive_t * mpq_a, const char * listfile) {
+ mpqlib_fs_add_archive(mpq_a);
+}
+
+struct mpq_file_t * mpqlib_fs_open(const char * fname) {
+ return NULL;
+}
diff --git a/mpq-fs.h b/mpq-fs.h
index 9d65269..4d247b6 100644
--- a/mpq-fs.h
+++ b/mpq-fs.h
@@ -11,6 +11,8 @@ extern "C" {
void mpqlib_fs_add_archive(struct mpq_archive_t *);
void mpqlib_fs_attach_listfile(struct mpq_archive_t *, const char *);
+struct mpq_file_t * mpqlib_fs_open(const char *);
+
#ifdef __cplusplus
}
#endif