dum de dum
[monky] / ftp.h
1 /*
2  * ftp.h: interface for basic handling of an FTP command connection
3  *        to check for directory availability. No transfer is needed.
4  *
5  *  Reference: RFC 959
6  */
7
8 #ifndef __MIRRORS_FTP_H__
9 #define __MIRRORS_FTP_H__
10 typedef void (*ftpListCallback) (void *userData,
11                 const char *filename, const char* attrib,
12                 const char *owner, const char *group,
13                 unsigned long size, int links, int year,
14                 const char *month, int day, int minute);
15
16 typedef void (*ftpDataCallback) (void *userData,
17                 const char *data, int len);
18
19
20 extern void initFtp(void);
21 extern int connectFtp(const char *server, int port);
22 extern int changeFtpDirectory(char *directory);
23 extern int disconnectFtp(void);
24 int getFtp(ftpDataCallback, void *, const char *);
25
26 #endif /* __MIRRORS_FTP_H__ */