diff options
| author | Alexander Barton <alex@barton.de> | 2011-12-25 14:49:52 +0100 |
|---|---|---|
| committer | Alexander Barton <alex@barton.de> | 2011-12-25 14:49:52 +0100 |
| commit | dc9fcb0fb2716757ef336e60febeb58f59325388 (patch) | |
| tree | cc4bff5a18a7383ed44a07edff1d432bb2d03e2a /src | |
| parent | 2b95c69ea19c6711bb98ee048ee71cee94c5dde9 (diff) | |
| download | ngircd-dc9fcb0fb2716757ef336e60febeb58f59325388.tar.gz ngircd-dc9fcb0fb2716757ef336e60febeb58f59325388.zip | |
New function Class_GetList()
Diffstat (limited to 'src')
| -rw-r--r-- | src/ngircd/class.c | 8 | ||||
| -rw-r--r-- | 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 aeecaaec..dd10ac81 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 deb60f47..b93c3b68 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- */ |