ecore-wl2: return some copied code back to its original state

this will make future rebases easier
This commit is contained in:
Mike Blumenkrantz 2016-04-20 11:16:22 -04:00
parent 19239b9251
commit 46666de75d
1 changed files with 6 additions and 10 deletions

View File

@ -44,19 +44,15 @@ struct _dnd_read_ctx
};
static void
_offer_cb_offer(void *data, struct wl_data_offer *offer EINA_UNUSED, const char *type)
data_offer_offer(void *data, struct wl_data_offer *wl_data_offer EINA_UNUSED, const char *type)
{
Ecore_Wl2_Dnd_Source *source;
char **t;
Ecore_Wl2_Dnd_Source *source = data;
char **p;
source = data;
if ((!source) || (!type)) return;
t = wl_array_add(&source->types, sizeof(*t));
if (t) *t = strdup(type);
p = wl_array_add(&source->types, sizeof *p);
*p = strdup(type);
}
static void
data_offer_source_actions(void *data, struct wl_data_offer *wl_data_offer EINA_UNUSED, uint32_t source_actions)
{
@ -75,7 +71,7 @@ data_offer_action(void *data, struct wl_data_offer *wl_data_offer EINA_UNUSED, u
static const struct wl_data_offer_listener _offer_listener =
{
_offer_cb_offer,
data_offer_offer,
data_offer_source_actions,
data_offer_action
};