mirror of
https://github.com/upa/mscp.git
synced 2026-02-27 18:54:42 +08:00
initial commit
This commit is contained in:
28
src/file.h
Normal file
28
src/file.h
Normal file
@@ -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_ */
|
||||
Reference in New Issue
Block a user