devilhorns pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=31b014de6b176b3df97ed237349a5cf50e3e5e03

commit 31b014de6b176b3df97ed237349a5cf50e3e5e03
Author: Chris Michael <cp.mich...@samsung.com>
Date:   Wed Sep 23 10:16:14 2015 -0400

    ecore-wl2: Add prototype functions to support data listener
    
    Signed-off-by: Chris Michael <cp.mich...@samsung.com>
---
 src/lib/ecore_wl2/ecore_wl2_input.c | 66 +++++++++++++++++++++++++++++++++----
 1 file changed, 60 insertions(+), 6 deletions(-)

diff --git a/src/lib/ecore_wl2/ecore_wl2_input.c 
b/src/lib/ecore_wl2/ecore_wl2_input.c
index db89f35..0ad4378 100644
--- a/src/lib/ecore_wl2/ecore_wl2_input.c
+++ b/src/lib/ecore_wl2/ecore_wl2_input.c
@@ -456,14 +456,68 @@ static const struct wl_touch_listener _touch_listener =
    _touch_cb_cancel
 };
 
+static void
+_data_cb_offer(void *data, struct wl_data_device *data_device, struct 
wl_data_offer *offer)
+{
+   Ecore_Wl2_Input *input;
+
+   input = data;
+   if (!input) return;
+}
+
+static void
+_data_cb_enter(void *data, struct wl_data_device *data_device, unsigned int 
timestmap, struct wl_surface *surface, wl_fixed_t x, wl_fixed_t y, struct 
wl_data_offer *offer)
+{
+   Ecore_Wl2_Input *input;
+
+   input = data;
+   if (!input) return;
+}
+
+static void
+_data_cb_leave(void *data, struct wl_data_device *data_device)
+{
+   Ecore_Wl2_Input *input;
+
+   input = data;
+   if (!input) return;
+}
+
+static void
+_data_cb_motion(void *data, struct wl_data_device *data_device, unsigned int 
timestamp, wl_fixed_t x, wl_fixed_t y)
+{
+   Ecore_Wl2_Input *input;
+
+   input = data;
+   if (!input) return;
+}
+
+static void
+_data_cb_drop(void *data, struct wl_data_device *data_device)
+{
+   Ecore_Wl2_Input *input;
+
+   input = data;
+   if (!input) return;
+}
+
+static void
+_data_cb_selection(void *data, struct wl_data_device *data_device, struct 
wl_data_offer *offer)
+{
+   Ecore_Wl2_Input *input;
+
+   input = data;
+   if (!input) return;
+}
+
 static const struct wl_data_device_listener _data_listener =
 {
-   NULL, // data offer
-   NULL, // data enter
-   NULL, // data leave
-   NULL, // data motion
-   NULL, // data drop
-   NULL, // data selection
+   _data_cb_offer,
+   _data_cb_enter,
+   _data_cb_leave,
+   _data_cb_motion,
+   _data_cb_drop,
+   _data_cb_selection
 };
 
 static void

-- 


Reply via email to