aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/eolian/database_event_api.c
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@samsung.com>2018-11-04 18:32:05 +0100
committerDaniel Kolesa <d.kolesa@samsung.com>2018-11-04 18:32:05 +0100
commit82688c5ece402b299f3d994ac3524fc6663afc90 (patch)
treecd3f3c85b716a6ac77455fc2c034466ca0e3f4b6 /src/lib/eolian/database_event_api.c
parenteolian: add eolian_implement_implementing_class_get (diff)
downloadefl-82688c5ece402b299f3d994ac3524fc6663afc90.tar.gz
eolian: expose API to retrieve the class of an event
This information has been stored and used in Eolian until now but not exposed to the API user. While there are roundabout ways to retrieve the class for an event, this one is direct and costs us nothing.
Diffstat (limited to 'src/lib/eolian/database_event_api.c')
-rw-r--r--src/lib/eolian/database_event_api.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/eolian/database_event_api.c b/src/lib/eolian/database_event_api.c
index 32306009e3..97c8df8b9c 100644
--- a/src/lib/eolian/database_event_api.c
+++ b/src/lib/eolian/database_event_api.c
@@ -14,6 +14,13 @@ eolian_event_type_get(const Eolian_Event *event)
return event->type;
}
+EAPI const Eolian_Class *
+eolian_event_class_get(const Eolian_Event *event)
+{
+ EINA_SAFETY_ON_NULL_RETURN_VAL(event, NULL);
+ return event->klass;
+}
+
EAPI const Eolian_Documentation *
eolian_event_documentation_get(const Eolian_Event *event)
{