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.
This commit is contained in:
Tom Hacohen 2016-08-17 11:24:48 +01:00
parent 042e94f10d
commit b623d89b01
2 changed files with 2 additions and 2 deletions

View File

@ -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";

View File

@ -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. */