And just to prove that psftp.c really is now platform-independent
[u/mdw/putty] / psftp.h
CommitLineData
d6cc41e6 1/*\r
2 * psftp.h: interface between psftp.c and each platform-specific\r
3 * SFTP module.\r
4 */\r
5\r
6#ifndef PUTTY_PSFTP_H\r
7#define PUTTY_PSFTP_H\r
8\r
9/*\r
10 * psftp_getcwd returns the local current directory. The returned\r
11 * string must be freed by the caller.\r
12 */\r
13char *psftp_getcwd(void);\r
14\r
15/*\r
16 * psftp_lcd changes the local current directory. The return value\r
17 * is NULL on success, or else an error message which must be freed\r
18 * by the caller.\r
19 */\r
20char *psftp_lcd(char *newdir);\r
21\r
22/*\r
23 * One iteration of the PSFTP event loop: wait for network data and\r
24 * process it, once.\r
25 */\r
26int ssh_sftp_loop_iteration(void);\r
27\r
b51259f6 28/*\r
29 * The main program in psftp.c. Called from main() in the platform-\r
30 * specific code, after doing any platform-specific initialisation.\r
31 */\r
32int psftp_main(int argc, char *argv[]);\r
33\r
d6cc41e6 34#endif /* PUTTY_PSFTP_H */\r