24#ifndef PROTOCORE_FTP_SESSION_H
25#define PROTOCORE_FTP_SESSION_H
29#if PROTOCORE_ENABLE_FTP_SESSION
40 PROTOCORE_FTP_READY = 0,
63typedef size_t (*protocore_ftp_source)(
void *ctx,
size_t offset, uint8_t *buf,
size_t cap);
68 const FtpTarget *target;
69 const char *remote_path;
71 protocore_ftp_source src;
100 FtpSessionStoreArgs store_args;
102 protocore_ftp_state value;
106extern FtpSessionVars FtpSessionV;
111 void (*
const store)(uint8_t *work);
116void protocore_ftp_session_store(uint8_t *work);
122static const FtpSessionNs FtpSession __attribute__((unused)) = {
123 .store = protocore_ftp_session_store,
135uint8_t *protocore_ftp_session_span(
void);
PROTO_ENUM_PACKED
Application protocol spoken on a listener port or connection slot.
#define PROTOCORE_BEGIN_DECLS
Give a header's declarations C linkage, so their symbol names carry no parameter types.
_Bool proto_bool
The truth value.
#define PROTOCORE_END_DECLS