Updated project structure and makefile. Started creating frontend. Created csv database interphase

This commit is contained in:
2020-06-30 12:39:50 +05:00
parent 457a52a585
commit db9b46f041
28 changed files with 643 additions and 89 deletions

17
include/file_op/file.h Normal file
View 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
View File

@ -0,0 +1,3 @@
#include <string.h>
char *get_mime_type(char *file_path);