]> arthur.barton.de Git - ngircd-alex.git/blobdiff - src/ngircd/class.h
Add new class.{c|h} to project
[ngircd-alex.git] / src / ngircd / class.h
diff --git a/src/ngircd/class.h b/src/ngircd/class.h
new file mode 100644 (file)
index 0000000..5b04eea
--- /dev/null
@@ -0,0 +1,36 @@
+/*
+ * ngIRCd -- The Next Generation IRC Daemon
+ * Copyright (c)2001-2011 Alexander Barton (alex@barton.de) and Contributors.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ * Please read the file COPYING, README and AUTHORS for more information.
+ */
+
+#ifndef __class_h__
+#define __class_h__
+
+/**
+ * @file
+ * User class management.
+ */
+
+#define CLASS_KLINE 0
+#define CLASS_GLINE 1
+
+#define CLASS_COUNT 2
+
+GLOBAL void Class_Init PARAMS((void));
+GLOBAL void Class_Exit PARAMS((void));
+
+GLOBAL bool Class_AddMask PARAMS((const int Class, const char *Mask,
+                                 const time_t ValidUntil));
+GLOBAL void Class_DeleteMask PARAMS((const int Class, const char *Mask));
+
+GLOBAL bool Class_IsMember PARAMS((const int Class, CLIENT *Client));
+
+#endif /* __class_h__ */
+
+/* -eof- */