summaryrefslogtreecommitdiff
path: root/src/bindings
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@osg.samsung.com>2016-02-19 17:26:27 +0000
committerDaniel Kolesa <d.kolesa@osg.samsung.com>2016-03-03 18:58:11 +0000
commit863212f84a88a8920ebfb9721bbc42e6bf97c0ed (patch)
tree3c4bcf23a99f8dd8065ab27c390700eb54227ee2 /src/bindings
parent4e40b60f0642480f925fea30fa87a1d05b857fcc (diff)
eolian: more old type api removals
Diffstat (limited to 'src/bindings')
-rw-r--r--src/bindings/luajit/eolian.lua35
1 files changed, 14 insertions, 21 deletions
diff --git a/src/bindings/luajit/eolian.lua b/src/bindings/luajit/eolian.lua
index f04e06a674..af36a20c2e 100644
--- a/src/bindings/luajit/eolian.lua
+++ b/src/bindings/luajit/eolian.lua
@@ -277,20 +277,15 @@ ffi.cdef [[
277 Eina_Iterator *eolian_type_subtypes_get(const Eolian_Type *tp); 277 Eina_Iterator *eolian_type_subtypes_get(const Eolian_Type *tp);
278 Eina_Iterator *eolian_typedecl_struct_fields_get(const Eolian_Typedecl *tp); 278 Eina_Iterator *eolian_typedecl_struct_fields_get(const Eolian_Typedecl *tp);
279 const Eolian_Struct_Type_Field *eolian_typedecl_struct_field_get(const Eolian_Typedecl *tp, const char *field); 279 const Eolian_Struct_Type_Field *eolian_typedecl_struct_field_get(const Eolian_Typedecl *tp, const char *field);
280 280 const char *eolian_typedecl_struct_field_name_get(const Eolian_Struct_Type_Field *fl);
281 /* TODO */ 281 const Eolian_Documentation *eolian_typedecl_struct_field_documentation_get(const Eolian_Struct_Type_Field *fl);
282 const char *eolian_type_struct_field_name_get(const Eolian_Struct_Type_Field *fl); 282 const Eolian_Type *eolian_typedecl_struct_field_type_get(const Eolian_Struct_Type_Field *fl);
283 const Eolian_Documentation *eolian_type_struct_field_documentation_get(const Eolian_Struct_Type_Field *fl);
284 const Eolian_Type *eolian_type_struct_field_type_get(const Eolian_Struct_Type_Field *fl);
285
286 Eina_Iterator *eolian_typedecl_enum_fields_get(const Eolian_Typedecl *tp); 283 Eina_Iterator *eolian_typedecl_enum_fields_get(const Eolian_Typedecl *tp);
287 const Eolian_Enum_Type_Field *eolian_typedecl_enum_field_get(const Eolian_Typedecl *tp, const char *field); 284 const Eolian_Enum_Type_Field *eolian_typedecl_enum_field_get(const Eolian_Typedecl *tp, const char *field);
288 285 const char *eolian_typedecl_enum_field_name_get(const Eolian_Enum_Type_Field *fl);
289 /* TODO */ 286 const char *eolian_typedecl_enum_field_c_name_get(const Eolian_Enum_Type_Field *fl);
290 const char *eolian_type_enum_field_name_get(const Eolian_Enum_Type_Field *fl); 287 const Eolian_Documentation *eolian_typedecl_enum_field_documentation_get(const Eolian_Enum_Type_Field *fl);
291 const char *eolian_type_enum_field_c_name_get(const Eolian_Enum_Type_Field *fl); 288 const Eolian_Expression *eolian_typedecl_enum_field_value_get(const Eolian_Enum_Type_Field *fl, Eina_Bool force);
292 const Eolian_Documentation *eolian_type_enum_field_documentation_get(const Eolian_Enum_Type_Field *fl);
293 const Eolian_Expression *eolian_type_enum_field_value_get(const Eolian_Enum_Type_Field *fl, Eina_Bool force);
294 289
295 const char *eolian_typedecl_enum_legacy_prefix_get(const Eolian_Typedecl *tp); 290 const char *eolian_typedecl_enum_legacy_prefix_get(const Eolian_Typedecl *tp);
296 const Eolian_Documentation *eolian_typedecl_documentation_get(const Eolian_Typedecl *tp); 291 const Eolian_Documentation *eolian_typedecl_documentation_get(const Eolian_Typedecl *tp);
@@ -474,52 +469,50 @@ M.typedecl_type = {
474 ALIAS = 4 469 ALIAS = 4
475} 470}
476 471
477-- TODO change func sigs
478ffi.metatype("Eolian_Struct_Type_Field", { 472ffi.metatype("Eolian_Struct_Type_Field", {
479 __index = { 473 __index = {
480 name_get = function(self) 474 name_get = function(self)
481 local v = eolian.eolian_type_struct_field_name_get(self) 475 local v = eolian.eolian_typedecl_struct_field_name_get(self)
482 if v == nil then return nil end 476 if v == nil then return nil end
483 return ffi.string(v) 477 return ffi.string(v)
484 end, 478 end,
485 479
486 documentation_get = function(self) 480 documentation_get = function(self)
487 local v = eolian.eolian_type_struct_field_documentation_get(self) 481 local v = eolian.eolian_typedecl_struct_field_documentation_get(self)
488 if v == nil then return nil end 482 if v == nil then return nil end
489 return v 483 return v
490 end, 484 end,
491 485
492 type_get = function(self) 486 type_get = function(self)
493 local v = eolian.eolian_type_struct_field_type_get(self) 487 local v = eolian.eolian_typedecl_struct_field_type_get(self)
494 if v == nil then return nil end 488 if v == nil then return nil end
495 return v 489 return v
496 end 490 end
497 } 491 }
498}) 492})
499 493
500-- TODO change func sigs
501ffi.metatype("Eolian_Enum_Type_Field", { 494ffi.metatype("Eolian_Enum_Type_Field", {
502 __index = { 495 __index = {
503 name_get = function(self) 496 name_get = function(self)
504 local v = eolian.eolian_type_enum_field_name_get(self) 497 local v = eolian.eolian_typedecl_enum_field_name_get(self)
505 if v == nil then return nil end 498 if v == nil then return nil end
506 return ffi.string(v) 499 return ffi.string(v)
507 end, 500 end,
508 501
509 c_name_get = function(self) 502 c_name_get = function(self)
510 local v = eolian.eolian_type_enum_field_c_name_get(self) 503 local v = eolian.eolian_typedecl_enum_field_c_name_get(self)
511 if v == nil then return nil end 504 if v == nil then return nil end
512 return ffi_stringshare(v) 505 return ffi_stringshare(v)
513 end, 506 end,
514 507
515 documentation_get = function(self) 508 documentation_get = function(self)
516 local v = eolian.eolian_type_enum_field_documentation_get(self) 509 local v = eolian.eolian_typedecl_enum_field_documentation_get(self)
517 if v == nil then return nil end 510 if v == nil then return nil end
518 return v 511 return v
519 end, 512 end,
520 513
521 value_get = function(self, force) 514 value_get = function(self, force)
522 local v = eolian.eolian_type_enum_field_value_get(self, force and 1 or 0) 515 local v = eolian.eolian_typedecl_enum_field_value_get(self, force and 1 or 0)
523 if v == nil then return nil end 516 if v == nil then return nil end
524 return v 517 return v
525 end 518 end