Last commit with db. Switching to makdown articles representation
This commit is contained in:
@ -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
|
@ -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
|
Reference in New Issue
Block a user