summaryrefslogtreecommitdiff
path: root/src/mscp.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mscp.h')
-rw-r--r--src/mscp.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mscp.h b/src/mscp.h
index 556bec8..ab195bf 100644
--- a/src/mscp.h
+++ b/src/mscp.h
@@ -63,6 +63,12 @@ struct mscp;
struct mscp *mscp_init(const char *remote_host,
struct mscp_opts *o, struct mscp_ssh_opts *s);
+/* return a fd for read message from mscp */
+int mscp_msg_fd(struct mscp *m);
+
+/* get message for the most recent error (not thread safe) */
+const char *mscp_get_error();
+
/* establish the first SFTP session. mscp_prepare() and mscp_start()
* requires mscp_connect() beforehand */
int mscp_connect(struct mscp *m);