repo: ngircd
action: commit
revision: 
path_from: 
revision_from: dc9fcb0fb2716757ef336e60febeb58f59325388:
path_to: 
revision_to: 
git.thebackupbox.net
ngircd
git clone git://git.thebackupbox.net/ngircd
commit dc9fcb0fb2716757ef336e60febeb58f59325388
Author: Alexander Barton 
Date:   Sun Dec 25 14:49:52 2011 +0100

    New function Class_GetList()

diff --git a/src/ngircd/class.c b/src/ngircd/class.c
index aeecaaecc7440313ca89f59b55e6fbf46a57e0c3..
index ..dd10ac81021fb0e80fd8336a67b4ecddf329ad89 100644
--- a/src/ngircd/class.c
+++ b/src/ngircd/class.c
@@ -75,4 +75,12 @@ Class_DeleteMask(const int Class, const char *Mask)
 	Lists_Del(&My_Classes[Class], Mask);
 }

+GLOBAL struct list_head
+Class_GetList(const int Class)
+{
+	assert(Class < CLASS_COUNT);
+
+	return My_Classes[Class];
+}
+
 /* -eof- */
diff --git a/src/ngircd/class.h b/src/ngircd/class.h
index deb60f47828220339bec85fd772958a255fa9873..
index ..b93c3b68cb78bf0cc3141acee7dae52014a9d9a5 100644
--- a/src/ngircd/class.h
+++ b/src/ngircd/class.h
@@ -31,6 +31,8 @@ GLOBAL void Class_DeleteMask PARAMS((const int Class, const char *Mask));

 GLOBAL bool Class_IsMember PARAMS((const int Class, CLIENT *Client));

+GLOBAL struct list_head Class_GetList PARAMS((const int Class));
+
 #endif /* __class_h__ */

 /* -eof- */

-----END OF PAGE-----