libweston/launcher: use C99 initializers for the iface(s)

Makes the code easier to read and browse through.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Daniel Stone <daniels@collabora.com>
This commit is contained in:
Emil Velikov 2017-02-10 20:14:23 +00:00 committed by Daniel Stone
parent 8f7201ec5e
commit 4d6eb17a36
3 changed files with 21 additions and 21 deletions

View File

@ -320,11 +320,11 @@ launcher_direct_get_vt(struct weston_launcher *base)
}
const struct launcher_interface launcher_direct_iface = {
launcher_direct_connect,
launcher_direct_destroy,
launcher_direct_open,
launcher_direct_close,
launcher_direct_activate_vt,
launcher_direct_restore,
launcher_direct_get_vt,
.connect = launcher_direct_connect,
.destroy = launcher_direct_destroy,
.open = launcher_direct_open,
.close = launcher_direct_close,
.activate_vt = launcher_direct_activate_vt,
.restore = launcher_direct_restore,
.get_vt = launcher_direct_get_vt,
};

View File

@ -838,11 +838,11 @@ launcher_logind_get_vt(struct weston_launcher *launcher)
}
const struct launcher_interface launcher_logind_iface = {
launcher_logind_connect,
launcher_logind_destroy,
launcher_logind_open,
launcher_logind_close,
launcher_logind_activate_vt,
launcher_logind_restore,
launcher_logind_get_vt,
.connect = launcher_logind_connect,
.destroy = launcher_logind_destroy,
.open = launcher_logind_open,
.close = launcher_logind_close,
.activate_vt = launcher_logind_activate_vt,
.restore = launcher_logind_restore,
.get_vt = launcher_logind_get_vt,
};

View File

@ -291,11 +291,11 @@ launcher_weston_launch_get_vt(struct weston_launcher *base)
}
const struct launcher_interface launcher_weston_launch_iface = {
launcher_weston_launch_connect,
launcher_weston_launch_destroy,
launcher_weston_launch_open,
launcher_weston_launch_close,
launcher_weston_launch_activate_vt,
launcher_weston_launch_restore,
launcher_weston_launch_get_vt,
.connect = launcher_weston_launch_connect,
.destroy = launcher_weston_launch_destroy,
.open = launcher_weston_launch_open,
.close = launcher_weston_launch_close,
.activate_vt = launcher_weston_launch_activate_vt,
.restore = launcher_weston_launch_restore,
.get_vt = launcher_weston_launch_get_vt,
};