aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/eolian/database_event_api.c
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@samsung.com>2018-05-09 15:44:36 +0200
committerDaniel Kolesa <d.kolesa@samsung.com>2018-05-09 15:44:36 +0200
commit3685bcd61d97056ff0b17ab0586715ce552c2d1b (patch)
tree51de97269421a3b448e624e68c812e424e902e6c /src/lib/eolian/database_event_api.c
parentefl_ui_widget: use efl_data_scope_safe_get instead of macro (diff)
downloadefl-3685bcd61d97056ff0b17ab0586715ce552c2d1b.tar.gz
eolian: add optional warnings about events missing a type
Set the EOLIAN_EVENT_NO_TYPE_WARN environment variable to enable those warnings during Eolian usage. They will be considered a part of the validation then. Use the void type for events to suppress the warning.
Diffstat (limited to 'src/lib/eolian/database_event_api.c')
-rw-r--r--src/lib/eolian/database_event_api.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/eolian/database_event_api.c b/src/lib/eolian/database_event_api.c
index 4b4f460616..32306009e3 100644
--- a/src/lib/eolian/database_event_api.c
+++ b/src/lib/eolian/database_event_api.c
@@ -9,6 +9,8 @@ EAPI const Eolian_Type *
eolian_event_type_get(const Eolian_Event *event)
{
EINA_SAFETY_ON_NULL_RETURN_VAL(event, NULL);
+ if (event->type && (event->type->type == EOLIAN_TYPE_VOID))
+ return NULL;
return event->type;
}