Updated project structure and makefile. Started creating frontend. Created csv database interphase
This commit is contained in:
17
include/file_op/file.h
Normal file
17
include/file_op/file.h
Normal file
@ -0,0 +1,17 @@
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include <sys/sendfile.h>
|
||||
#include <sys/stat.h>
|
||||
#include <fcntl.h>
|
||||
#include <unistd.h>
|
||||
|
||||
struct file_s
|
||||
{
|
||||
char *path;
|
||||
off_t size;
|
||||
int fd;
|
||||
};
|
||||
|
||||
char *gen_file_path(char *path);
|
||||
int send_file(int cli_fd, struct file_s *file);
|
||||
struct file_s *get_file_info(char *file_path);
|
3
include/file_op/mime.h
Normal file
3
include/file_op/mime.h
Normal file
@ -0,0 +1,3 @@
|
||||
#include <string.h>
|
||||
|
||||
char *get_mime_type(char *file_path);
|
Reference in New Issue
Block a user