{
Plugin *p = NULL;
- if (!it || (it && !CHECK_TYPE(it, EVRY_TYPE_FILE)))
+ if (!it || !(CHECK_TYPE(it, EVRY_TYPE_FILE)))
return NULL;
- /* GET_PLUGIN(parent, plugin); */
GET_FILE(file, it);
if (!evry->file_path_get(file) ||
!ecore_file_is_dir(file->path))
return NULL;
- p = E_NEW(Plugin, 1);
- p->base = *plugin;
- p->base.items = NULL;
+ EVRY_PLUGIN_INSTANCE(p, plugin);
p->directory = eina_stringshare_add(file->path);
p->parent = EINA_TRUE;
{
Plugin *p = NULL;
- if (!it || (it && !CHECK_TYPE(it, EVRY_TYPE_FILE)))
+ if (!it || !CHECK_TYPE(it, EVRY_TYPE_FILE))
return NULL;
GET_FILE(file, it);
if (it && !CHECK_TYPE(it, EVRY_TYPE_ACTION))
return NULL;
- p = E_NEW(Plugin, 1);
- p->base = *plugin;
- p->base.items = NULL;
+ EVRY_PLUGIN_INSTANCE(p, plugin);
p->parent = EINA_FALSE;
if (it)