Last commit with db. Switching to makdown articles representation

This commit is contained in:
2020-07-03 11:22:41 +05:00
parent db9b46f041
commit 68d1c8211c
24 changed files with 427 additions and 96 deletions

View File

@ -1,3 +1,6 @@
#ifndef _FILE_H
#define _FILE_H
#include <string.h>
#include <stdlib.h>
#include <sys/sendfile.h>
@ -14,4 +17,6 @@ struct file_s
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);
struct file_s *get_file_info(char *file_path);
#endif

View File

@ -1,3 +1,10 @@
#ifndef _MIME_H
#define _MIME_H
#include <string.h>
char *get_mime_type(char *file_path);
#define DEFAULT_MIME_TYPE "application/octet-stream"
char *get_mime_type(char *file_path);
#endif