summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMinJeong Kim <minjjj.kim@samsung.com>2014-07-01 08:53:41 -0400
committerMike Blumenkrantz <zmike@osg.samsung.com>2014-08-12 14:46:13 -0400
commit6cc34a5b1550432732b1822448460003e26f4847 (patch)
tree47b94761f77b4548c5450fc3087d53d875aac291
parent84abb11d2ef69cefd7035f9794ddc555a07fd30e (diff)
downloadenlightenment-6cc34a5b1550432732b1822448460003e26f4847.tar.gz
Add missing function
Summary: Added missing function _e_comp_wl_data_find_for_client. @fix Reviewers: devilhorns CC: cedric Differential Revision: https://phab.enlightenment.org/D1102
-rw-r--r--src/bin/e_comp_wl_data.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/bin/e_comp_wl_data.c b/src/bin/e_comp_wl_data.c
index 3e8830183b..643da73d1d 100644
--- a/src/bin/e_comp_wl_data.c
+++ b/src/bin/e_comp_wl_data.c
@@ -2,6 +2,24 @@
#include "e_comp_wl.h"
#include "e_comp_wl_data.h"
+static struct wl_resource *
+_e_comp_wl_data_find_for_client(Eina_List *list, struct wl_client *client)
+{
+ Eina_List *l;
+ struct wl_resource *res;
+
+ if ((!list) || (!client))
+ return NULL;
+
+ EINA_LIST_FOREACH(list, l, res)
+ {
+ if (wl_resource_get_client(res) == client)
+ return res;
+ }
+
+ return NULL;
+}
+
static void
_e_comp_wl_data_offer_cb_accept(struct wl_client *client EINA_UNUSED, struct wl_resource *resource, uint32_t serial, const char *mime_type)
{