summaryrefslogtreecommitdiff
path: root/src/bin/eolian_cxx
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@samsung.com>2014-08-13 12:06:48 +0100
committerDaniel Kolesa <d.kolesa@samsung.com>2014-08-21 09:26:04 +0100
commit057e01d67fdcbb715580a4e34af52f09de4e0e29 (patch)
treeb737b6d6d48d26136defe6d421601add3a42bec9 /src/bin/eolian_cxx
parentffbf149da16962b4c1540aa261c46d7e6b455021 (diff)
eolian: API refactoring
Start getting rid of the terrible _information_get APIs, starting with events.
Diffstat (limited to 'src/bin/eolian_cxx')
-rw-r--r--src/bin/eolian_cxx/eolian_wrappers.hh6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bin/eolian_cxx/eolian_wrappers.hh b/src/bin/eolian_cxx/eolian_wrappers.hh
index 6269f37fef..7f10b49e0d 100644
--- a/src/bin/eolian_cxx/eolian_wrappers.hh
+++ b/src/bin/eolian_cxx/eolian_wrappers.hh
@@ -351,8 +351,8 @@ inline efl::eolian::eo_event
351event_create(Eolian_Class const& klass, const Eolian_Event *event_) 351event_create(Eolian_Class const& klass, const Eolian_Event *event_)
352{ 352{
353 efl::eolian::eo_event event; 353 efl::eolian::eo_event event;
354 const char *name, *comment; 354 const char *name = ::eolian_event_name_get(event_);
355 if(::eolian_class_event_information_get(event_, &name, NULL, &comment)) 355 if (name)
356 { 356 {
357 std::string name_ = safe_str(name); 357 std::string name_ = safe_str(name);
358 std::transform(name_.begin(), name_.end(), name_.begin(), 358 std::transform(name_.begin(), name_.end(), name_.begin(),
@@ -360,7 +360,7 @@ event_create(Eolian_Class const& klass, const Eolian_Event *event_)
360 event.name = normalize_spaces(name_); 360 event.name = normalize_spaces(name_);
361 event.eo_name = safe_upper 361 event.eo_name = safe_upper
362 (find_replace(class_full_name(klass), ".", "_") + "_EVENT_" + event.name); 362 (find_replace(class_full_name(klass), ".", "_") + "_EVENT_" + event.name);
363 event.comment = safe_str(comment); 363 event.comment = safe_str(eolian_event_description_get(event_));
364 } 364 }
365 return event; 365 return event;
366} 366}