diff options
author | Determinant <[email protected]> | 2015-05-24 15:39:24 +0800 |
---|---|---|
committer | Determinant <[email protected]> | 2015-05-24 15:39:24 +0800 |
commit | e21e2d9480c83fee13b2e721417cc04fe8036ced (patch) | |
tree | c45e19379badce0815bdbdbd58bc8df27cc5da7d /io/param.h | |
parent | 0e250c43b62b7593edc163d0510d229010361707 (diff) |
add param file implementation
Diffstat (limited to 'io/param.h')
-rw-r--r-- | io/param.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/io/param.h b/io/param.h new file mode 100644 index 0000000..e5841b8 --- /dev/null +++ b/io/param.h @@ -0,0 +1,22 @@ +#ifndef NERV_LAYER_FILE_H +#define NERV_LAYER_FILE_H + +extern const char *nerv_param_file_tname; +extern const char *nerv_param_file_handle_tname; +extern const char *nerv_param_chunk_info_tname; +extern const char *nerv_param_chunk_data_tname; + +typedef struct ParamFileHandle { + FILE *fp; +} ParamFileHandle; + +typedef struct ParamChunkInfo { + off_t offset, length; +} ParamChunkInfo; + +typedef struct ParamChunkData { + FILE *fp; + char *data; +} ParamChunkData; + +#endif |