Refactor: sysroot.bootloader: Store enum value rather than string
authorWilliam Manley <will@stb-tester.com>
Mon, 6 Jul 2020 14:50:28 +0000 (15:50 +0100)
committerWilliam Manley <will@stb-tester.com>
Mon, 26 Oct 2020 23:51:11 +0000 (23:51 +0000)
commit9482ecfe5ad355a405d17272564c8b15c9f1d84b
tree3326eacd7d90c24cf4236e99b72419688f63c306
parent062df6ee8111be538321ee624e219f5d61d5e7dc
Refactor: sysroot.bootloader: Store enum value rather than string

It's easier to extend and it centralises the config parsing.  In other
places we will no longer need to use `g_str_equal` to match these values,
a `switch` statement will be sufficient.
src/libostree/ostree-repo-private.h
src/libostree/ostree-repo.c
src/libostree/ostree-sysroot.c