summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/inspircd_io.h1
-rw-r--r--include/modules.h7
2 files changed, 8 insertions, 0 deletions
diff --git a/include/inspircd_io.h b/include/inspircd_io.h
index df64228a4..a6403e7ec 100644
--- a/include/inspircd_io.h
+++ b/include/inspircd_io.h
@@ -28,4 +28,5 @@ int ConfValue(char* tag, char* var, int index, char *result, std::stringstream *
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);
+int EnumValues(std::stringstream *config, const char* tag, int index);
diff --git a/include/modules.h b/include/modules.h
index c93e565fb..691e6eda1 100644
--- a/include/modules.h
+++ b/include/modules.h
@@ -510,6 +510,13 @@ class ConfigReader : public classbase
* file does not exist or could not be opened.
*/
bool Verify();
+
+ /** Returns the number of items within a tag.
+ * For example if the tag was <test tag="blah" data="foo"> then this
+ * function would return 2. Spaces and newlines both qualify as valid seperators
+ * between values.
+ */
+ int EnumerateValues(std::string tag, int index);
};