aboutsummaryrefslogtreecommitdiff
path: root/io/chunk_file.h
diff options
context:
space:
mode:
Diffstat (limited to 'io/chunk_file.h')
-rw-r--r--io/chunk_file.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/io/chunk_file.h b/io/chunk_file.h
new file mode 100644
index 0000000..9ece117
--- /dev/null
+++ b/io/chunk_file.h
@@ -0,0 +1,22 @@
+#ifndef NERV_LAYER_FILE_H
+#define NERV_LAYER_FILE_H
+
+extern const char *nerv_chunk_file_tname;
+extern const char *nerv_chunk_file_handle_tname;
+extern const char *nerv_chunk_info_tname;
+extern const char *nerv_chunk_data_tname;
+
+typedef struct ChunkFileHandle {
+ FILE *fp;
+} ChunkFileHandle;
+
+typedef struct ChunkInfo {
+ off_t offset, length;
+} ChunkInfo;
+
+typedef struct ChunkData {
+ FILE *fp;
+ char *data;
+} ChunkData;
+
+#endif