11 #ifndef __NANO_FTP_H__
12 #define __NANO_FTP_H__
14 #include <libxml/xmlversion.h>
16 #ifdef LIBXML_FTP_ENABLED
40 typedef void (*ftpListCallback) (
void *userData,
41 const char *filename,
const char *attrib,
42 const char *owner,
const char *group,
43 unsigned long size,
int links,
int year,
44 const char *month,
int day,
int hour,
54 typedef void (*ftpDataCallback) (
void *userData,
61 XMLPUBFUN
void XMLCALL
62 xmlNanoFTPInit (
void);
63 XMLPUBFUN
void XMLCALL
64 xmlNanoFTPCleanup (
void);
69 XMLPUBFUN
void * XMLCALL
70 xmlNanoFTPNewCtxt (
const char *URL);
71 XMLPUBFUN
void XMLCALL
72 xmlNanoFTPFreeCtxt (
void * ctx);
73 XMLPUBFUN
void * XMLCALL
74 xmlNanoFTPConnectTo (
const char *server,
79 XMLPUBFUN
void * XMLCALL
80 xmlNanoFTPOpen (
const char *URL);
82 xmlNanoFTPConnect (
void *ctx);
84 xmlNanoFTPClose (
void *ctx);
86 xmlNanoFTPQuit (
void *ctx);
87 XMLPUBFUN
void XMLCALL
88 xmlNanoFTPScanProxy (
const char *URL);
89 XMLPUBFUN
void XMLCALL
90 xmlNanoFTPProxy (
const char *host,
96 xmlNanoFTPUpdateURL (
void *ctx,
102 XMLPUBFUN
int XMLCALL
103 xmlNanoFTPGetResponse (
void *ctx);
104 XMLPUBFUN
int XMLCALL
105 xmlNanoFTPCheckResponse (
void *ctx);
110 XMLPUBFUN
int XMLCALL
111 xmlNanoFTPCwd (
void *ctx,
112 const char *directory);
113 XMLPUBFUN
int XMLCALL
114 xmlNanoFTPDele (
void *ctx,
117 XMLPUBFUN
int XMLCALL
118 xmlNanoFTPGetConnection (
void *ctx);
119 XMLPUBFUN
int XMLCALL
120 xmlNanoFTPCloseConnection(
void *ctx);
121 XMLPUBFUN
int XMLCALL
122 xmlNanoFTPList (
void *ctx,
123 ftpListCallback callback,
125 const char *filename);
126 XMLPUBFUN
int XMLCALL
127 xmlNanoFTPGetSocket (
void *ctx,
128 const char *filename);
129 XMLPUBFUN
int XMLCALL
130 xmlNanoFTPGet (
void *ctx,
131 ftpDataCallback callback,
133 const char *filename);
134 XMLPUBFUN
int XMLCALL
135 xmlNanoFTPRead (
void *ctx,