ReactOS 0.4.15-dev-8119-g4fb2fdb
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
28#define SOCKET int
35#undef INVALID_SOCKET
36#define INVALID_SOCKET (-1)
37#endif
38
39#ifdef __cplusplus
40extern "C" {
41#endif
42
61typedef 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);
75typedef void (*ftpDataCallback) (void *userData,
76 const char *data,
77 int len);
78
79/*
80 * Init
81 */
84 xmlNanoFTPInit (void);
87 xmlNanoFTPCleanup (void);
88
89/*
90 * Creating/freeing contexts.
91 */
93XMLPUBFUN void * XMLCALL
94 xmlNanoFTPNewCtxt (const char *URL);
97 xmlNanoFTPFreeCtxt (void * ctx);
99XMLPUBFUN void * XMLCALL
100 xmlNanoFTPConnectTo (const char *server,
101 int port);
102/*
103 * Opening/closing session connections.
104 */
106XMLPUBFUN void * XMLCALL
107 xmlNanoFTPOpen (const char *URL);
110 xmlNanoFTPConnect (void *ctx);
113 xmlNanoFTPClose (void *ctx);
116 xmlNanoFTPQuit (void *ctx);
119 xmlNanoFTPScanProxy (const char *URL);
122 xmlNanoFTPProxy (const char *host,
123 int port,
124 const char *user,
125 const char *passwd,
126 int type);
129 xmlNanoFTPUpdateURL (void *ctx,
130 const char *URL);
131
132/*
133 * Rather internal commands.
134 */
137 xmlNanoFTPGetResponse (void *ctx);
140 xmlNanoFTPCheckResponse (void *ctx);
141
142/*
143 * CD/DIR/GET handlers.
144 */
147 xmlNanoFTPCwd (void *ctx,
148 const char *directory);
151 xmlNanoFTPDele (void *ctx,
152 const char *file);
153
156 xmlNanoFTPGetConnection (void *ctx);
159 xmlNanoFTPCloseConnection(void *ctx);
162 xmlNanoFTPList (void *ctx,
163 ftpListCallback callback,
164 void *userData,
165 const char *filename);
168 xmlNanoFTPGetSocket (void *ctx,
169 const char *filename);
172 xmlNanoFTPGet (void *ctx,
173 ftpDataCallback callback,
174 void *userData,
175 const char *filename);
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__ */
void user(int argc, const char *argv[])
Definition: cmds.c:1350
static DOUBLE day(DOUBLE time)
Definition: date.c:117
USHORT port
Definition: uri.c:228
static const WCHAR month[12][4]
Definition: session.c:2150
#define XMLCALL
GLuint GLuint GLsizei GLenum type
Definition: gl.h:1545
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
Definition: gl.h:1950
GLsizeiptr size
Definition: glext.h:5919
GLboolean GLuint group
Definition: glext.h:11120
GLenum GLsizei len
Definition: glext.h:6722
const char * filename
Definition: ioapi.h:137
static IPrintDialogCallback callback
Definition: printdlg.c:326
static char * dest
Definition: rtl.c:135
Definition: fci.c:127
static rfbScreenInfoPtr server
Definition: vnc.c:74
char * host
Definition: whois.c:55
UINT_PTR SOCKET
Definition: winsock.h:47
#define XMLPUBFUN
Definition: xmlexports.h:61
#define XML_DEPRECATED
Definition: xmlversion.h:494