Module: ngircd.git Branch: master Commit: dc9fcb0fb2716757ef336e60febeb58f59325388 URL: http://ngircd.barton.de/cgi-bin/gitweb.cgi?p=ngircd.git&a=commit;h=dc9fc...
Author: Alexander Barton alex@barton.de Date: Sun Dec 25 14:49:52 2011 +0100
New function Class_GetList()
---
src/ngircd/class.c | 8 ++++++++ src/ngircd/class.h | 2 ++ 2 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/src/ngircd/class.c b/src/ngircd/class.c index aeecaae..dd10ac8 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 deb60f4..b93c3b6 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- */