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
29 lines
491 B
C
29 lines
491 B
C
/**
|
|
* @file tftp.h
|
|
* @brief tftp server
|
|
* @author Speetjens S.
|
|
*/
|
|
|
|
#ifndef PROJECT_TFTP_H
|
|
#define PROJECT_TFTP_H
|
|
#define LOGGER_LEVEL_ALL
|
|
#include <tftp_server.h>
|
|
#include "log.h"
|
|
#include "llfs.h"
|
|
#include <stdlib.h>
|
|
#include <stdio.h>
|
|
#include <string.h>
|
|
|
|
#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
|