Daniel Veillard | da07c34 | 2000-01-25 18:31:22 +0000 | [diff] [blame^] | 1 | /* |
| 2 | * nanohttp.c: minimalist FTP implementation to fetch external subsets. |
| 3 | * |
| 4 | * See Copyright for the status of this software. |
| 5 | * |
| 6 | * Daniel.Veillard@w3.org |
| 7 | */ |
| 8 | |
| 9 | #ifndef __NANO_FTP_H__ |
| 10 | #define __NANO_FTP_H__ |
| 11 | #ifdef __cplusplus |
| 12 | extern "C" { |
| 13 | #endif |
| 14 | |
| 15 | typedef void (*ftpListCallback) (void *userData, |
| 16 | const char *filename, const char* attrib, |
| 17 | const char *owner, const char *group, |
| 18 | unsigned long size, int links, int year, |
| 19 | const char *month, int day, int minute); |
| 20 | typedef void (*ftpDataCallback) (void *userData, const char *data, int len); |
| 21 | |
| 22 | |
| 23 | void * xmlNanoFTPConnectTo (const char *hostname, int port); |
| 24 | int xmlNanoFTPClose (void *ctx); |
| 25 | void * xmlNanoFTPOpen (const char *URL); |
| 26 | int xmlNanoFTPFetch (const char *URL, |
| 27 | const char *filename); |
| 28 | int xmlNanoFTPRead (void *ctx, |
| 29 | void *dest, |
| 30 | int len); |
| 31 | int xmlNanoFTPGet (void *ctxt, ftpDataCallback callback, |
| 32 | void *userData, const char *filename); |
| 33 | #ifdef __cplusplus |
| 34 | } |
| 35 | #endif |
| 36 | #endif /* __NANO_FTP_H__ */ |