]> arthur.barton.de Git - ngircd-alex.git/commitdiff
New function Class_GetList()
authorAlexander Barton <alex@barton.de>
Sun, 25 Dec 2011 13:49:52 +0000 (14:49 +0100)
committerAlexander Barton <alex@barton.de>
Sun, 25 Dec 2011 13:49:52 +0000 (14:49 +0100)
src/ngircd/class.c
src/ngircd/class.h

index aeecaaecc7440313ca89f59b55e6fbf46a57e0c3..dd10ac81021fb0e80fd8336a67b4ecddf329ad89 100644 (file)
@@ -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- */
index deb60f47828220339bec85fd772958a255fa9873..b93c3b68cb78bf0cc3141acee7dae52014a9d9a5 100644 (file)
@@ -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- */