config-parser: Make get_bool be bool

Graphics / Wayland / Weston - Daniel Stone [collabora.com] - 28 November 2019 19:24 EST

Wayland innovated a lot of cool things, but non-binary boolean values is the great advances of our time.

Make config_parser_get_bool() work on boolean values, and switch all its users.

51d995ad config-parser: Make get_bool be bool
clients/desktop-shell.c | 4 +-
compositor/main.c | 113 +++++++++++++++++++-------------------
desktop-shell/shell.c | 2 +-
include/libweston/config-parser.h | 3 +-
ivi-shell/ivi-shell.c | 2 +-
shared/config-parser.c | 6 +-
tests/config-parser-test.c | 28 ++++++----
7 files changed, 83 insertions(+), 75 deletions(-)

Upstream: cgit.freedesktop.org


  • Share