diff options
author | Determinant <[email protected]> | 2015-05-30 20:52:05 +0800 |
---|---|---|
committer | Determinant <[email protected]> | 2015-05-30 20:52:05 +0800 |
commit | 5edaa7d5649a2e124496159f7e8a14edab4f7484 (patch) | |
tree | d880fd9587acb87701921583ada3b6aae65bbbda /io/chunk_file.h | |
parent | f10330fd95aa87cf6b21d292cf54c77bacfd2e40 (diff) |
rename param file to chunk file (intend to generalize it)
Diffstat (limited to 'io/chunk_file.h')
-rw-r--r-- | io/chunk_file.h | 22 |
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 |