mpd password
[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  *  $Id$
8  */
9
10 #ifndef __MIRRORS_FTP_H__
11 #define __MIRRORS_FTP_H__
12 typedef void (*ftpListCallback) (void *userData,
13                                  const char *filename, const char *attrib,
14                                  const char *owner, const char *group,
15                                  unsigned long size, int links, int year,
16                                  const char *month, int day, int minute);
17
18 typedef void (*ftpDataCallback) (void *userData,
19                                  const char *data, int len);
20
21
22 extern void initFtp(void);
23 extern int connectFtp(const char *server, int port);
24 extern int changeFtpDirectory(char *directory);
25 extern int disconnectFtp(void);
26 int getFtp(ftpDataCallback, void *, const char *);
27
28 #endif                          /* __MIRRORS_FTP_H__ */