summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/ecore_drm2/Ecore_Drm2.h13
-rw-r--r--src/lib/ecore_drm2/ecore_drm2_device.c8
2 files changed, 21 insertions, 0 deletions
diff --git a/src/lib/ecore_drm2/Ecore_Drm2.h b/src/lib/ecore_drm2/Ecore_Drm2.h
index fa2e916c76..3de799933b 100644
--- a/src/lib/ecore_drm2/Ecore_Drm2.h
+++ b/src/lib/ecore_drm2/Ecore_Drm2.h
@@ -303,6 +303,19 @@ EAPI void ecore_drm2_device_screen_size_range_get(Ecore_Drm2_Device *device, int
303EAPI void ecore_drm2_device_calibrate(Ecore_Drm2_Device *device, int w, int h); 303EAPI void ecore_drm2_device_calibrate(Ecore_Drm2_Device *device, int w, int h);
304 304
305/** 305/**
306 * Try to switch to a given virtual terminal
307 *
308 * @param device
309 * @param vt
310 *
311 * @return EINA_TRUE on success, EINA_FALSE otherwise
312 *
313 * @ingroup Ecore_Drm2_Device_Group
314 * @since 1.18
315 */
316EAPI Eina_Bool ecore_drm2_device_vt_set(Ecore_Drm2_Device *device, int vt);
317
318/**
306 * @defgroup Ecore_Drm2_Output_Group Drm output functions 319 * @defgroup Ecore_Drm2_Output_Group Drm output functions
307 * 320 *
308 * Functions that deal with setup of outputs 321 * Functions that deal with setup of outputs
diff --git a/src/lib/ecore_drm2/ecore_drm2_device.c b/src/lib/ecore_drm2/ecore_drm2_device.c
index 8794063a2a..8f2e43cfde 100644
--- a/src/lib/ecore_drm2/ecore_drm2_device.c
+++ b/src/lib/ecore_drm2/ecore_drm2_device.c
@@ -363,3 +363,11 @@ ecore_drm2_device_calibrate(Ecore_Drm2_Device *device, int w, int h)
363 363
364 elput_input_devices_calibrate(device->em, w, h); 364 elput_input_devices_calibrate(device->em, w, h);
365} 365}
366
367EAPI Eina_Bool
368ecore_drm2_device_vt_set(Ecore_Drm2_Device *device, int vt)
369{
370 EINA_SAFETY_ON_NULL_RETURN_VAL(device, EINA_FALSE);
371
372 return elput_manager_vt_set(device->em, vt);
373}