aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/eolian/database_event_api.c
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@osg.samsung.com>2018-03-08 19:30:40 +0100
committerDaniel Kolesa <d.kolesa@osg.samsung.com>2018-03-08 19:47:28 +0100
commit2248131295d0bd3b426ec14646a7731c998f17cc (patch)
tree735a94f957c68a7ce3cb5bb1769b05a638e53189 /src/lib/eolian/database_event_api.c
parenteolian: add APIs to retrieve declarations as objects (diff)
downloadefl-2248131295d0bd3b426ec14646a7731c998f17cc.tar.gz
eolian: give objects names, and reduce duplication
Diffstat (limited to 'src/lib/eolian/database_event_api.c')
-rw-r--r--src/lib/eolian/database_event_api.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/eolian/database_event_api.c b/src/lib/eolian/database_event_api.c
index 0bd4acce86..728c87e1fa 100644
--- a/src/lib/eolian/database_event_api.c
+++ b/src/lib/eolian/database_event_api.c
@@ -9,7 +9,7 @@ EAPI Eina_Stringshare *
eolian_event_name_get(const Eolian_Event *event)
{
EINA_SAFETY_ON_NULL_RETURN_VAL(event, NULL);
- return event->name;
+ return event->base.name;
}
EAPI const Eolian_Type *
@@ -61,8 +61,8 @@ eolian_event_c_name_get(const Eolian_Event *event)
char *tmp = buf;
const char *pfx = event->klass->ev_prefix;
if (!pfx) pfx = event->klass->eo_prefix;
- if (!pfx) pfx = event->klass->full_name;
- snprintf(buf, sizeof(buf), "%s_EVENT_%s", pfx, event->name);
+ if (!pfx) pfx = event->klass->base.name;
+ snprintf(buf, sizeof(buf), "%s_EVENT_%s", pfx, event->base.name);
eina_str_toupper(&tmp);
while ((tmp = strpbrk(tmp, ".,"))) *tmp = '_';
return eina_stringshare_add(buf);
@@ -78,7 +78,7 @@ eolian_class_event_get_by_name(const Eolian_Class *klass, const char *event_name
EINA_LIST_FOREACH(klass->events, itr, event)
{
- if (event->name == shr_ev)
+ if (event->base.name == shr_ev)
goto end;
}