summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Michael <cpmichael@osg.samsung.com>2016-05-27 09:55:11 -0400
committerChris Michael <cpmichael@osg.samsung.com>2016-05-27 11:57:53 -0400
commit09805d2b15a71a361ec4bf3154f797fe3314775d (patch)
treeaddf704c83a83cb032b4cb0f13fdde9d9ffd70e4
parent593961c2e21b1bb1023e04231619d21af30ab767 (diff)
ecore-drm2: Add API functions to support cacheing of context & keymapdevs/devilhorns/ecore_drm2
@feature Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
-rw-r--r--src/lib/ecore_drm2/Ecore_Drm2.h22
-rw-r--r--src/lib/ecore_drm2/ecore_drm2_device.c16
2 files changed, 38 insertions, 0 deletions
diff --git a/src/lib/ecore_drm2/Ecore_Drm2.h b/src/lib/ecore_drm2/Ecore_Drm2.h
index d8a1c3e31c..fa2e916c76 100644
--- a/src/lib/ecore_drm2/Ecore_Drm2.h
+++ b/src/lib/ecore_drm2/Ecore_Drm2.h
@@ -242,6 +242,28 @@ EAPI void ecore_drm2_device_window_set(Ecore_Drm2_Device *device, unsigned int w
242EAPI void ecore_drm2_device_pointer_max_set(Ecore_Drm2_Device *device, int w, int h); 242EAPI void ecore_drm2_device_pointer_max_set(Ecore_Drm2_Device *device, int w, int h);
243 243
244/** 244/**
245 * Set a cached context to be used on keyboards
246 *
247 * @param device
248 * @param context
249 *
250 * @ingroup Ecore_Drm2_Device_Group
251 * @since 1.18
252 */
253EAPI void ecore_drm2_device_keyboard_cached_context_set(Ecore_Drm2_Device *device, void *context);
254
255/**
256 * Set a cached keymap to be used on keyboards
257 *
258 * @param device
259 * @param keymap
260 *
261 * @ingroup Ecore_Drm2_Device_Group
262 * @since 1.18
263 */
264EAPI void ecore_drm2_device_keyboard_cached_keymap_set(Ecore_Drm2_Device *device, void *keymap);
265
266/**
245 * Get the crtcs of a given device 267 * Get the crtcs of a given device
246 * 268 *
247 * @param device 269 * @param device
diff --git a/src/lib/ecore_drm2/ecore_drm2_device.c b/src/lib/ecore_drm2/ecore_drm2_device.c
index b4948d4121..95b7315935 100644
--- a/src/lib/ecore_drm2/ecore_drm2_device.c
+++ b/src/lib/ecore_drm2/ecore_drm2_device.c
@@ -265,6 +265,22 @@ ecore_drm2_device_pointer_max_set(Ecore_Drm2_Device *device, int w, int h)
265 elput_input_pointer_max_set(device->em, w, h); 265 elput_input_pointer_max_set(device->em, w, h);
266} 266}
267 267
268EAPI void
269ecore_drm2_device_keyboard_cached_context_set(Ecore_Drm2_Device *device, void *context)
270{
271 EINA_SAFETY_ON_NULL_RETURN(device);
272
273 elput_input_keyboard_cached_context_set(device->em, context);
274}
275
276EAPI void
277ecore_drm2_device_keyboard_cached_keymap_set(Ecore_Drm2_Device *device, void *keymap)
278{
279 EINA_SAFETY_ON_NULL_RETURN(device);
280
281 elput_input_keyboard_cached_keymap_set(device->em, keymap);
282}
283
268EAPI unsigned int * 284EAPI unsigned int *
269ecore_drm2_device_crtcs_get(Ecore_Drm2_Device *device, int *num) 285ecore_drm2_device_crtcs_get(Ecore_Drm2_Device *device, int *num)
270{ 286{