Next phase of general SFTP reworking: psftp.c is now a platform-
[sgt/putty] / psftp.h
1 /*
2 * psftp.h: interface between psftp.c and each platform-specific
3 * SFTP module.
4 */
5
6 #ifndef PUTTY_PSFTP_H
7 #define PUTTY_PSFTP_H
8
9 /*
10 * psftp_getcwd returns the local current directory. The returned
11 * string must be freed by the caller.
12 */
13 char *psftp_getcwd(void);
14
15 /*
16 * psftp_lcd changes the local current directory. The return value
17 * is NULL on success, or else an error message which must be freed
18 * by the caller.
19 */
20 char *psftp_lcd(char *newdir);
21
22 /*
23 * One iteration of the PSFTP event loop: wait for network data and
24 * process it, once.
25 */
26 int ssh_sftp_loop_iteration(void);
27
28 #endif /* PUTTY_PSFTP_H */