From b623d89b0166e26eceee1f4dfb88b2ded0400c7e Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Wed, 17 Aug 2016 11:24:48 +0100 Subject: [PATCH] Efl Object: Make event description arrays const. This was an oversight. They should have been const arrays, and not just arrays of pointers to const items. --- src/bin/eolian/eo_generator.c | 2 +- src/lib/eo/Eo.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bin/eolian/eo_generator.c b/src/bin/eolian/eo_generator.c index 96e2618..425e03a 100644 --- a/src/bin/eolian/eo_generator.c +++ b/src/bin/eolian/eo_generator.c @@ -23,7 +23,7 @@ static const Efl_Op_Description _@#class_op_desc[] = {@#list_op\n};\n\n"; static const char tmpl_events_desc[] = "\ -static const Efl_Event_Description *_@#class_event_desc[] = {@#list_evdesc\n\ +static const Efl_Event_Description * const _@#class_event_desc[] = {@#list_evdesc\n\ NULL\n\ };\n\n"; diff --git a/src/lib/eo/Eo.h b/src/lib/eo/Eo.h index b03b9ed..0911e34 100644 --- a/src/lib/eo/Eo.h +++ b/src/lib/eo/Eo.h @@ -411,7 +411,7 @@ struct _Efl_Class_Description const char *name; /**< The name of the class. */ Efl_Class_Type type; /**< The type of the class. */ Efl_Object_Ops ops; /**< The ops description, should be filled using #EFL_CLASS_DESCRIPTION_OPS (later sorted by Eo). */ - const Efl_Event_Description **events; /**< The event descriptions for this class. */ + const Efl_Event_Description * const *events; /**< The event descriptions for this class. */ size_t data_size; /**< The size of data (private + protected + public) this class needs per object. */ void (*class_constructor)(Efl_Class *klass); /**< The constructor of the class. */ void (*class_destructor)(Efl_Class *klass); /**< The destructor of the class. */ -- 2.7.4