tried to reorder the program structure and build process
[NeonServV5.git] / src / BanNode.h
diff --git a/src/BanNode.h b/src/BanNode.h
new file mode 100644 (file)
index 0000000..a699e3f
--- /dev/null
@@ -0,0 +1,20 @@
+#ifndef _BanNode_h
+#define _BanNode_h
+#include "main.h"
+
+struct ChanNode;
+
+struct BanNode {
+    char *mask;
+    struct ChanNode *chan;
+    
+    struct BanNode *next;
+};
+
+struct BanNode* addChannelBan(struct ChanNode *chan, char *mask);
+struct BanNode* getMatchingChannelBan(struct ChanNode *chan, char *mask);
+void removeChannelBanMask(struct ChanNode *chan, char *mask);
+void removeChannelBan(struct BanNode *ban);
+void removeChannelBans(struct ChanNode *chan);
+
+#endif
\ No newline at end of file