From: Marius Vlad Date: Mon, 4 May 2020 18:33:45 +0000 (+0300) Subject: main: Use bool for weston_config_section_get_bool() X-Git-Tag: 9.99.1~64 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=457456edb3d287af7a9de3de9e3563a2f77aebf9;hp=fcd71e034d378921e0408a69dedcd8d0f4836401;p=src%2Fagl-compositor.git main: Use bool for weston_config_section_get_bool() weston_config_section_get_bool() uses bool instead of integer from libweston8. Bug-AGL: SPEC-3352 Signed-off-by: Marius Vlad Change-Id: I5a3f661824f494f0ba4a02eca5a41b25a460214e --- diff --git a/src/ivi-compositor.h b/src/ivi-compositor.h index dab9fa6..cd7cbdd 100644 --- a/src/ivi-compositor.h +++ b/src/ivi-compositor.h @@ -67,7 +67,7 @@ struct ivi_compositor { struct wl_global *agl_shell; struct wl_global *agl_shell_desktop; struct { - int activate_apps_by_default; /* switches once xdg top level has been 'created' */ + bool activate_apps_by_default; /* switches once xdg top level has been 'created' */ } quirks; struct { diff --git a/src/main.c b/src/main.c index 2b12a7b..09c4036 100644 --- a/src/main.c +++ b/src/main.c @@ -541,7 +541,7 @@ load_drm_backend(struct ivi_compositor *ivi, int *argc, char *argv[]) struct weston_config_section *section; int use_current_mode = 0; int use_pixman = 0; - int use_shadow; + bool use_shadow; int ret; const struct weston_option options[] = { @@ -587,7 +587,7 @@ windowed_parse_common_options(struct ivi_compositor *ivi, int *argc, char *argv[ bool *use_pixman, bool *fullscreen, int *output_count) { struct weston_config_section *section; - int pixman; + bool pixman; int fs = 0; const struct weston_option options[] = { @@ -798,8 +798,8 @@ compositor_init_config(struct weston_compositor *compositor, struct xkb_rule_names xkb_names; struct weston_config_section *section; int repaint_msec; - int vt_switching; - int require_input; + bool vt_switching; + bool require_input; /* agl-compositor.ini [keyboard] */ section = weston_config_get_section(config, "keyboard", NULL, NULL);