Add tftp_custom_write and test functions
This commit is contained in:
2023-11-13 16:03:14 +01:00
parent c97d24e578
commit 623cf3749c
7 changed files with 54 additions and 3 deletions

View File

@@ -7,6 +7,9 @@
#ifndef PROJECT_TFTP_H
#define PROJECT_TFTP_H
#include <tftp_server.h>
#ifndef TESTING
#include "lcd_api.h"
#endif
#ifdef __cplusplus
extern "C" {
#endif
@@ -30,7 +33,7 @@ void tftp_server_init(void);
void tftp_server_deinit(void);
void tftp_custom_fseek(tftp_custom_file_t* handle, size_t offset, int whence);
size_t tftp_custom_fread(void* buf, size_t bytes, tftp_custom_file_t* handle);
size_t tftp_custom_fwrite(void* buf, size_t bytes, tftp_custom_file_t* handle);
size_t tftp_custom_fwrite(const void* buf, size_t bytes, tftp_custom_file_t* handle);
#ifdef __cplusplus
}