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>
dev
Emil Velikov 8 years ago committed by Daniel Stone
parent 8f7201ec5e
commit 4d6eb17a36
  1. 14
      libweston/launcher-direct.c
  2. 14
      libweston/launcher-logind.c
  3. 14
      libweston/launcher-weston-launch.c

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

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

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

Loading…
Cancel
Save