feat(parser): get config file from arg

This commit is contained in:
3lswear
2022-02-12 00:30:50 +03:00
parent 4c7712eac1
commit 29ae04e40d
10 changed files with 14 additions and 13 deletions

View File

@@ -34,9 +34,9 @@ void Server::print_epoll_events(unsigned int events)
//----------------------------------------------Send--------------------------------------------------------------------------------------------
//----------------------------------------------Configuration-----------------------------------------------------------------------------------
void Server::readConfig(void)
void Server::readConfig(char *filename)
{
TOMLMap *root = parse();
TOMLMap *root = parse(filename);
/* TOMLMap *map; */

View File

@@ -56,7 +56,7 @@ class Server
Server();
Server(std::string path);
void readConfig(void);
void readConfig(char *filename);
void setupConfig(void);
void start(void);
void end(void);