]> asedeno.scripts.mit.edu Git - PuTTY.git/blobdiff - psftp.h
Jacob points out that I introduced a bug in PSFTP when I did the
[PuTTY.git] / psftp.h
diff --git a/psftp.h b/psftp.h
index 0034f84a54454f9deaba331f104baf99e5b37298..af8917dbe0484904d308bfa5066ac0c2605348d8 100644 (file)
--- a/psftp.h
+++ b/psftp.h
@@ -32,6 +32,19 @@ void get_file_times(char *filename, unsigned long *mtime,
  */
 int ssh_sftp_loop_iteration(void);
 
+/*
+ * Read a command line for PSFTP from standard input. Caller must
+ * free.
+ * 
+ * If `backend_required' is TRUE, should also listen for activity
+ * at the backend (rekeys, clientalives, unexpected closures etc)
+ * and respond as necessary, and if the backend closes it should
+ * treat this as a failure condition. If `backend_required' is
+ * FALSE, a back end is not (intentionally) active at all (e.g.
+ * psftp before an `open' command).
+ */
+char *ssh_sftp_get_cmdline(char *prompt, int backend_required);
+
 /*
  * The main program in psftp.c. Called from main() in the platform-
  * specific code, after doing any platform-specific initialisation.