diff options
author | Ryo Nakamura <upa@haeena.net> | 2022-10-15 21:59:25 +0900 |
---|---|---|
committer | Ryo Nakamura <upa@haeena.net> | 2022-10-15 21:59:25 +0900 |
commit | 303a9eb974f884b5f9f7e14fdd83a821f21e32e6 (patch) | |
tree | 91c535639e39e7f204db7a194854f4865dfff184 /src/file.h |
initial commit
Diffstat (limited to 'src/file.h')
-rw-r--r-- | src/file.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/file.h b/src/file.h new file mode 100644 index 0000000..7c5168d --- /dev/null +++ b/src/file.h @@ -0,0 +1,28 @@ +#ifndef _FILE_H_ +#define _FILE_H_ + +struct path { + char *path; + bool remote; +}; + +struct file { + struct path src; /* copy source */ + struct path dst; /* copy desitnation */ + size_t size; /* size of this file */ +}; + +struct chunk { + struct file *f; + size_t off; /* offset of this chunk on the file f */ + size_t len; /* length of this chunk */ +}; + +struct file *file_expand(char **src_array, char *dst) +{ + /* return array of files expanded from sources and dst */ + return NULL; +} + + +#endif /* _FILE_H_ */ |