summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRyo Nakamura <upa@haeena.net>2023-03-11 21:48:07 +0900
committerRyo Nakamura <upa@haeena.net>2023-03-11 21:48:07 +0900
commit74d58e986a9d4d04e48cc344f13659e062fd3799 (patch)
tree52e2890416e3560fca3531042e7497aea05c2643 /include
parent7e7bc61ff2643f42bfb9152de6a94aa1fcf3c664 (diff)
move direction from mscp_opts to mscp_init argument
Diffstat (limited to 'include')
-rw-r--r--include/mscp.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/mscp.h b/include/mscp.h
index 3bdf7ed..92a59ae 100644
--- a/include/mscp.h
+++ b/include/mscp.h
@@ -37,8 +37,6 @@
* @brief Structure configuring mscp.
*/
struct mscp_opts {
- int direction; /** copy rirection. `MSCP_DIRECTION_*` */
-
int nr_threads; /** number of copy threads */
int nr_ahead; /** number of SFTP commands on-the-fly */
size_t min_chunk_sz; /** minimum chunk size (default 64MB) */
@@ -99,12 +97,13 @@ struct mscp;
* @brief Creates a new mscp instance.
*
* @param remote_host remote host for file transer.
+ * @param direction copy direction, `MSCP_DIRECTION_L2R` or `MSCP_DIRECTION_R2L`
* @param o options for configuring mscp.
* @param s options for configuring ssh connections.
*
* @retrun A new mscp instance or NULL on error.
*/
-struct mscp *mscp_init(const char *remote_host,
+struct mscp *mscp_init(const char *remote_host, int direction,
struct mscp_opts *o, struct mscp_ssh_opts *s);
/**