summaryrefslogtreecommitdiffstats
path: root/lib/efl/ffi/eina
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2011-04-28 15:11:39 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2011-04-28 15:11:39 +0200
commitb6f478475c6d29da86aba650793fe46b0548207f (patch)
tree8ff4a9b42bfc62fa2fca3f15273b6a9eb1931f25 /lib/efl/ffi/eina
parentef95395fd1467b2f84ad664356d5b6d8dd13b71a (diff)
downloadffi-efl-b6f478475c6d29da86aba650793fe46b0548207f.zip
ffi-efl-b6f478475c6d29da86aba650793fe46b0548207f.tar.gz
regenerate lib/efl/ffi with new hierarchy
Diffstat (limited to 'lib/efl/ffi/eina')
-rw-r--r--lib/efl/ffi/eina/eina_list.rb105
-rw-r--r--lib/efl/ffi/eina/eina_types.rb44
2 files changed, 149 insertions, 0 deletions
diff --git a/lib/efl/ffi/eina/eina_list.rb b/lib/efl/ffi/eina/eina_list.rb
new file mode 100644
index 0000000..12001c6
--- /dev/null
+++ b/lib/efl/ffi/eina/eina_list.rb
@@ -0,0 +1,105 @@
+#! /usr/bin/env ruby
+# -*- coding: UTF-8 -*-
+#
+require 'efl/ffi'
+#
+module Efl
+ #
+ module EinaList
+ def self.method_missing m, *args, &block
+ return Efl::FFI.send 'eina_list_'+m.to_s, *args, &block
+ end
+ end
+ #
+ module FFI
+ #
+ #
+ ffi_lib 'eina'
+ #
+ # ENUMS
+ #
+ # TYPEDEFS
+ # typedef struct _Eina_List Eina_List;
+ typedef :pointer, :eina_list
+ typedef :pointer, :eina_list_p
+ typedef :pointer, :eina_list_pp
+ # typedef struct _Eina_List_Accounting Eina_List_Accounting;
+ typedef :pointer, :eina_list_accounting
+ #
+ # CALLBACKS
+ #
+ # FUNCTIONS
+ fcts = [
+ # EAPI Eina_List *eina_list_append(Eina_List *list, const void *data);
+ [ :eina_list_append, [ :eina_list_p, :void_p ], :eina_list_p ],
+ # EAPI Eina_List *eina_list_prepend(Eina_List *list, const void *data);
+ [ :eina_list_prepend, [ :eina_list_p, :void_p ], :eina_list_p ],
+ # EAPI Eina_List *eina_list_append_relative(Eina_List *list, const void *data, const void *relative);
+ [ :eina_list_append_relative, [ :eina_list_p, :void_p, :void_p ], :eina_list_p ],
+ # EAPI Eina_List *eina_list_append_relative_list(Eina_List *list, const void *data, Eina_List *relative);
+ [ :eina_list_append_relative_list, [ :eina_list_p, :void_p, :eina_list_p ], :eina_list_p ],
+ # EAPI Eina_List *eina_list_prepend_relative(Eina_List *list, const void *data, const void *relative);
+ [ :eina_list_prepend_relative, [ :eina_list_p, :void_p, :void_p ], :eina_list_p ],
+ # EAPI Eina_List *eina_list_prepend_relative_list(Eina_List *list, const void *data, Eina_List *relative);
+ [ :eina_list_prepend_relative_list, [ :eina_list_p, :void_p, :eina_list_p ], :eina_list_p ],
+ # EAPI Eina_List *eina_list_sorted_insert(Eina_List *list, Eina_Compare_Cb func, const void *data);
+ [ :eina_list_sorted_insert, [ :eina_list_p, :eina_compare_cb, :void_p ], :eina_list_p ],
+ # EAPI Eina_List *eina_list_remove(Eina_List *list, const void *data);
+ [ :eina_list_remove, [ :eina_list_p, :void_p ], :eina_list_p ],
+ # EAPI Eina_List *eina_list_remove_list(Eina_List *list, Eina_List *remove_list);
+ [ :eina_list_remove_list, [ :eina_list_p, :eina_list_p ], :eina_list_p ],
+ # EAPI Eina_List *eina_list_promote_list(Eina_List *list, Eina_List *move_list);
+ [ :eina_list_promote_list, [ :eina_list_p, :eina_list_p ], :eina_list_p ],
+ # EAPI Eina_List *eina_list_demote_list(Eina_List *list, Eina_List *move_list);
+ [ :eina_list_demote_list, [ :eina_list_p, :eina_list_p ], :eina_list_p ],
+ # EAPI void *eina_list_data_find(const Eina_List *list, const void *data) EINA_PURE;
+ [ :eina_list_data_find, [ :eina_list_p, :void_p ], :void_p ],
+ # EAPI Eina_List *eina_list_data_find_list(const Eina_List *list, const void *data) EINA_PURE;
+ [ :eina_list_data_find_list, [ :eina_list_p, :void_p ], :eina_list_p ],
+ # EAPI Eina_Bool eina_list_move(Eina_List **to, Eina_List **from, void *data);
+ [ :eina_list_move, [ :eina_list_pp, :eina_list_pp, :void_p ], :eina_bool ],
+ # EAPI Eina_Bool eina_list_move_list(Eina_List **to, Eina_List **from, Eina_List *data);
+ [ :eina_list_move_list, [ :eina_list_pp, :eina_list_pp, :eina_list_p ], :eina_bool ],
+ # EAPI Eina_List *eina_list_free(Eina_List *list);
+ [ :eina_list_free, [ :eina_list_p ], :eina_list_p ],
+ # EAPI void *eina_list_nth(const Eina_List *list, unsigned int n) EINA_PURE EINA_WARN_UNUSED_RESULT;
+ [ :eina_list_nth, [ :eina_list_p, :uint ], :void_p ],
+ # EAPI Eina_List *eina_list_nth_list(const Eina_List *list, unsigned int n) EINA_PURE EINA_WARN_UNUSED_RESULT;
+ [ :eina_list_nth_list, [ :eina_list_p, :uint ], :eina_list_p ],
+ # EAPI Eina_List *eina_list_reverse(Eina_List *list) EINA_WARN_UNUSED_RESULT;
+ [ :eina_list_reverse, [ :eina_list_p ], :eina_list_p ],
+ # EAPI Eina_List *eina_list_reverse_clone(const Eina_List *list) EINA_WARN_UNUSED_RESULT;
+ [ :eina_list_reverse_clone, [ :eina_list_p ], :eina_list_p ],
+ # EAPI Eina_List *eina_list_clone(const Eina_List *list) EINA_WARN_UNUSED_RESULT;
+ [ :eina_list_clone, [ :eina_list_p ], :eina_list_p ],
+ # EAPI Eina_List *eina_list_sort(Eina_List *list, unsigned int size, Eina_Compare_Cb func);
+ [ :eina_list_sort, [ :eina_list_p, :uint, :eina_compare_cb ], :eina_list_p ],
+ # EAPI Eina_List *eina_list_merge(Eina_List *left, Eina_List *right) EINA_WARN_UNUSED_RESULT;
+ [ :eina_list_merge, [ :eina_list_p, :eina_list_p ], :eina_list_p ],
+ # EAPI Eina_List *eina_list_sorted_merge(Eina_List *left, Eina_List *right, Eina_Compare_Cb func);
+ [ :eina_list_sorted_merge, [ :eina_list_p, :eina_list_p, :eina_compare_cb ], :eina_list_p ],
+ # EAPI Eina_List *eina_list_split_list(Eina_List *list, Eina_List *relative, Eina_List **right) EINA_WARN_UNUSED_RESULT;
+ [ :eina_list_split_list, [ :eina_list_p, :eina_list_p, :eina_list_pp ], :eina_list_p ],
+ # EAPI Eina_List *eina_list_search_sorted_near_list(const Eina_List *list, Eina_Compare_Cb func, const void *data, int *result_cmp);
+ [ :eina_list_search_sorted_near_list, [ :eina_list_p, :eina_compare_cb, :void_p, :int_p ], :eina_list_p ],
+ # EAPI Eina_List *eina_list_search_sorted_list(const Eina_List *list, Eina_Compare_Cb func, const void *data);
+ [ :eina_list_search_sorted_list, [ :eina_list_p, :eina_compare_cb, :void_p ], :eina_list_p ],
+ # EAPI void *eina_list_search_sorted(const Eina_List *list, Eina_Compare_Cb func, const void *data);
+ [ :eina_list_search_sorted, [ :eina_list_p, :eina_compare_cb, :void_p ], :void_p ],
+ # EAPI Eina_List *eina_list_search_unsorted_list(const Eina_List *list, Eina_Compare_Cb func, const void *data);
+ [ :eina_list_search_unsorted_list, [ :eina_list_p, :eina_compare_cb, :void_p ], :eina_list_p ],
+ # EAPI void *eina_list_search_unsorted(const Eina_List *list, Eina_Compare_Cb func, const void *data);
+ [ :eina_list_search_unsorted, [ :eina_list_p, :eina_compare_cb, :void_p ], :void_p ],
+ # EAPI Eina_Iterator *eina_list_iterator_new(const Eina_List *list) EINA_MALLOC EINA_WARN_UNUSED_RESULT;
+ [ :eina_list_iterator_new, [ :eina_list_p ], :eina_iterator_p ],
+ # EAPI Eina_Iterator *eina_list_iterator_reversed_new(const Eina_List *list) EINA_MALLOC EINA_WARN_UNUSED_RESULT;
+ [ :eina_list_iterator_reversed_new, [ :eina_list_p ], :eina_iterator_p ],
+ # EAPI Eina_Accessor *eina_list_accessor_new(const Eina_List *list) EINA_MALLOC EINA_WARN_UNUSED_RESULT;
+ [ :eina_list_accessor_new, [ :eina_list_p ], :eina_accessor_p ],
+ ]
+ #
+ attach_fcts fcts
+ end
+end
+#
+# EOF
diff --git a/lib/efl/ffi/eina/eina_types.rb b/lib/efl/ffi/eina/eina_types.rb
new file mode 100644
index 0000000..5a5dd4d
--- /dev/null
+++ b/lib/efl/ffi/eina/eina_types.rb
@@ -0,0 +1,44 @@
+#! /usr/bin/env ruby
+# -*- coding: UTF-8 -*-
+#
+require 'efl/ffi'
+#
+module Efl
+ #
+ module Eina
+ def self.method_missing m, *args, &block
+ return Efl::FFI.send 'eina_'+m.to_s, *args, &block
+ end
+ end
+ #
+ module FFI
+ #
+ #
+ ffi_lib 'eina'
+ #
+ # ENUMS
+ #
+ # TYPEDEFS
+ # typedef unsigned char Eina_Bool;
+ typedef :bool, :eina_bool
+ typedef :pointer, :eina_bool_p
+ #
+ # CALLBACKS
+ # typedef int (*Eina_Compare_Cb) (const void *data1, const void *data2);
+ callback :eina_compare_cb, [ :void_p, :void_p ], :int
+ # typedef Eina_Bool (*Eina_Each_Cb) (const void *container, void *data, void *fdata);
+ callback :eina_each_cb, [ :void_p, :void_p, :void_p ], :eina_bool
+ # typedef void (*Eina_Free_Cb) (void *data);
+ callback :eina_free_cb, [ :void_p ], :void
+ #
+ # FUNCTIONS
+ fcts = [
+ # EAPI extern const unsigned int eina_prime_table[];
+ # FIXME
+ ]
+ #
+ attach_fcts fcts
+ end
+end
+#
+# EOF