]> code.citadel.org Git - citadel.git/commitdiff
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)
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


No differences found