summaryrefslogtreecommitdiff
path: root/src/mscp.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mscp.h')
-rw-r--r--src/mscp.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/mscp.h b/src/mscp.h
index f18478f..556bec8 100644
--- a/src/mscp.h
+++ b/src/mscp.h
@@ -52,6 +52,11 @@ struct mscp_ssh_opts {
bool enable_nagle;
};
+struct mscp_stats {
+ size_t total; /* total bytes to be transferred */
+ size_t done; /* total bytes transferred */
+};
+
struct mscp;
/* initialize and return a mscp instance with option validation */
@@ -75,6 +80,12 @@ int mscp_prepare(struct mscp *m);
/* start to copy files */
int mscp_start(struct mscp *m);
+/* stop copying files */
+void mscp_stop(struct mscp *m);
+
+/* get stats */
+void mscp_get_stats(struct mscp *m, struct mscp_stats *s);
+
/* cleanup mscp instance. after mscp_cleanup(), process can restart
* from mscp_connect() with the same setting. */
void mscp_cleanup(struct mscp *m);