summaryrefslogtreecommitdiff
path: root/include/modules/cs_entrymsg.h
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2014-03-01 21:20:18 -0500
committerAdam <Adam@anope.org>2014-03-01 21:20:18 -0500
commita0747516ce76dda57d4e6bf66af7376784741257 (patch)
tree594cb00b3382ffe1491a5e186ebbf225b05b50c5 /include/modules/cs_entrymsg.h
parent605e1f2a0353393cf1f45f5d2f38f15bdf392f3d (diff)
Export interface for cs_entrymsg
Diffstat (limited to 'include/modules/cs_entrymsg.h')
-rw-r--r--include/modules/cs_entrymsg.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/include/modules/cs_entrymsg.h b/include/modules/cs_entrymsg.h
new file mode 100644
index 000000000..71b9d6656
--- /dev/null
+++ b/include/modules/cs_entrymsg.h
@@ -0,0 +1,35 @@
+/*
+ * (C) 2003-2014 Anope Team
+ * Contact us at team@anope.org
+ *
+ * Please read COPYING and README for further details.
+ *
+ */
+
+struct EntryMsg
+{
+ Anope::string chan;
+ Anope::string creator;
+ Anope::string message;
+ time_t when;
+
+ virtual ~EntryMsg() { }
+ protected:
+ EntryMsg() { }
+};
+
+struct EntryMessageList : Serialize::Checker<std::vector<EntryMsg *> >
+{
+ protected:
+ EntryMessageList() : Serialize::Checker<std::vector<EntryMsg *> >("EntryMsg") { }
+
+ public:
+ virtual ~EntryMessageList()
+ {
+ for (unsigned i = (*this)->size(); i > 0; --i)
+ delete (*this)->at(i - 1);
+ }
+
+ virtual EntryMsg* Create() = 0;
+};
+