diff options
author | Ryo Nakamura <upa@haeena.net> | 2024-02-17 13:25:07 +0900 |
---|---|---|
committer | Ryo Nakamura <upa@haeena.net> | 2024-02-17 13:25:07 +0900 |
commit | 2f9c2c0f10f1cf81bb58b1603d089ac0209db8c4 (patch) | |
tree | 340f3c158dfb22162f06c182cf94be488a2a524b /src/checkpoint.h | |
parent | f71c7a145a4c840baff1d34e9d2c3d9e2f26d74e (diff) |
ready to implement the main-side
Diffstat (limited to 'src/checkpoint.h')
-rw-r--r-- | src/checkpoint.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/checkpoint.h b/src/checkpoint.h index 8bbb738..d0d0948 100644 --- a/src/checkpoint.h +++ b/src/checkpoint.h @@ -7,10 +7,14 @@ int checkpoint_save(const char *pathname, int dir, char *remote_host, pool *path_pool, pool *chunk_pool); -/* checkpoint_load() reads a checkpoint file (pathname). If path_pool - * and chunk_pool are NULL, This function fills only *remote and *dir. +/* checkpoint_load_meta() reads a checkpoint file (pathname) and returns + * remote host string to *remote and transfer direction to *dir. */ -int checkpoint_load(const char *pathname, char *remote, size_t len, int *dir, - pool *path_pool, pool *chunk_pool); +int checkpoint_load_remote(const char *pathname, char *remote, size_t len, int *dir); + +/* checkpoint_load_paths() reads a checkpoint file (pathname) and + * fills path_pool and chunk_pool. + */ +int checkpoint_load_paths(const char *pathname, pool *path_pool, pool *chunk_pool); #endif /* _CHECKPOINT_H_ */ |