1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- #ifndef ZEPHYR_INCLUDE_NET_TFTP_H_
- #define ZEPHYR_INCLUDE_NET_TFTP_H_
- #include <zephyr.h>
- #include <net/socket.h>
- #ifdef __cplusplus
- extern "C" {
- #endif
- struct tftpc {
- uint8_t *user_buf;
- uint32_t user_buf_size;
- };
- #define TFTPC_SUCCESS 0
- #define TFTPC_DUPLICATE_DATA -1
- #define TFTPC_BUFFER_OVERFLOW -2
- #define TFTPC_UNKNOWN_FAILURE -3
- #define TFTPC_REMOTE_ERROR -4
- #define TFTPC_RETRIES_EXHAUSTED -5
- int tftp_get(struct sockaddr *server, struct tftpc *client,
- const char *remote_file, const char *mode);
- #endif
|