summaryrefslogtreecommitdiff
path: root/src/lib/eolian_cxx
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@osg.samsung.com>2016-05-17 17:14:47 +0100
committerDaniel Kolesa <d.kolesa@osg.samsung.com>2016-05-17 17:50:43 +0100
commit7782c0bcb956263e4b58b9ee5640381fe7b3c4f9 (patch)
tree42845dcc2450ec2815c320379c83c2017fda4f57 /src/lib/eolian_cxx
parentf007380fb948f426d04778965ec4d192fe953cc2 (diff)
eolian: add event_prefix and have classes follow that or eo_prefix by default
Previously events used to use class name as a prefix and ignored eo_prefix when specified. This is no longer the case. Events follow eo_prefix by default now. In order to get around this for classes where this is undesirable, a new field event_prefix was added which takes priority over eo_prefix. If neither is specified, class name is used like previously. @feature
Diffstat (limited to 'src/lib/eolian_cxx')
-rw-r--r--src/lib/eolian_cxx/grammar/eo_class_constructors_generator.hh2
-rw-r--r--src/lib/eolian_cxx/grammar/parameters_generator.hh2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/eolian_cxx/grammar/eo_class_constructors_generator.hh b/src/lib/eolian_cxx/grammar/eo_class_constructors_generator.hh
index 21395e9c1a..03d6283b0a 100644
--- a/src/lib/eolian_cxx/grammar/eo_class_constructors_generator.hh
+++ b/src/lib/eolian_cxx/grammar/eo_class_constructors_generator.hh
@@ -173,7 +173,7 @@ operator<<(std::ostream& out, functors_constructor_methods const& x)
173 { 173 {
174 if (d.is_cb) 174 if (d.is_cb)
175 d.out << tab(3) 175 d.out << tab(3)
176 << "eo_event_callback_add(_eoptr, EO_BASE_EVENT_DEL, " 176 << "eo_event_callback_add(_eoptr, EO_EVENT_DEL, "
177 << "&::efl::eolian::free_callback_callback<" 177 << "&::efl::eolian::free_callback_callback<"
178 << parameter_no_ref_type(d.type, d.name) 178 << parameter_no_ref_type(d.type, d.name)
179 << ">, " << callback_tmp(d.name) << ");" << endl; 179 << ">, " << callback_tmp(d.name) << ");" << endl;
diff --git a/src/lib/eolian_cxx/grammar/parameters_generator.hh b/src/lib/eolian_cxx/grammar/parameters_generator.hh
index 9d27926364..dd692f3044 100644
--- a/src/lib/eolian_cxx/grammar/parameters_generator.hh
+++ b/src/lib/eolian_cxx/grammar/parameters_generator.hh
@@ -123,7 +123,7 @@ operator<<(std::ostream& out, callback_parameter_free_ev_add const& x)
123{ 123{
124 out 124 out
125 << "eo_event_callback_add(" << x._eo_raw_expr 125 << "eo_event_callback_add(" << x._eo_raw_expr
126 << ", EO_BASE_EVENT_DEL, &::efl::eolian::free_callback_callback<" 126 << ", EO_EVENT_DEL, &::efl::eolian::free_callback_callback<"
127 << parameter_no_ref_type(x._type, x._name) << ">, " 127 << parameter_no_ref_type(x._type, x._name) << ">, "
128 << callback_tmp(x._name) << ");"; 128 << callback_tmp(x._name) << ");";
129 return out; 129 return out;