sofs19
0.1
FUSE based file system
|
The bin selection toolkit. More...
Functions | |
void | soBinSetIDs (uint32_t lower, uint32_t upper) |
Set bin configuration map. More... | |
void | soBinAddIDs (uint32_t lower, uint32_t upper) |
Add bin ID range to the current bin configuration map. More... | |
void | soBinRemoveIDs (uint32_t lower, uint32_t upper) |
Remove bin ID range from the current bin configuration map. More... | |
bool | soBinSelected (uint32_t id) |
Check if given ID is activated. More... | |
The bin selection toolkit.
This toolkit allows to choose the binary functions to be used. Every function in the sofs19
API has a unique ID. Every function to be implemented has 3 versions, with prefixes so
, bin
, and grp
, corresponding to the main
version, the binary
version, and the group
version, respectively. The main
version calls either the binary
version or the group
version depending on the current bin configuration map. If the function ID is included in the bin configuration mao, the binary
version is called; otherwise, the group
version is called.
void sofs19::soBinSetIDs | ( | uint32_t | lower, |
uint32_t | upper | ||
) |
Set bin configuration map.
Resets the current bin configuration and sets the given range as the new bin configuration map.
lower | left margin of the range to be activated |
upper | right margin of the range to be activated |
void sofs19::soBinAddIDs | ( | uint32_t | lower, |
uint32_t | upper | ||
) |
Add bin ID range to the current bin configuration map.
lower | left margin of the range to be added |
upper | right margin of the range to be added |
void sofs19::soBinRemoveIDs | ( | uint32_t | lower, |
uint32_t | upper | ||
) |
Remove bin ID range from the current bin configuration map.
lower | left margin of the range to be deactivated |
upper | right margin of the range to be deactivated |
bool sofs19::soBinSelected | ( | uint32_t | id | ) |
Check if given ID is activated.
IDs covered by the current configuration represent binary functions to be used.
id | ID of the function to be checked |
true
if the given ID is included in the current configuration map and false
otherwise.