mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-09 09:27:59 +00:00
66fa6f320e
... here's a Unix port of PSFTP. Woo. (Oddly PSCP looks to be somewhat harder; there's more Windows code interleaved than there was in PSFTP.) [originally from svn r3419]
35 lines
842 B
C
35 lines
842 B
C
/*
|
|
* psftp.h: interface between psftp.c and each platform-specific
|
|
* SFTP module.
|
|
*/
|
|
|
|
#ifndef PUTTY_PSFTP_H
|
|
#define PUTTY_PSFTP_H
|
|
|
|
/*
|
|
* psftp_getcwd returns the local current directory. The returned
|
|
* string must be freed by the caller.
|
|
*/
|
|
char *psftp_getcwd(void);
|
|
|
|
/*
|
|
* psftp_lcd changes the local current directory. The return value
|
|
* is NULL on success, or else an error message which must be freed
|
|
* by the caller.
|
|
*/
|
|
char *psftp_lcd(char *newdir);
|
|
|
|
/*
|
|
* One iteration of the PSFTP event loop: wait for network data and
|
|
* process it, once.
|
|
*/
|
|
int ssh_sftp_loop_iteration(void);
|
|
|
|
/*
|
|
* The main program in psftp.c. Called from main() in the platform-
|
|
* specific code, after doing any platform-specific initialisation.
|
|
*/
|
|
int psftp_main(int argc, char *argv[]);
|
|
|
|
#endif /* PUTTY_PSFTP_H */
|