diff options
Diffstat (limited to 'nerv/io/chunk_file.h')
-rw-r--r-- | nerv/io/chunk_file.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/nerv/io/chunk_file.h b/nerv/io/chunk_file.h new file mode 100644 index 0000000..9bae59d --- /dev/null +++ b/nerv/io/chunk_file.h @@ -0,0 +1,23 @@ +#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; + int closed; +} ChunkFileHandle; + +typedef struct ChunkInfo { + off_t offset, length; +} ChunkInfo; + +typedef struct ChunkData { + FILE *fp; + char *data; +} ChunkData; + +#endif |