summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/inspircd_io.h11
-rw-r--r--include/modules.h2
2 files changed, 9 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);
diff --git a/include/modules.h b/include/modules.h
index ed947b30a..3e2b8c5bb 100644
--- a/include/modules.h
+++ b/include/modules.h
@@ -23,6 +23,7 @@
#include "ctables.h"
#include <string>
#include <deque>
+#include <sstream>
/** Low level definition of a FileReader classes file cache area
*/
@@ -451,6 +452,7 @@ class ConfigReader : public classbase
/** The filename of the configuration file, as set by the constructor.
*/
std::string fname;
+ std::stringstream *cache;
public:
/** Default constructor.
* This constructor initialises the ConfigReader class to read the inspircd.conf file