blob: 799a6fb300586d1d9f8336f86b75c1d1877b3bd3 [file] [log] [blame]
Daniel Veillardda07c342000-01-25 18:31:22 +00001/*
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
12extern "C" {
13#endif
14
15typedef 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);
20typedef void (*ftpDataCallback) (void *userData, const char *data, int len);
21
22
23void * xmlNanoFTPConnectTo (const char *hostname, int port);
24int xmlNanoFTPClose (void *ctx);
25void * xmlNanoFTPOpen (const char *URL);
26int xmlNanoFTPFetch (const char *URL,
27 const char *filename);
28int xmlNanoFTPRead (void *ctx,
29 void *dest,
30 int len);
31int xmlNanoFTPGet (void *ctxt, ftpDataCallback callback,
32 void *userData, const char *filename);
33#ifdef __cplusplus
34}
35#endif
36#endif /* __NANO_FTP_H__ */