Next phase of general SFTP reworking: psftp.c is now a platform-
[u/mdw/putty] / psftp.h
diff --git a/psftp.h b/psftp.h
new file mode 100644 (file)
index 0000000..092d10a
--- /dev/null
+++ b/psftp.h
@@ -0,0 +1,28 @@
+/*\r
+ * psftp.h: interface between psftp.c and each platform-specific\r
+ * SFTP module.\r
+ */\r
+\r
+#ifndef PUTTY_PSFTP_H\r
+#define PUTTY_PSFTP_H\r
+\r
+/*\r
+ * psftp_getcwd returns the local current directory. The returned\r
+ * string must be freed by the caller.\r
+ */\r
+char *psftp_getcwd(void);\r
+\r
+/*\r
+ * psftp_lcd changes the local current directory. The return value\r
+ * is NULL on success, or else an error message which must be freed\r
+ * by the caller.\r
+ */\r
+char *psftp_lcd(char *newdir);\r
+\r
+/*\r
+ * One iteration of the PSFTP event loop: wait for network data and\r
+ * process it, once.\r
+ */\r
+int ssh_sftp_loop_iteration(void);\r
+\r
+#endif /* PUTTY_PSFTP_H */\r