A little more with the API coding style.
authorDave West <davew@uncensored.citadel.org>
Sun, 25 Oct 2009 22:05:03 +0000 (22:05 +0000)
committerDave West <davew@uncensored.citadel.org>
Sun, 25 Oct 2009 22:05:03 +0000 (22:05 +0000)
commitdb96f0d5e16098e0087d5c179cc5fd90453581f9
tree35734be72e2d120b78a1276d5995f194cf1ab68a
parentea8a5055d2ce74b0681368b5e2bcc941a718ef9c
A little more with the API coding style.

Also added following functions

CtdlGetFloorByName   Gets floor by name. Return -1 if not found.
CtdlGetFloorByNameLock  As above but locks the floors.
CtdlGetAvailableFloor  Returns number of first unused floor.

These functions make use of the floor cache for performance.

The idea is if you want to create a floor you first check that the name
is available with CtdlGetFloorByNameLock
If the name is available you get -1 back and you then do CtdlGetAvailableFloor
Now you have a floor number to use so you can CtdlGetFloor and fill in the
structure information before doing CtdlPutFloorLock
citadel/include/ctdl_module.h
citadel/msgbase.h
citadel/room_ops.c