| 28 |
|
|
| 29 |
|
|
| 30 |
/***** Macros ***************************************************************/ |
/***** Macros ***************************************************************/ |
| 31 |
|
|
| 32 |
|
#ifdef __cplusplus |
| 33 |
|
extern "C" { |
| 34 |
|
#endif |
| 35 |
|
|
| 36 |
/***** Typedefs *************************************************************/ |
/***** Typedefs *************************************************************/ |
| 37 |
typedef struct |
typedef struct |
| 38 |
{ |
{ |
| 51 |
|
|
| 52 |
/***** Global variables *****************************************************/ |
/***** Global variables *****************************************************/ |
| 53 |
/***** Function prototypes **************************************************/ |
/***** Function prototypes **************************************************/ |
|
#ifdef __cplusplus |
|
|
extern "C" { |
|
|
#endif |
|
|
|
|
| 54 |
int ftp_initialize( LIBOFTP *ftp ); |
int ftp_initialize( LIBOFTP *ftp ); |
| 55 |
int ftp_open( LIBOFTP *ftp, const char *host, int port ); |
int ftp_open( LIBOFTP *ftp, const char *host, int port ); |
| 56 |
int ftp_user( LIBOFTP *ftp, const char *user, const char *pass ); |
int ftp_user( LIBOFTP *ftp, const char *user, const char *pass ); |
| 64 |
int ftp_rename( LIBOFTP *ftp, const char *from, const char *to ); |
int ftp_rename( LIBOFTP *ftp, const char *from, const char *to ); |
| 65 |
|
|
| 66 |
int ftp_get_buffer( LIBOFTP *ftp, const char *fname, char *buf, int bufsiz ); |
int ftp_get_buffer( LIBOFTP *ftp, const char *fname, char *buf, int bufsiz ); |
| 67 |
int ftp_put_buffer( LIBOFTP *ftp, char *buf, int bufsiz, const char *fname ); |
int ftp_put_buffer( LIBOFTP *ftp, const char *buf, int bufsiz, const char *fname ); |
| 68 |
int ftp_append_buffer( LIBOFTP *ftp, char *buf, int bufsiz, const char *fname ); |
int ftp_append_buffer( LIBOFTP *ftp, const char *buf, int bufsiz, const char *fname ); |
| 69 |
int ftp_get_file( LIBOFTP *ftp, const char *fname, const char *local_fname ); |
int ftp_get_file( LIBOFTP *ftp, const char *fname, const char *local_fname ); |
| 70 |
int ftp_put_file( LIBOFTP *ftp, const char *local_fname, const char *fname ); |
int ftp_put_file( LIBOFTP *ftp, const char *local_fname, const char *fname ); |
| 71 |
int ftp_append_file( LIBOFTP *ftp, const char *local_fname, const char *fname ); |
int ftp_append_file( LIBOFTP *ftp, const char *local_fname, const char *fname ); |