summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/base.h9
-rw-r--r--include/modules.h8
2 files changed, 17 insertions, 0 deletions
diff --git a/include/base.h b/include/base.h
index cec519e5c..ac03a748c 100644
--- a/include/base.h
+++ b/include/base.h
@@ -20,6 +20,7 @@
#include "inspircd_config.h"
#include <time.h>
#include <map>
+#include <deque>
#include <string>
typedef void* VoidPointer;
@@ -86,6 +87,14 @@ public:
* @return If you provide a non-existent key name, the function returns NULL, otherwise a pointer to the item referenced by the key is returned.
*/
char* GetExt(std::string key);
+
+ /** Get a list of all extension items names.
+ *
+ * @param list A deque of strings to receive the list
+ *
+ * @return This function writes a list of all extension items stored in this object by name into the given deque and returns void.
+ */
+ void GetExtList(std::deque<std::string> &list);
};
/** BoolSet is a utility class designed to hold eight bools in a bitmask.
diff --git a/include/modules.h b/include/modules.h
index de9ba0c79..2c1cf4ff7 100644
--- a/include/modules.h
+++ b/include/modules.h
@@ -435,7 +435,15 @@ class Module : public classbase
virtual void OnSyncChannel(chanrec* chan, Module* proto, void* opaque);
+ virtual void OnSyncChannelMetaData(chanrec* chan, Module* proto,void* opaque, std::string extname);
+
+ virtual void OnSyncUserMetaData(userrec* user, Module* proto,void* opaque, std::string extname);
+
+ virtual void OnDecodeMetaData(int target_type, void* target, std::string extname, std::string extdata);
+
virtual void ProtoSendMode(void* opaque, int target_type, void* target, std::string modeline);
+
+ virtual void ProtoSendMetaData(void* opaque, int target_type, void* target, std::string extname, std::string extdata);
virtual void OnWallops(userrec* user, std::string text);