ReactOS
0.4.16-dev-297-gc569aee
Toggle main menu visibility
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
Functions
_
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
Variables
_
c
d
e
f
g
h
i
l
n
o
p
s
t
u
x
Typedefs
_
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
x
Enumerations
_
c
d
f
i
l
m
o
p
s
t
w
x
Enumerator
a
b
c
d
e
f
g
h
i
m
n
o
p
r
s
t
u
v
w
x
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
_
a
b
c
d
e
f
h
i
k
l
m
n
o
p
r
s
t
u
v
w
z
Enumerator
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Related Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
v
x
Files
File List
File Members
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Examples
tftp_common.h
Go to the documentation of this file.
1
14
/*
15
* Redistribution and use in source and binary forms, with or without
16
* modification,are permitted provided that the following conditions are met:
17
*
18
* 1. Redistributions of source code must retain the above copyright notice,
19
* this list of conditions and the following disclaimer.
20
* 2. Redistributions in binary form must reproduce the above copyright notice,
21
* this list of conditions and the following disclaimer in the documentation
22
* and/or other materials provided with the distribution.
23
* 3. The name of the author may not be used to endorse or promote products
24
* derived from this software without specific prior written permission.
25
*
26
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
27
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
28
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
29
* EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
30
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
31
* TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
32
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
33
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
34
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
35
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
36
*
37
* Author: Logan Gunthorpe <logang@deltatee.com>
38
*
39
*/
40
41
#ifndef LWIP_HDR_APPS_TFTP_COMMON_H
42
#define LWIP_HDR_APPS_TFTP_COMMON_H
43
44
#include "
lwip/apps/tftp_opts.h
"
45
#include "
lwip/err.h
"
46
#include "
lwip/pbuf.h
"
47
#include "
lwip/ip_addr.h
"
48
49
#ifdef __cplusplus
50
extern
"C"
{
51
#endif
52
56
struct
tftp_context
{
64
void
* (*open)(
const
char
* fname,
const
char
*
mode
,
u8_t
write
);
69
void
(*
close
)(
void
*
handle
);
77
int
(*
read
)(
void
*
handle
,
void
*
buf
,
int
bytes
);
86
int
(*
write
)(
void
*
handle
,
struct
pbuf
*
p
);
94
void
(*
error
)(
void
*
handle
,
int
err
,
const
char
*
msg
,
int
size
);
95
};
96
97
#define LWIP_TFTP_MODE_SERVER 0x01
98
#define LWIP_TFTP_MODE_CLIENT 0x02
99
#define LWIP_TFTP_MODE_CLIENTSERVER (LWIP_TFTP_MODE_SERVER | LWIP_TFTP_MODE_CLIENT)
100
101
err_t
tftp_init_common
(
u8_t
mode
,
const
struct
tftp_context
*
ctx
);
102
void
tftp_cleanup
(
void
);
103
104
#ifdef __cplusplus
105
}
106
#endif
107
108
#endif
/* LWIP_HDR_APPS_TFTP_COMMON_H */
bytes
static unsigned char bytes[4]
Definition:
adnsresfilter.c:74
msg
#define msg(x)
Definition:
auth_time.c:54
int
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *
Definition:
typeof.h:31
err.h
size
GLsizeiptr size
Definition:
glext.h:5919
mode
GLenum mode
Definition:
glext.h:6217
buf
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition:
glext.h:7751
p
GLfloat GLfloat p
Definition:
glext.h:8902
u8_t
uint8_t u8_t
Definition:
arch.h:125
err_t
s8_t err_t
Definition:
err.h:96
void
Definition:
nsiface.idl:2307
ip_addr.h
pbuf.h
err
#define err(...)
Definition:
reactos_support_code.h:30
handle
Definition:
rpc_generic.c:61
pbuf
Definition:
pbuf.h:186
tftp_context
Definition:
tftp_common.h:56
tftp_context::error
void(* error)(void *handle, int err, const char *msg, int size)
Definition:
tftp_common.h:94
tftp_context::read
int(* read)(void *handle, void *buf, int bytes)
Definition:
tftp_common.h:77
tftp_context::write
int(* write)(void *handle, struct pbuf *p)
Definition:
tftp_common.h:86
tftp_context::close
void(* close)(void *handle)
Definition:
tftp_common.h:69
tftp_init_common
err_t tftp_init_common(u8_t mode, const struct tftp_context *ctx)
tftp_cleanup
void tftp_cleanup(void)
tftp_opts.h
Trivial File Transfer Protocol (RFC 1350) implementation options.
ctx
Definition:
dbghelp_private.h:571
drivers
network
tcpip
lwip
src
include
lwip
apps
tftp_common.h
Generated on Tue Nov 26 2024 06:05:51 for ReactOS by
1.9.6