ReactOS  0.4.15-dev-5500-g82cf6c2
nanoftp.h
Go to the documentation of this file.
1 /*
2  * Summary: minimal FTP implementation
3  * Description: minimal FTP implementation allowing to fetch resources
4  * like external subset. This module is DEPRECATED, do not
5  * use any of its functions.
6  *
7  * Copy: See Copyright for the status of this software.
8  *
9  * Author: Daniel Veillard
10  */
11 
12 #ifndef __NANO_FTP_H__
13 #define __NANO_FTP_H__
14 
15 #include <libxml/xmlversion.h>
16 
17 #ifdef LIBXML_FTP_ENABLED
18 
19 /* Needed for portability to Windows 64 bits */
20 #if defined(_WIN32)
21 #include <winsock2.h>
22 #else
23 
28 #define SOCKET int
29 
35 #undef INVALID_SOCKET
36 #define INVALID_SOCKET (-1)
37 #endif
38 
39 #ifdef __cplusplus
40 extern "C" {
41 #endif
42 
61 typedef void (*ftpListCallback) (void *userData,
62  const char *filename, const char *attrib,
63  const char *owner, const char *group,
64  unsigned long size, int links, int year,
65  const char *month, int day, int hour,
66  int minute);
75 typedef void (*ftpDataCallback) (void *userData,
76  const char *data,
77  int len);
78 
79 /*
80  * Init
81  */
83 XMLPUBFUN void XMLCALL
84  xmlNanoFTPInit (void);
86 XMLPUBFUN void XMLCALL
87  xmlNanoFTPCleanup (void);
88 
89 /*
90  * Creating/freeing contexts.
91  */
93 XMLPUBFUN void * XMLCALL
94  xmlNanoFTPNewCtxt (const char *URL);
96 XMLPUBFUN void XMLCALL
97  xmlNanoFTPFreeCtxt (void * ctx);
99 XMLPUBFUN void * XMLCALL
100  xmlNanoFTPConnectTo (const char *server,
101  int port);
102 /*
103  * Opening/closing session connections.
104  */
106 XMLPUBFUN void * XMLCALL
107  xmlNanoFTPOpen (const char *URL);
109 XMLPUBFUN int XMLCALL
110  xmlNanoFTPConnect (void *ctx);
112 XMLPUBFUN int XMLCALL
113  xmlNanoFTPClose (void *ctx);
115 XMLPUBFUN int XMLCALL
116  xmlNanoFTPQuit (void *ctx);
118 XMLPUBFUN void XMLCALL
119  xmlNanoFTPScanProxy (const char *URL);
121 XMLPUBFUN void XMLCALL
122  xmlNanoFTPProxy (const char *host,
123  int port,
124  const char *user,
125  const char *passwd,
126  int type);
128 XMLPUBFUN int XMLCALL
129  xmlNanoFTPUpdateURL (void *ctx,
130  const char *URL);
131 
132 /*
133  * Rather internal commands.
134  */
136 XMLPUBFUN int XMLCALL
137  xmlNanoFTPGetResponse (void *ctx);
139 XMLPUBFUN int XMLCALL
140  xmlNanoFTPCheckResponse (void *ctx);
141 
142 /*
143  * CD/DIR/GET handlers.
144  */
146 XMLPUBFUN int XMLCALL
147  xmlNanoFTPCwd (void *ctx,
148  const char *directory);
150 XMLPUBFUN int XMLCALL
151  xmlNanoFTPDele (void *ctx,
152  const char *file);
153 
156  xmlNanoFTPGetConnection (void *ctx);
158 XMLPUBFUN int XMLCALL
159  xmlNanoFTPCloseConnection(void *ctx);
161 XMLPUBFUN int XMLCALL
162  xmlNanoFTPList (void *ctx,
163  ftpListCallback callback,
164  void *userData,
165  const char *filename);
168  xmlNanoFTPGetSocket (void *ctx,
169  const char *filename);
171 XMLPUBFUN int XMLCALL
172  xmlNanoFTPGet (void *ctx,
173  ftpDataCallback callback,
174  void *userData,
175  const char *filename);
177 XMLPUBFUN int XMLCALL
178  xmlNanoFTPRead (void *ctx,
179  void *dest,
180  int len);
181 
182 #ifdef __cplusplus
183 }
184 #endif
185 #endif /* LIBXML_FTP_ENABLED */
186 #endif /* __NANO_FTP_H__ */
struct png_info_def **typedef void(__cdecl typeof(png_destroy_read_struct))(struct png_struct_def **
Definition: typeof.h:49
static rfbScreenInfoPtr server
Definition: vnc.c:74
#define XML_DEPRECATED
Definition: xmlversion.h:494
static DOUBLE day(DOUBLE time)
Definition: date.c:117
char * host
Definition: whois.c:55
#define XMLPUBFUN
Definition: xmlexports.h:61
const char * filename
Definition: ioapi.h:137
GLboolean GLuint group
Definition: glext.h:11120
GLsizeiptr size
Definition: glext.h:5919
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
Definition: gl.h:1950
GLenum GLsizei len
Definition: glext.h:6722
#define XMLCALL
static char * dest
Definition: rtl.c:135
UINT_PTR SOCKET
Definition: winsock.h:47
GLuint GLuint GLsizei GLenum type
Definition: gl.h:1545
static IPrintDialogCallback callback
Definition: printdlg.c:326
int month[12]
Definition: systime.c:13
USHORT port
Definition: uri.c:228
void user(int argc, const char *argv[])
Definition: cmds.c:1350
Definition: fci.c:126