summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/util/corefile.h
diff options
context:
space:
mode:
author Nathan Woods <npwoods@mess.org>2008-09-06 22:47:05 +0000
committer Nathan Woods <npwoods@mess.org>2008-09-06 22:47:05 +0000
commitf1d5b2a1ec6e5b00420f0f6486c379dcb51b7e0c (patch)
tree32b30bfa87d44cba2eb608a70f3bcb6cedd14de7 /src/lib/util/corefile.h
parentc0b1419a96b73208e33b94ecf742eb2479a8126d (diff)
Added a core_fopen_ram_copy() call, similar to core_fopen_ram() except that it
copies the memory
Diffstat (limited to 'src/lib/util/corefile.h')
-rw-r--r--src/lib/util/corefile.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/util/corefile.h b/src/lib/util/corefile.h
index c2dda7ec43e..cf9571cb9be 100644
--- a/src/lib/util/corefile.h
+++ b/src/lib/util/corefile.h
@@ -49,6 +49,9 @@ file_error core_fopen(const char *filename, UINT32 openflags, core_file **file);
/* open a RAM-based "file" using the given data and length (read-only) */
file_error core_fopen_ram(const void *data, size_t length, UINT32 openflags, core_file **file);
+/* open a RAM-based "file" using the given data and length (read-only), copying the data */
+file_error core_fopen_ram_copy(const void *data, size_t length, UINT32 openflags, core_file **file);
+
/* close an open file */
void core_fclose(core_file *file);