diff options
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_ */ |