diff options
Diffstat (limited to 'include/inspircd_io.h')
-rw-r--r-- | include/inspircd_io.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/include/inspircd_io.h b/include/inspircd_io.h index 748aa53ba..09d5e5674 100644 --- a/include/inspircd_io.h +++ b/include/inspircd_io.h @@ -14,6 +14,8 @@ * --------------------------------------------------- */ +#include <sstream> + void Exit (int); void Start (void); int DaemonSeed (void); @@ -21,8 +23,9 @@ int FileExists (char* file); int OpenTCPSocket (void); int BindSocket (int sockfd, struct sockaddr_in client, struct sockaddr_in server, int port, char* addr); -int ConfValue(char* tag, char* var, int index, char *result); -int ReadConf(const char* filename,const char* tag, const char* var, int index, char *result); -int ConfValueEnum(char* tag); -int EnumConf(const char* filename,const char* tag); +void LoadConf(const char* filename, std::stringstream *target); +int ConfValue(char* tag, char* var, int index, char *result, std::stringstream *config); +int ReadConf(std::stringstream *config_f,const char* tag, const char* var, int index, char *result); +int ConfValueEnum(char* tag,std::stringstream *config); +int EnumConf(std::stringstream *config_f,const char* tag); |