summaryrefslogtreecommitdiff
path: root/src/bin/eolian_cxx
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@samsung.com>2014-07-09 21:02:41 +0100
committerDaniel Kolesa <d.kolesa@samsung.com>2014-07-09 21:02:41 +0100
commitdc1ea844a7ae4f10930689fc5ed73e50d74c0ec2 (patch)
tree4d5fdb9c442f4c219d4a721b88599b766c7a4067 /src/bin/eolian_cxx
parent580aea04cd928a2ab285c72b0b71dd8033218acb (diff)
eolian_cxx: pass everything by ref
Diffstat (limited to 'src/bin/eolian_cxx')
-rw-r--r--src/bin/eolian_cxx/convert.cc4
-rw-r--r--src/bin/eolian_cxx/eolian_wrappers.hh32
2 files changed, 18 insertions, 18 deletions
diff --git a/src/bin/eolian_cxx/convert.cc b/src/bin/eolian_cxx/convert.cc
index 4a6ea4bb39..1e353eb041 100644
--- a/src/bin/eolian_cxx/convert.cc
+++ b/src/bin/eolian_cxx/convert.cc
@@ -38,8 +38,8 @@ convert_eolian_parameters(Eina_List const* parameters,
38 (static_cast<const Eolian_Function_Parameter*>(curr)); 38 (static_cast<const Eolian_Function_Parameter*>(curr));
39 list.push_back 39 list.push_back
40 ({ 40 ({
41 parameter_type(id, func_type), 41 parameter_type(*id, func_type),
42 parameter_name(id) 42 parameter_name(*id)
43 }); 43 });
44 } 44 }
45 return list; 45 return list;
diff --git a/src/bin/eolian_cxx/eolian_wrappers.hh b/src/bin/eolian_cxx/eolian_wrappers.hh
index f7a8163d92..62a6d2f516 100644
--- a/src/bin/eolian_cxx/eolian_wrappers.hh
+++ b/src/bin/eolian_cxx/eolian_wrappers.hh
@@ -233,58 +233,58 @@ property_is_setter(Eolian_Function const& func)
233} 233}
234 234
235inline std::string 235inline std::string
236parameter_name(Eolian_Function_Parameter const *& parameter) 236parameter_name(Eolian_Function_Parameter const& parameter)
237{ 237{
238 return safe_strshare(::eolian_parameter_name_get(parameter)) + "_"; 238 return safe_strshare(::eolian_parameter_name_get(&parameter)) + "_";
239} 239}
240 240
241inline bool 241inline bool
242parameter_is_out(Eolian_Function_Parameter const *& parameter) 242parameter_is_out(Eolian_Function_Parameter const& parameter)
243{ 243{
244 Eolian_Parameter_Dir direction; 244 Eolian_Parameter_Dir direction;
245 ::eolian_parameter_information_get(parameter, &direction, NULL, NULL, NULL); 245 ::eolian_parameter_information_get(&parameter, &direction, NULL, NULL, NULL);
246 return direction == EOLIAN_OUT_PARAM || direction == EOLIAN_INOUT_PARAM; 246 return direction == EOLIAN_OUT_PARAM || direction == EOLIAN_INOUT_PARAM;
247} 247}
248 248
249inline bool 249inline bool
250parameter_is_const(Eolian_Function_Parameter const *& parameter, 250parameter_is_const(Eolian_Function_Parameter const& parameter,
251 Eolian_Function_Type func_type) 251 Eolian_Function_Type func_type)
252{ 252{
253 return ::eolian_parameter_const_attribute_get 253 return ::eolian_parameter_const_attribute_get
254 (parameter, property_is_getter(func_type)); 254 (&parameter, property_is_getter(func_type));
255} 255}
256 256
257inline bool 257inline bool
258parameter_is_const(Eolian_Function_Parameter const *& parameter, 258parameter_is_const(Eolian_Function_Parameter const& parameter,
259 getter_t func_type) 259 getter_t func_type)
260{ 260{
261 return ::eolian_parameter_const_attribute_get 261 return ::eolian_parameter_const_attribute_get
262 (parameter, property_is_getter(func_type.value)); 262 (&parameter, property_is_getter(func_type.value));
263} 263}
264 264
265inline bool 265inline bool
266parameter_is_const(Eolian_Function_Parameter const *& parameter, 266parameter_is_const(Eolian_Function_Parameter const& parameter,
267 setter_t func_type) 267 setter_t func_type)
268{ 268{
269 return ::eolian_parameter_const_attribute_get 269 return ::eolian_parameter_const_attribute_get
270 (parameter, property_is_getter(func_type.value)); 270 (&parameter, property_is_getter(func_type.value));
271} 271}
272 272
273inline bool 273inline bool
274parameter_is_const(Eolian_Function_Parameter const *& parameter, 274parameter_is_const(Eolian_Function_Parameter const& parameter,
275 Eolian_Function const& func) 275 Eolian_Function const& func)
276{ 276{
277 assert(function_type(func) != EOLIAN_PROPERTY); 277 assert(function_type(func) != EOLIAN_PROPERTY);
278 return ::eolian_parameter_const_attribute_get 278 return ::eolian_parameter_const_attribute_get
279 (parameter, property_is_getter(func)); 279 (&parameter, property_is_getter(func));
280} 280}
281 281
282inline efl::eolian::eolian_type_instance 282inline efl::eolian::eolian_type_instance
283parameter_type(Eolian_Function_Parameter const *& parameter, 283parameter_type(Eolian_Function_Parameter const& parameter,
284 Eolian_Function_Type func_type = method_t::value) 284 Eolian_Function_Type func_type = method_t::value)
285{ 285{
286 efl::eolian::eolian_type_instance type 286 efl::eolian::eolian_type_instance type
287 (type_lookup(::eolian_parameter_type_get(parameter))); 287 (type_lookup(::eolian_parameter_type_get(&parameter)));
288 assert(!type.empty()); 288 assert(!type.empty());
289 // XXX implement complex types. 289 // XXX implement complex types.
290 if (parameter_is_out(parameter)) 290 if (parameter_is_out(parameter))
@@ -295,13 +295,13 @@ parameter_type(Eolian_Function_Parameter const *& parameter,
295} 295}
296 296
297inline efl::eolian::eolian_type_instance 297inline efl::eolian::eolian_type_instance
298parameter_type(Eolian_Function_Parameter const *& parameter, getter_t func_type) 298parameter_type(Eolian_Function_Parameter const& parameter, getter_t func_type)
299{ 299{
300 return parameter_type(parameter, func_type.value); 300 return parameter_type(parameter, func_type.value);
301} 301}
302 302
303inline efl::eolian::eolian_type_instance 303inline efl::eolian::eolian_type_instance
304parameter_type(Eolian_Function_Parameter const *& parameter, setter_t func_type) 304parameter_type(Eolian_Function_Parameter const& parameter, setter_t func_type)
305{ 305{
306 return parameter_type(parameter, func_type.value); 306 return parameter_type(parameter, func_type.value);
307} 307}