Change to my own struct for the virtual files
init the index.txt from the tftp_server_init
add tftp_server_deinit + add to docs
This commit is contained in:
2023-11-11 00:46:02 +01:00
parent e1118908d9
commit d35c79480e
3 changed files with 70 additions and 14 deletions

View File

@@ -16,5 +16,13 @@
#define TFTP_READ 0
typedef struct tftp_custom_file_s {
char* data;
size_t len;
char*name;
size_t ofset;
}tftp_custom_file_t;
void tftp_server_init(void);
void tftp_server_deinit(void);
#endif // PROJECT_TFTP_H