summaryrefslogtreecommitdiff
path: root/src/lib/ecore_wayland
diff options
context:
space:
mode:
authorBryce Harrington <bryce@osg.samsung.com>2015-03-17 19:52:43 -0400
committerMike Blumenkrantz <zmike@osg.samsung.com>2015-03-17 19:52:43 -0400
commitc0bc1be83e55de2b0ed0dc1ad24a8e43461cad5f (patch)
treeeadc26ad527d28b32657fc4d602f3fa5e31e5363 /src/lib/ecore_wayland
parent931ac66be1ccadc58194b2b4cf1e4d51851b0b12 (diff)
ecore-wayland: Doublecheck input validity
Summary: Most of the other ecore-wayland API will return NULL in the (hopefully theoretical) case of bad inputs; this API routine should so similarly for consistency. Reviewers: zmike, cedric Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D2181
Diffstat (limited to 'src/lib/ecore_wayland')
-rw-r--r--src/lib/ecore_wayland/Ecore_Wayland.h2
-rw-r--r--src/lib/ecore_wayland/ecore_wl_dnd.c1
2 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/ecore_wayland/Ecore_Wayland.h b/src/lib/ecore_wayland/Ecore_Wayland.h
index 9460e95..dd1260e 100644
--- a/src/lib/ecore_wayland/Ecore_Wayland.h
+++ b/src/lib/ecore_wayland/Ecore_Wayland.h
@@ -787,6 +787,8 @@ EAPI Eina_Bool ecore_wl_dnd_drag_get(Ecore_Wl_Input *input, const char *type);
787EAPI void ecore_wl_dnd_drag_types_set(Ecore_Wl_Input *input, const char **types_offered); 787EAPI void ecore_wl_dnd_drag_types_set(Ecore_Wl_Input *input, const char **types_offered);
788 788
789/** 789/**
790 * @return the data types being offered for drag-and-drop, or NULL on error
791 *
790 * @ingroup Ecore_Wl_Dnd_Group 792 * @ingroup Ecore_Wl_Dnd_Group
791 * @since 1.8 793 * @since 1.8
792 */ 794 */
diff --git a/src/lib/ecore_wayland/ecore_wl_dnd.c b/src/lib/ecore_wayland/ecore_wl_dnd.c
index 4fd7b05..5165328 100644
--- a/src/lib/ecore_wayland/ecore_wl_dnd.c
+++ b/src/lib/ecore_wayland/ecore_wl_dnd.c
@@ -398,6 +398,7 @@ ecore_wl_dnd_drag_types_get(Ecore_Wl_Input *input)
398 398
399 /* check for valid input. if not, get the default one */ 399 /* check for valid input. if not, get the default one */
400 if (!input) input = _ecore_wl_disp->input; 400 if (!input) input = _ecore_wl_disp->input;
401 if (!input) return NULL;
401 402
402 return &input->data_types; 403 return &input->data_types;
403} 404}