diff options
author | Ryo Nakamura <upa@haeena.net> | 2024-04-10 18:40:05 +0900 |
---|---|---|
committer | Ryo Nakamura <upa@haeena.net> | 2024-04-10 20:57:11 +0900 |
commit | 2bfd599ad9264253c455f63adbdf4607db6b2bb7 (patch) | |
tree | 2cf291c856dcc04e38026cc9172fca61a9e8f37a /src/path.h | |
parent | 9b8ba69a61f09fbcd40574d0b912846eeaaaa1e2 (diff) |
add -L limit bitrate option (#14)
Diffstat (limited to 'src/path.h')
-rw-r--r-- | src/path.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -9,6 +9,7 @@ #include <pool.h> #include <atomic.h> #include <ssh.h> +#include <bwlimit.h> struct path { char *path; /* file path */ @@ -66,6 +67,7 @@ void free_path(struct path *p); /* copy a chunk. either src_sftp or dst_sftp is not null, and another is null */ int copy_chunk(struct chunk *c, sftp_session src_sftp, sftp_session dst_sftp, - int nr_ahead, int buf_sz, bool preserve_ts, size_t *counter); + int nr_ahead, int buf_sz, bool preserve_ts, struct bwlimit *bw, + size_t *counter); #endif /* _PATH_H_ */ |