]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
common/options: new options infrastructure
authorSage Weil <sage@redhat.com>
Fri, 12 May 2017 03:31:50 +0000 (22:31 -0500)
committerJohn Spray <john.spray@redhat.com>
Fri, 21 Jul 2017 10:27:23 +0000 (06:27 -0400)
commitfe1c592c8c04a8c5a72d511eba06eeed9e4b2e30
tree11e3a64a2cdb442636de2fdf1bff38f6bd696b39
parent8463894575958387894bd5dd45d7f9700e51dcd0
common/options: new options infrastructure

Define schema for config options.  Helper to generate a header fragment
to declare the types.

Unlike the old config_opts.h approach, we will not intialize values in
the header.  This avoids a recompile if there is a change and also allows
us to specify different defaults and do parsing and validation at runtime.
Instead, we'll intialize values in the constructure of the containing
class.

Signed-off-by: Sage Weil <sage@redhat.com>
src/CMakeLists.txt
src/common/generate_option_header.c [new file with mode: 0644]
src/common/generate_option_header.cc [new file with mode: 0644]
src/common/options.c [new file with mode: 0644]
src/common/options.cc [new file with mode: 0644]
src/common/options.h [new file with mode: 0644]