summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2016-08-17 11:24:48 +0100
committerTom Hacohen <tom@stosb.com>2016-08-17 12:03:49 +0100
commitb623d89b0166e26eceee1f4dfb88b2ded0400c7e (patch)
tree0db1123796e86d7f8d1bd7c43ce14e1cd053be23
parent042e94f10d821494bc79eb84637abfdff6e04bf7 (diff)
downloadefl-b623d89b0166e26eceee1f4dfb88b2ded0400c7e.tar.gz
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.
-rw-r--r--src/bin/eolian/eo_generator.c2
-rw-r--r--src/lib/eo/Eo.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/eolian/eo_generator.c b/src/bin/eolian/eo_generator.c
index 96e2618ee7..425e03a259 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 b03b9edf4f..0911e341cb 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. */