]> jfr.im git - irc/blitzed-org/charybdis.git/commit
Add a new dynamic capability manager.
authorWilliam Pitcock <redacted>
Sat, 4 Feb 2012 05:58:53 +0000 (23:58 -0600)
committerWilliam Pitcock <redacted>
Sat, 4 Feb 2012 06:05:13 +0000 (00:05 -0600)
commit64b56afd8c54a389137dac8858524d63308d7900
tree896e91be087d9306e99e601da83de0f1cafdb614
parent481b443b4d114321e7c4905fc5d79980f6552fa4
Add a new dynamic capability manager.

Specifically, what this capability manager does, is map keywords to
calculated bitmasks.  These bitmasks are allocated at runtime, so that
the any managed capability index can be manipulated by modules.

Modules should call capability_orphan() when orphaning capabilities.  This
makes it so that bitmasks aren't reallocated, except for cases where the
capability is the same.
include/capability.h [new file with mode: 0644]
src/Makefile.in
src/capability.c [new file with mode: 0644]