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
This commit is contained in:
MinJeong Kim 2014-07-01 08:53:41 -04:00 committed by Chris Michael
parent 5481440c75
commit b9caebbf7b
1 changed files with 18 additions and 0 deletions

View File

@ -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)
{