commit dc9fcb0fb2716757ef336e60febeb58f59325388 from: Alexander Barton date: Sun Dec 25 13:49:52 2011 UTC New function Class_GetList() commit - 2b95c69ea19c6711bb98ee048ee71cee94c5dde9 commit + dc9fcb0fb2716757ef336e60febeb58f59325388 blob - aeecaaecc7440313ca89f59b55e6fbf46a57e0c3 blob + dd10ac81021fb0e80fd8336a67b4ecddf329ad89 --- src/ngircd/class.c +++ 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- */ blob - deb60f47828220339bec85fd772958a255fa9873 blob + b93c3b68cb78bf0cc3141acee7dae52014a9d9a5 --- src/ngircd/class.h +++ src/ngircd/class.h @@ -31,6 +31,8 @@ GLOBAL void Class_DeleteMask PARAMS((const int Class, GLOBAL bool Class_IsMember PARAMS((const int Class, CLIENT *Client)); +GLOBAL struct list_head Class_GetList PARAMS((const int Class)); + #endif /* __class_h__ */ /* -eof- */