| 46 |
|
|
| 47 |
/***** Global variables *****************************************************/ |
/***** Global variables *****************************************************/ |
| 48 |
/***** Function prototypes **************************************************/ |
/***** Function prototypes **************************************************/ |
| 49 |
|
#ifdef __cplusplus |
| 50 |
|
extern "C" { |
| 51 |
|
#endif |
| 52 |
|
|
| 53 |
int ftp_initialize( LIBOFTP *ftp ); |
int ftp_initialize( LIBOFTP *ftp ); |
| 54 |
int ftp_open( LIBOFTP *ftp, const char *host, int port ); |
int ftp_open( LIBOFTP *ftp, const char *host, int port ); |
| 55 |
int ftp_user( LIBOFTP *ftp, const char *user, const char *pass ); |
int ftp_user( LIBOFTP *ftp, const char *user, const char *pass ); |
| 57 |
int ftp_timeout( LIBOFTP *ftp, int sec ); |
int ftp_timeout( LIBOFTP *ftp, int sec ); |
| 58 |
int ftp_type( LIBOFTP *ftp, const char *type ); |
int ftp_type( LIBOFTP *ftp, const char *type ); |
| 59 |
int ftp_quit( LIBOFTP *ftp ); |
int ftp_quit( LIBOFTP *ftp ); |
| 60 |
|
int ftp_reset( LIBOFTP *ftp ); |
| 61 |
int ftp_site( LIBOFTP *ftp, const char *cmdline ); |
int ftp_site( LIBOFTP *ftp, const char *cmdline ); |
| 62 |
int ftp_delete( LIBOFTP *ftp, const char *fname ); |
int ftp_delete( LIBOFTP *ftp, const char *fname ); |
| 63 |
int ftp_rename( LIBOFTP *ftp, const char *from, const char *to ); |
int ftp_rename( LIBOFTP *ftp, const char *from, const char *to ); |
| 64 |
|
|
| 65 |
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 ); |
| 66 |
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 ); |
| 67 |
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 ); |
| 68 |
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 ); |
| 69 |
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 ); |
| 70 |
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 ); |
| 71 |
|
int ftp_get_descriptor( LIBOFTP *ftp, const char *fname ); |
| 72 |
|
int ftp_get_descriptor_close( LIBOFTP *ftp, int desc ); |
| 73 |
|
int ftp_put_descriptor( LIBOFTP *ftp, const char *fname ); |
| 74 |
|
int ftp_put_descriptor_close( LIBOFTP *ftp, int desc ); |
| 75 |
|
int ftp_append_descriptor( LIBOFTP *ftp, const char *fname ); |
| 76 |
|
int ftp_append_descriptor_close( LIBOFTP *ftp, int desc ); |
| 77 |
|
|
| 78 |
int ftp_list( LIBOFTP *ftp, const char *fglob, char *buf, int bufsiz ); |
int ftp_list( LIBOFTP *ftp, const char *fglob, char *buf, int bufsiz ); |
| 79 |
int ftp_nlist( LIBOFTP *ftp, const char *fglob, char *buf, int bufsiz ); |
int ftp_nlist( LIBOFTP *ftp, const char *fglob, char *buf, int bufsiz ); |
| 87 |
/***** Inline functions *****************************************************/ |
/***** Inline functions *****************************************************/ |
| 88 |
|
|
| 89 |
|
|
| 90 |
|
#ifdef __cplusplus |
| 91 |
|
} |
| 92 |
|
#endif |
| 93 |
|
|
| 94 |
#endif |
#endif |