summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/util/jedparse.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/util/jedparse.h')
-rw-r--r--src/lib/util/jedparse.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/lib/util/jedparse.h b/src/lib/util/jedparse.h
index f12101ca154..c2ffe7942bc 100644
--- a/src/lib/util/jedparse.h
+++ b/src/lib/util/jedparse.h
@@ -13,7 +13,10 @@
#pragma once
-#include "osdcore.h"
+#include "utilfwd.h"
+
+#include <cstddef>
+#include <cstdint>
@@ -48,13 +51,13 @@ struct jed_data
***************************************************************************/
/* parse a file (read into memory) into a jed_data structure */
-int jed_parse(const void *data, size_t length, jed_data *result);
+int jed_parse(util::random_read &src, jed_data *result);
/* output a jed_data structure into a well-formatted JED file */
size_t jed_output(const jed_data *data, void *result, size_t length);
/* parse a binary JED file (read into memory) into a jed_data structure */
-int jedbin_parse(const void *data, size_t length, jed_data *result);
+int jedbin_parse(util::read_stream &src, jed_data *result);
/* output a jed_data structure into a binary JED file */
size_t jedbin_output(const jed_data *data, void *result, size_t length);