Jasper St. Pierre | 72dea06 | 2015-09-23 10:46:47 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright © 2012 Benjamin Franzke |
| 3 | * Copyright © 2013 Intel Corporation |
| 4 | * |
Yong Bakos | 5336153 | 2017-01-23 06:17:44 -0800 | [diff] [blame] | 5 | * Permission is hereby granted, free of charge, to any person obtaining |
| 6 | * a copy of this software and associated documentation files (the |
| 7 | * "Software"), to deal in the Software without restriction, including |
| 8 | * without limitation the rights to use, copy, modify, merge, publish, |
| 9 | * distribute, sublicense, and/or sell copies of the Software, and to |
| 10 | * permit persons to whom the Software is furnished to do so, subject to |
| 11 | * the following conditions: |
Jasper St. Pierre | 72dea06 | 2015-09-23 10:46:47 -0700 | [diff] [blame] | 12 | * |
Yong Bakos | 5336153 | 2017-01-23 06:17:44 -0800 | [diff] [blame] | 13 | * The above copyright notice and this permission notice (including the |
| 14 | * next paragraph) shall be included in all copies or substantial |
| 15 | * portions of the Software. |
| 16 | * |
| 17 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
| 18 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
| 19 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
| 20 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS |
| 21 | * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN |
| 22 | * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN |
| 23 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
| 24 | * SOFTWARE. |
Jasper St. Pierre | 72dea06 | 2015-09-23 10:46:47 -0700 | [diff] [blame] | 25 | */ |
| 26 | |
| 27 | #include "config.h" |
| 28 | |
Jussi Kukkonen | 649bbce | 2016-07-19 14:16:27 +0300 | [diff] [blame] | 29 | #include <stdint.h> |
Jasper St. Pierre | 72dea06 | 2015-09-23 10:46:47 -0700 | [diff] [blame] | 30 | #include <stdio.h> |
| 31 | #include <stdlib.h> |
| 32 | #include <string.h> |
| 33 | |
| 34 | #include <errno.h> |
| 35 | #include <signal.h> |
| 36 | #include <sys/socket.h> |
| 37 | #include <sys/types.h> |
| 38 | #include <sys/stat.h> |
| 39 | #include <sys/uio.h> |
| 40 | #include <sys/ioctl.h> |
| 41 | #include <fcntl.h> |
| 42 | #include <unistd.h> |
| 43 | #include <linux/vt.h> |
| 44 | #include <linux/kd.h> |
| 45 | #include <linux/major.h> |
| 46 | |
Pekka Paalanen | 3d5d947 | 2019-03-28 16:28:47 +0200 | [diff] [blame] | 47 | #include <libweston/libweston.h> |
Jasper St. Pierre | 72dea06 | 2015-09-23 10:46:47 -0700 | [diff] [blame] | 48 | #include "weston-launch.h" |
| 49 | #include "launcher-impl.h" |
Guillaume Champagne | b4bd12b | 2020-01-27 20:08:15 -0500 | [diff] [blame] | 50 | #include "shared/string-helpers.h" |
Jasper St. Pierre | 72dea06 | 2015-09-23 10:46:47 -0700 | [diff] [blame] | 51 | |
| 52 | #define DRM_MAJOR 226 |
| 53 | |
| 54 | #ifndef KDSKBMUTE |
| 55 | #define KDSKBMUTE 0x4B51 |
| 56 | #endif |
| 57 | |
Pekka Paalanen | 2667e9e | 2017-04-06 13:18:59 +0300 | [diff] [blame] | 58 | #ifdef BUILD_DRM_COMPOSITOR |
Jasper St. Pierre | 72dea06 | 2015-09-23 10:46:47 -0700 | [diff] [blame] | 59 | |
| 60 | #include <xf86drm.h> |
| 61 | |
Jasper St. Pierre | 72dea06 | 2015-09-23 10:46:47 -0700 | [diff] [blame] | 62 | #else |
| 63 | |
| 64 | static inline int |
| 65 | drmDropMaster(int drm_fd) |
| 66 | { |
| 67 | return 0; |
| 68 | } |
| 69 | |
| 70 | static inline int |
| 71 | drmSetMaster(int drm_fd) |
| 72 | { |
| 73 | return 0; |
| 74 | } |
| 75 | |
Jasper St. Pierre | 72dea06 | 2015-09-23 10:46:47 -0700 | [diff] [blame] | 76 | #endif |
| 77 | |
Sergei Trofimovich | 43c5a65 | 2017-05-31 22:17:50 +0100 | [diff] [blame] | 78 | /* major()/minor() */ |
| 79 | #ifdef MAJOR_IN_MKDEV |
| 80 | #include <sys/mkdev.h> |
| 81 | #endif |
| 82 | #ifdef MAJOR_IN_SYSMACROS |
| 83 | #include <sys/sysmacros.h> |
| 84 | #endif |
Jasper St. Pierre | 72dea06 | 2015-09-23 10:46:47 -0700 | [diff] [blame] | 85 | |
| 86 | union cmsg_data { unsigned char b[4]; int fd; }; |
| 87 | |
| 88 | struct launcher_weston_launch { |
| 89 | struct weston_launcher base; |
| 90 | struct weston_compositor *compositor; |
Jasper St. Pierre | 72dea06 | 2015-09-23 10:46:47 -0700 | [diff] [blame] | 91 | int fd; |
| 92 | struct wl_event_source *source; |
| 93 | |
| 94 | int kb_mode, tty, drm_fd; |
Jonathan Marler | f153c49 | 2021-03-27 09:55:59 -0600 | [diff] [blame] | 95 | int deferred_deactivate; |
Jasper St. Pierre | 72dea06 | 2015-09-23 10:46:47 -0700 | [diff] [blame] | 96 | }; |
| 97 | |
Stefan Agner | 10356a2 | 2020-01-22 22:40:19 +0100 | [diff] [blame] | 98 | static ssize_t |
| 99 | launcher_weston_launch_send(int sockfd, void *buf, size_t buflen) |
| 100 | { |
| 101 | ssize_t len; |
| 102 | |
| 103 | do { |
| 104 | len = send(sockfd, buf, buflen, 0); |
| 105 | } while (len < 0 && errno == EINTR); |
| 106 | |
| 107 | return len; |
| 108 | } |
| 109 | |
Jonathan Marler | f153c49 | 2021-03-27 09:55:59 -0600 | [diff] [blame] | 110 | static void |
| 111 | handle_deactivate(struct launcher_weston_launch *launcher) |
| 112 | { |
| 113 | int reply; |
| 114 | |
| 115 | launcher->compositor->session_active = false; |
| 116 | wl_signal_emit(&launcher->compositor->session_signal, |
| 117 | launcher->compositor); |
| 118 | |
| 119 | reply = WESTON_LAUNCHER_DEACTIVATE_DONE; |
| 120 | launcher_weston_launch_send(launcher->fd, &reply, sizeof reply); |
| 121 | } |
| 122 | |
| 123 | static void |
| 124 | idle_deactivate(void *data) |
| 125 | { |
| 126 | struct launcher_weston_launch *launcher = data; |
| 127 | |
| 128 | if (launcher->deferred_deactivate) { |
| 129 | launcher->deferred_deactivate = 0; |
| 130 | handle_deactivate((struct launcher_weston_launch*)data); |
| 131 | } |
| 132 | } |
| 133 | |
Jasper St. Pierre | 72dea06 | 2015-09-23 10:46:47 -0700 | [diff] [blame] | 134 | static int |
| 135 | launcher_weston_launch_open(struct weston_launcher *launcher_base, |
| 136 | const char *path, int flags) |
| 137 | { |
| 138 | struct launcher_weston_launch *launcher = wl_container_of(launcher_base, launcher, base); |
Jonathan Marler | f153c49 | 2021-03-27 09:55:59 -0600 | [diff] [blame] | 139 | int n; |
Jasper St. Pierre | 72dea06 | 2015-09-23 10:46:47 -0700 | [diff] [blame] | 140 | struct msghdr msg; |
| 141 | struct cmsghdr *cmsg; |
| 142 | struct iovec iov; |
| 143 | union cmsg_data *data; |
| 144 | char control[CMSG_SPACE(sizeof data->fd)]; |
| 145 | ssize_t len; |
| 146 | struct weston_launcher_open *message; |
Jonathan Marler | f153c49 | 2021-03-27 09:55:59 -0600 | [diff] [blame] | 147 | struct { int id; int ret; } event; |
Jasper St. Pierre | 72dea06 | 2015-09-23 10:46:47 -0700 | [diff] [blame] | 148 | |
| 149 | n = sizeof(*message) + strlen(path) + 1; |
| 150 | message = malloc(n); |
| 151 | if (!message) |
| 152 | return -1; |
| 153 | |
| 154 | message->header.opcode = WESTON_LAUNCHER_OPEN; |
| 155 | message->flags = flags; |
| 156 | strcpy(message->path, path); |
| 157 | |
Stefan Agner | 10356a2 | 2020-01-22 22:40:19 +0100 | [diff] [blame] | 158 | launcher_weston_launch_send(launcher->fd, message, n); |
Jasper St. Pierre | 72dea06 | 2015-09-23 10:46:47 -0700 | [diff] [blame] | 159 | free(message); |
| 160 | |
| 161 | memset(&msg, 0, sizeof msg); |
Jonathan Marler | f153c49 | 2021-03-27 09:55:59 -0600 | [diff] [blame] | 162 | iov.iov_base = &event; |
| 163 | iov.iov_len = sizeof event; |
Jasper St. Pierre | 72dea06 | 2015-09-23 10:46:47 -0700 | [diff] [blame] | 164 | msg.msg_iov = &iov; |
| 165 | msg.msg_iovlen = 1; |
| 166 | msg.msg_control = control; |
Yong Bakos | 5336153 | 2017-01-23 06:17:44 -0800 | [diff] [blame] | 167 | |
Jonathan Marler | f153c49 | 2021-03-27 09:55:59 -0600 | [diff] [blame] | 168 | while (1) { |
| 169 | msg.msg_controllen = sizeof control; |
Jasper St. Pierre | 72dea06 | 2015-09-23 10:46:47 -0700 | [diff] [blame] | 170 | |
Jonathan Marler | f153c49 | 2021-03-27 09:55:59 -0600 | [diff] [blame] | 171 | do { |
| 172 | len = recvmsg(launcher->fd, &msg, MSG_CMSG_CLOEXEC); |
| 173 | } while (len < 0 && errno == EINTR); |
| 174 | |
| 175 | // Only OPEN_REPLY and up to one DEACTIVATE message should be possible here |
| 176 | if ((len == sizeof event) && (event.id == WESTON_LAUNCHER_OPEN_REPLY)) |
| 177 | break; |
| 178 | |
| 179 | if ((len == sizeof event.id) && (event.id == WESTON_LAUNCHER_DEACTIVATE) && (launcher->deferred_deactivate == 0)) { |
| 180 | wl_event_loop_add_idle(wl_display_get_event_loop(launcher->compositor->wl_display), idle_deactivate, launcher); |
| 181 | launcher->deferred_deactivate = 1; |
| 182 | } else { |
| 183 | weston_log("unexpected event %d (len=%zd) from weston-launch\n", event.id, len); |
| 184 | return -1; |
| 185 | } |
| 186 | } |
| 187 | |
| 188 | if (event.ret < 0) |
Jasper St. Pierre | 72dea06 | 2015-09-23 10:46:47 -0700 | [diff] [blame] | 189 | return -1; |
| 190 | |
| 191 | cmsg = CMSG_FIRSTHDR(&msg); |
| 192 | if (!cmsg || |
| 193 | cmsg->cmsg_level != SOL_SOCKET || |
| 194 | cmsg->cmsg_type != SCM_RIGHTS) { |
| 195 | fprintf(stderr, "invalid control message\n"); |
| 196 | return -1; |
| 197 | } |
| 198 | |
| 199 | data = (union cmsg_data *) CMSG_DATA(cmsg); |
| 200 | if (data->fd == -1) { |
| 201 | fprintf(stderr, "missing drm fd in socket request\n"); |
| 202 | return -1; |
| 203 | } |
| 204 | |
| 205 | return data->fd; |
| 206 | } |
| 207 | |
| 208 | static void |
| 209 | launcher_weston_launch_close(struct weston_launcher *launcher_base, int fd) |
| 210 | { |
| 211 | close(fd); |
| 212 | } |
| 213 | |
| 214 | static void |
| 215 | launcher_weston_launch_restore(struct weston_launcher *launcher_base) |
| 216 | { |
| 217 | struct launcher_weston_launch *launcher = wl_container_of(launcher_base, launcher, base); |
| 218 | struct vt_mode mode = { 0 }; |
| 219 | |
| 220 | if (ioctl(launcher->tty, KDSKBMUTE, 0) && |
| 221 | ioctl(launcher->tty, KDSKBMODE, launcher->kb_mode)) |
Antonio Borneo | 3957863 | 2019-04-26 23:57:31 +0200 | [diff] [blame] | 222 | weston_log("failed to restore kb mode: %s\n", |
| 223 | strerror(errno)); |
Jasper St. Pierre | 72dea06 | 2015-09-23 10:46:47 -0700 | [diff] [blame] | 224 | |
| 225 | if (ioctl(launcher->tty, KDSETMODE, KD_TEXT)) |
Antonio Borneo | 3957863 | 2019-04-26 23:57:31 +0200 | [diff] [blame] | 226 | weston_log("failed to set KD_TEXT mode on tty: %s\n", |
| 227 | strerror(errno)); |
Jasper St. Pierre | 72dea06 | 2015-09-23 10:46:47 -0700 | [diff] [blame] | 228 | |
| 229 | /* We have to drop master before we switch the VT back in |
| 230 | * VT_AUTO, so we don't risk switching to a VT with another |
| 231 | * display server, that will then fail to set drm master. */ |
| 232 | drmDropMaster(launcher->drm_fd); |
| 233 | |
| 234 | mode.mode = VT_AUTO; |
| 235 | if (ioctl(launcher->tty, VT_SETMODE, &mode) < 0) |
| 236 | weston_log("could not reset vt handling\n"); |
| 237 | } |
| 238 | |
| 239 | static int |
| 240 | launcher_weston_launch_data(int fd, uint32_t mask, void *data) |
| 241 | { |
| 242 | struct launcher_weston_launch *launcher = data; |
Jonathan Marler | f153c49 | 2021-03-27 09:55:59 -0600 | [diff] [blame] | 243 | int len, ret; |
Jasper St. Pierre | 72dea06 | 2015-09-23 10:46:47 -0700 | [diff] [blame] | 244 | |
| 245 | if (mask & (WL_EVENT_HANGUP | WL_EVENT_ERROR)) { |
| 246 | weston_log("launcher socket closed, exiting\n"); |
| 247 | /* Normally the weston-launch will reset the tty, but |
| 248 | * in this case it died or something, so do it here so |
| 249 | * we don't end up with a stuck vt. */ |
| 250 | launcher_weston_launch_restore(&launcher->base); |
| 251 | exit(-1); |
| 252 | } |
| 253 | |
Jonathan Marler | f153c49 | 2021-03-27 09:55:59 -0600 | [diff] [blame] | 254 | if (launcher->deferred_deactivate) { |
| 255 | launcher->deferred_deactivate = 0; |
| 256 | handle_deactivate(launcher); |
| 257 | return 1; |
| 258 | } |
| 259 | |
Jasper St. Pierre | 72dea06 | 2015-09-23 10:46:47 -0700 | [diff] [blame] | 260 | do { |
| 261 | len = recv(launcher->fd, &ret, sizeof ret, 0); |
| 262 | } while (len < 0 && errno == EINTR); |
| 263 | |
| 264 | switch (ret) { |
| 265 | case WESTON_LAUNCHER_ACTIVATE: |
Robert Beckett | c569bdc | 2019-07-10 16:40:12 +0100 | [diff] [blame] | 266 | launcher->compositor->session_active = true; |
Jasper St. Pierre | 72dea06 | 2015-09-23 10:46:47 -0700 | [diff] [blame] | 267 | wl_signal_emit(&launcher->compositor->session_signal, |
| 268 | launcher->compositor); |
| 269 | break; |
| 270 | case WESTON_LAUNCHER_DEACTIVATE: |
Jonathan Marler | f153c49 | 2021-03-27 09:55:59 -0600 | [diff] [blame] | 271 | handle_deactivate(launcher); |
Jasper St. Pierre | 72dea06 | 2015-09-23 10:46:47 -0700 | [diff] [blame] | 272 | break; |
| 273 | default: |
| 274 | weston_log("unexpected event from weston-launch\n"); |
| 275 | break; |
| 276 | } |
| 277 | |
| 278 | return 1; |
| 279 | } |
| 280 | |
| 281 | static int |
| 282 | launcher_weston_launch_activate_vt(struct weston_launcher *launcher_base, int vt) |
| 283 | { |
| 284 | struct launcher_weston_launch *launcher = wl_container_of(launcher_base, launcher, base); |
| 285 | return ioctl(launcher->tty, VT_ACTIVATE, vt); |
| 286 | } |
| 287 | |
| 288 | static int |
Guillaume Champagne | b4bd12b | 2020-01-27 20:08:15 -0500 | [diff] [blame] | 289 | launcher_weston_environment_get_fd(const char *env) |
| 290 | { |
| 291 | char *e; |
| 292 | int fd, flags; |
| 293 | |
| 294 | e = getenv(env); |
Anurup M | aa7de33 | 2020-12-03 07:55:04 +0530 | [diff] [blame] | 295 | if (!e || !safe_strtoint(e, &fd)) { |
| 296 | weston_log("could not get launcher fd from env\n"); |
Guillaume Champagne | b4bd12b | 2020-01-27 20:08:15 -0500 | [diff] [blame] | 297 | return -1; |
Anurup M | aa7de33 | 2020-12-03 07:55:04 +0530 | [diff] [blame] | 298 | } |
Guillaume Champagne | b4bd12b | 2020-01-27 20:08:15 -0500 | [diff] [blame] | 299 | |
| 300 | flags = fcntl(fd, F_GETFD); |
Anurup M | aa7de33 | 2020-12-03 07:55:04 +0530 | [diff] [blame] | 301 | if (flags == -1) { |
| 302 | weston_log("could not get fd flags!, env: %s, error: %s\n", |
| 303 | env, strerror(errno)); |
Guillaume Champagne | b4bd12b | 2020-01-27 20:08:15 -0500 | [diff] [blame] | 304 | return -1; |
Anurup M | aa7de33 | 2020-12-03 07:55:04 +0530 | [diff] [blame] | 305 | } |
Guillaume Champagne | b4bd12b | 2020-01-27 20:08:15 -0500 | [diff] [blame] | 306 | |
| 307 | fcntl(fd, F_SETFD, flags | FD_CLOEXEC); |
| 308 | unsetenv(env); |
| 309 | |
| 310 | return fd; |
| 311 | } |
| 312 | |
| 313 | |
| 314 | static int |
Jasper St. Pierre | 72dea06 | 2015-09-23 10:46:47 -0700 | [diff] [blame] | 315 | launcher_weston_launch_connect(struct weston_launcher **out, struct weston_compositor *compositor, |
| 316 | int tty, const char *seat_id, bool sync_drm) |
| 317 | { |
| 318 | struct launcher_weston_launch *launcher; |
| 319 | struct wl_event_loop *loop; |
| 320 | |
| 321 | launcher = malloc(sizeof *launcher); |
| 322 | if (launcher == NULL) |
| 323 | return -ENOMEM; |
| 324 | |
| 325 | launcher->base.iface = &launcher_weston_launch_iface; |
Jasper St. Pierre | 72dea06 | 2015-09-23 10:46:47 -0700 | [diff] [blame] | 326 | launcher->compositor = compositor; |
| 327 | launcher->drm_fd = -1; |
Jonathan Marler | f153c49 | 2021-03-27 09:55:59 -0600 | [diff] [blame] | 328 | launcher->deferred_deactivate = 0; |
Guillaume Champagne | b4bd12b | 2020-01-27 20:08:15 -0500 | [diff] [blame] | 329 | launcher->fd = launcher_weston_environment_get_fd("WESTON_LAUNCHER_SOCK"); |
Leandro Ribeiro | d42fa30 | 2021-06-18 20:34:45 -0300 | [diff] [blame] | 330 | if (launcher->fd == -1) { |
| 331 | free(launcher); |
Jasper St. Pierre | 72dea06 | 2015-09-23 10:46:47 -0700 | [diff] [blame] | 332 | return -1; |
| 333 | } |
Leandro Ribeiro | d42fa30 | 2021-06-18 20:34:45 -0300 | [diff] [blame] | 334 | |
| 335 | launcher->tty = launcher_weston_environment_get_fd("WESTON_TTY_FD"); |
| 336 | /* We don't get a chance to read out the original kb |
| 337 | * mode for the tty, so just hard code K_UNICODE here |
| 338 | * in case we have to clean if weston-launch dies. */ |
| 339 | launcher->kb_mode = K_UNICODE; |
| 340 | |
| 341 | loop = wl_display_get_event_loop(compositor->wl_display); |
| 342 | launcher->source = wl_event_loop_add_fd(loop, launcher->fd, |
| 343 | WL_EVENT_READABLE, |
| 344 | launcher_weston_launch_data, |
| 345 | launcher); |
| 346 | if (launcher->source == NULL) { |
| 347 | free(launcher); |
| 348 | weston_log("failed to get weston-launcher socket fd event source\n"); |
| 349 | return -ENOMEM; |
| 350 | } |
| 351 | |
| 352 | * (struct launcher_weston_launch **) out = launcher; |
| 353 | |
| 354 | return 0; |
Jasper St. Pierre | 72dea06 | 2015-09-23 10:46:47 -0700 | [diff] [blame] | 355 | } |
| 356 | |
| 357 | static void |
| 358 | launcher_weston_launch_destroy(struct weston_launcher *launcher_base) |
| 359 | { |
| 360 | struct launcher_weston_launch *launcher = wl_container_of(launcher_base, launcher, base); |
| 361 | |
| 362 | if (launcher->fd != -1) { |
| 363 | close(launcher->fd); |
| 364 | wl_event_source_remove(launcher->source); |
| 365 | } else { |
| 366 | launcher_weston_launch_restore(&launcher->base); |
Jasper St. Pierre | 72dea06 | 2015-09-23 10:46:47 -0700 | [diff] [blame] | 367 | } |
| 368 | |
| 369 | if (launcher->tty >= 0) |
| 370 | close(launcher->tty); |
| 371 | |
| 372 | free(launcher); |
| 373 | } |
| 374 | |
Giulio Camuffo | a32986e | 2016-12-05 14:50:36 +0100 | [diff] [blame] | 375 | static int |
| 376 | launcher_weston_launch_get_vt(struct weston_launcher *base) |
| 377 | { |
| 378 | struct launcher_weston_launch *launcher = wl_container_of(base, launcher, base); |
| 379 | struct stat s; |
Anurup M | aa7de33 | 2020-12-03 07:55:04 +0530 | [diff] [blame] | 380 | if (fstat(launcher->tty, &s) < 0) { |
| 381 | weston_log("could not fstat launcher tty: %s\n", strerror(errno)); |
Giulio Camuffo | a32986e | 2016-12-05 14:50:36 +0100 | [diff] [blame] | 382 | return -1; |
Anurup M | aa7de33 | 2020-12-03 07:55:04 +0530 | [diff] [blame] | 383 | } |
Giulio Camuffo | a32986e | 2016-12-05 14:50:36 +0100 | [diff] [blame] | 384 | |
| 385 | return minor(s.st_rdev); |
| 386 | } |
| 387 | |
Emil Velikov | 8f7201e | 2017-02-10 20:14:22 +0000 | [diff] [blame] | 388 | const struct launcher_interface launcher_weston_launch_iface = { |
Anurup M | aa7de33 | 2020-12-03 07:55:04 +0530 | [diff] [blame] | 389 | .name = "weston_launch", |
Emil Velikov | 4d6eb17 | 2017-02-10 20:14:23 +0000 | [diff] [blame] | 390 | .connect = launcher_weston_launch_connect, |
| 391 | .destroy = launcher_weston_launch_destroy, |
| 392 | .open = launcher_weston_launch_open, |
| 393 | .close = launcher_weston_launch_close, |
| 394 | .activate_vt = launcher_weston_launch_activate_vt, |
Emil Velikov | 4d6eb17 | 2017-02-10 20:14:23 +0000 | [diff] [blame] | 395 | .get_vt = launcher_weston_launch_get_vt, |
Jasper St. Pierre | 72dea06 | 2015-09-23 10:46:47 -0700 | [diff] [blame] | 396 | }; |