]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
common/bit_str: Helper functions to output bitmask's flags
authorJoao Eduardo Luis <joao@suse.de>
Wed, 27 Jan 2016 10:26:13 +0000 (10:26 +0000)
committerJoao Eduardo Luis <joao@suse.de>
Sat, 29 Oct 2016 03:10:22 +0000 (04:10 +0100)
commit4bdb7de443cd6ca3c9dc988dd11edc4a22263e0f
treeecc97effaf73e783ed4ce27a5e1e631a6e0867c3
parent9e2c22d8f8cd18d8eec6e1b3c996ba95c2e6d8cf
common/bit_str: Helper functions to output bitmask's flags

These functions will take a given function 'f' as parameter, and will
call 'f' for each bit that is set on a provided bitmask. The
responsibility of printing the appropriate flag name falls on 'f'.

Signed-off-by: Joao Eduardo Luis <joao@suse.de>
src/CMakeLists.txt
src/common/bit_str.cc [new file with mode: 0644]
src/common/bit_str.h [new file with mode: 0644]