]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
common: implement get_str_map to parse key/values
authorLoic Dachary <loic@dachary.org>
Sat, 21 Dec 2013 12:58:44 +0000 (13:58 +0100)
committerLoic Dachary <loic@dachary.org>
Sun, 22 Dec 2013 22:43:54 +0000 (23:43 +0100)
commita44a57a7c3843a3c765c5a7dbdc7e438dda104cc
treeb64102b6beea3d8dca2fd8ce02d11a07c03c2820
parentdf1704eeb05501fec899e2e8ec96d166592fea9d
common: implement get_str_map to parse key/values

It is capable of parsing json or key=value pairs. The prototype is made
to look like get_str_list. The implementation is in common + include and
use .h. It will probably be moved to common and use .hpp instead, along
with str_list.{cc,h}.

Signed-off-by: Loic Dachary <loic@dachary.org>
src/common/Makefile.am
src/common/str_map.cc [new file with mode: 0644]
src/include/Makefile.am
src/include/str_map.h [new file with mode: 0644]
src/test/Makefile.am
src/test/common/test_str_map.cc [new file with mode: 0644]