123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143 |
-
- #ifndef __NANO_FTP_H__
- #define __NANO_FTP_H__
- #include <libxml/xmlversion.h>
- #ifdef LIBXML_FTP_ENABLED
- #ifdef __cplusplus
- extern "C" {
- #endif
- typedef void (*ftpListCallback) (void *userData,
- const char *filename, const char *attrib,
- const char *owner, const char *group,
- unsigned long size, int links, int year,
- const char *month, int day, int hour,
- int minute);
- typedef void (*ftpDataCallback) (void *userData,
- const char *data,
- int len);
- XMLPUBFUN void XMLCALL
- xmlNanoFTPInit (void);
- XMLPUBFUN void XMLCALL
- xmlNanoFTPCleanup (void);
- XMLPUBFUN void * XMLCALL
- xmlNanoFTPNewCtxt (const char *URL);
- XMLPUBFUN void XMLCALL
- xmlNanoFTPFreeCtxt (void * ctx);
- XMLPUBFUN void * XMLCALL
- xmlNanoFTPConnectTo (const char *server,
- int port);
- XMLPUBFUN void * XMLCALL
- xmlNanoFTPOpen (const char *URL);
- XMLPUBFUN int XMLCALL
- xmlNanoFTPConnect (void *ctx);
- XMLPUBFUN int XMLCALL
- xmlNanoFTPClose (void *ctx);
- XMLPUBFUN int XMLCALL
- xmlNanoFTPQuit (void *ctx);
- XMLPUBFUN void XMLCALL
- xmlNanoFTPScanProxy (const char *URL);
- XMLPUBFUN void XMLCALL
- xmlNanoFTPProxy (const char *host,
- int port,
- const char *user,
- const char *passwd,
- int type);
- XMLPUBFUN int XMLCALL
- xmlNanoFTPUpdateURL (void *ctx,
- const char *URL);
- XMLPUBFUN int XMLCALL
- xmlNanoFTPGetResponse (void *ctx);
- XMLPUBFUN int XMLCALL
- xmlNanoFTPCheckResponse (void *ctx);
- XMLPUBFUN int XMLCALL
- xmlNanoFTPCwd (void *ctx,
- const char *directory);
- XMLPUBFUN int XMLCALL
- xmlNanoFTPDele (void *ctx,
- const char *file);
- XMLPUBFUN int XMLCALL
- xmlNanoFTPGetConnection (void *ctx);
- XMLPUBFUN int XMLCALL
- xmlNanoFTPCloseConnection(void *ctx);
- XMLPUBFUN int XMLCALL
- xmlNanoFTPList (void *ctx,
- ftpListCallback callback,
- void *userData,
- const char *filename);
- XMLPUBFUN int XMLCALL
- xmlNanoFTPGetSocket (void *ctx,
- const char *filename);
- XMLPUBFUN int XMLCALL
- xmlNanoFTPGet (void *ctx,
- ftpDataCallback callback,
- void *userData,
- const char *filename);
- XMLPUBFUN int XMLCALL
- xmlNanoFTPRead (void *ctx,
- void *dest,
- int len);
- #ifdef __cplusplus
- }
- #endif
- #endif
- #endif
|