summaryrefslogtreecommitdiffstats
path: root/lib/efl/ffi/eina
diff options
context:
space:
mode:
Diffstat (limited to 'lib/efl/ffi/eina')
-rw-r--r--lib/efl/ffi/eina/eina_hash.rb108
-rw-r--r--lib/efl/ffi/eina/eina_list.rb105
-rw-r--r--lib/efl/ffi/eina/eina_types.rb44
3 files changed, 0 insertions, 257 deletions
diff --git a/lib/efl/ffi/eina/eina_hash.rb b/lib/efl/ffi/eina/eina_hash.rb
deleted file mode 100644
index 1b110cc..0000000
--- a/lib/efl/ffi/eina/eina_hash.rb
+++ /dev/null
@@ -1,108 +0,0 @@
-#! /usr/bin/env ruby
-# -*- coding: UTF-8 -*-
-#
-require 'efl/ffi'
-#
-module Efl
- #
- module EinaHash
- def self.method_missing m, *args, &block
- return Efl::FFI.send 'eina_hash_'+m.to_s, *args, &block
- end
- end
- #
- module FFI
- #
- #
- ffi_lib 'eina'
- #
- # ENUMS
- #
- # TYPEDEFS
- # typedef struct _Eina_Hash Eina_Hash;
- typedef :pointer, :eina_hash
- typedef :pointer, :eina_hash_p
- # typedef struct _Eina_Hash_Tuple Eina_Hash_Tuple;
- typedef :pointer, :eina_hash_tuple
- #
- # CALLBACKS
- # typedef unsigned int (*Eina_Key_Length) (const void *key);
- callback :eina_key_length, [ :void_p ], :uint
- # typedef int (*Eina_Key_Cmp) (const void *key1, int key1_length, const void *key2, int key2_length);
- callback :eina_key_cmp, [ :void_p, :int, :void_p, :int ], :int
- # typedef int (*Eina_Key_Hash) (const void *key, int key_length);
- callback :eina_key_hash, [ :void_p, :int ], :int
- # typedef Eina_Bool (*Eina_Hash_Foreach) (const Eina_Hash *hash, const void *key, void *data, void *fdata);
- callback :eina_hash_foreach, [ :eina_hash_p, :void_p, :void_p, :void_p ], :eina_bool
- #
- # FUNCTIONS
- fcts = [
- # EAPI Eina_Hash *eina_hash_new(Eina_Key_Length key_length_cb, Eina_Key_Cmp key_cmp_cb, Eina_Key_Hash key_hash_cb, Eina_Free_Cb data_free_cb, int buckets_power_size);
- [ :eina_hash_new, [ :eina_key_length, :eina_key_cmp, :eina_key_hash, :eina_free_cb, :int ], :eina_hash_p ],
- # EAPI Eina_Hash *eina_hash_string_djb2_new(Eina_Free_Cb data_free_cb);
- [ :eina_hash_string_djb2_new, [ :eina_free_cb ], :eina_hash_p ],
- # EAPI Eina_Hash *eina_hash_string_superfast_new(Eina_Free_Cb data_free_cb);
- [ :eina_hash_string_superfast_new, [ :eina_free_cb ], :eina_hash_p ],
- # EAPI Eina_Hash *eina_hash_string_small_new(Eina_Free_Cb data_free_cb);
- [ :eina_hash_string_small_new, [ :eina_free_cb ], :eina_hash_p ],
- # EAPI Eina_Hash *eina_hash_int32_new(Eina_Free_Cb data_free_cb);
- [ :eina_hash_int32_new, [ :eina_free_cb ], :eina_hash_p ],
- # EAPI Eina_Hash *eina_hash_int64_new(Eina_Free_Cb data_free_cb);
- [ :eina_hash_int64_new, [ :eina_free_cb ], :eina_hash_p ],
- # EAPI Eina_Hash *eina_hash_pointer_new(Eina_Free_Cb data_free_cb);
- [ :eina_hash_pointer_new, [ :eina_free_cb ], :eina_hash_p ],
- # EAPI Eina_Hash *eina_hash_stringshared_new(Eina_Free_Cb data_free_cb);
- [ :eina_hash_stringshared_new, [ :eina_free_cb ], :eina_hash_p ],
- # EAPI Eina_Bool eina_hash_add(Eina_Hash *hash, const void *key, const void *data);
- [ :eina_hash_add, [ :eina_hash_p, :void_p, :void_p ], :eina_bool ],
- # EAPI Eina_Bool eina_hash_direct_add(Eina_Hash *hash, const void *key, const void *data);
- [ :eina_hash_direct_add, [ :eina_hash_p, :void_p, :void_p ], :eina_bool ],
- # EAPI Eina_Bool eina_hash_del(Eina_Hash *hash, const void *key, const void *data);
- [ :eina_hash_del, [ :eina_hash_p, :void_p, :void_p ], :eina_bool ],
- # EAPI void *eina_hash_find(const Eina_Hash *hash, const void *key);
- [ :eina_hash_find, [ :eina_hash_p, :void_p ], :void_p ],
- # EAPI void *eina_hash_modify(Eina_Hash *hash, const void *key, const void *data);
- [ :eina_hash_modify, [ :eina_hash_p, :void_p, :void_p ], :void_p ],
- # EAPI void *eina_hash_set(Eina_Hash *hash, const void *key, const void *data);
- [ :eina_hash_set, [ :eina_hash_p, :void_p, :void_p ], :void_p ],
- # EAPI Eina_Bool eina_hash_move(Eina_Hash *hash, const void *old_key, const void *new_key);
- [ :eina_hash_move, [ :eina_hash_p, :void_p, :void_p ], :eina_bool ],
- # EAPI void eina_hash_free(Eina_Hash *hash);
- [ :eina_hash_free, [ :eina_hash_p ], :void ],
- # EAPI void eina_hash_free_buckets(Eina_Hash *hash);
- [ :eina_hash_free_buckets, [ :eina_hash_p ], :void ],
- # EAPI int eina_hash_population(const Eina_Hash *hash);
- [ :eina_hash_population, [ :eina_hash_p ], :int ],
- # EAPI Eina_Bool eina_hash_add_by_hash(Eina_Hash *hash, const void *key, int key_length, int key_hash, const void *data);
- [ :eina_hash_add_by_hash, [ :eina_hash_p, :void_p, :int, :int, :void_p ], :eina_bool ],
- # EAPI Eina_Bool eina_hash_direct_add_by_hash(Eina_Hash *hash, const void *key, int key_length, int key_hash, const void *data);
- [ :eina_hash_direct_add_by_hash, [ :eina_hash_p, :void_p, :int, :int, :void_p ], :eina_bool ],
- # EAPI Eina_Bool eina_hash_del_by_key_hash(Eina_Hash *hash, const void *key, int key_length, int key_hash);
- [ :eina_hash_del_by_key_hash, [ :eina_hash_p, :void_p, :int, :int ], :eina_bool ],
- # EAPI Eina_Bool eina_hash_del_by_key(Eina_Hash *hash, const void *key);
- [ :eina_hash_del_by_key, [ :eina_hash_p, :void_p ], :eina_bool ],
- # EAPI Eina_Bool eina_hash_del_by_data(Eina_Hash *hash, const void *data);
- [ :eina_hash_del_by_data, [ :eina_hash_p, :void_p ], :eina_bool ],
- # EAPI Eina_Bool eina_hash_del_by_hash(Eina_Hash *hash, const void *key, int key_length, int key_hash, const void *data);
- [ :eina_hash_del_by_hash, [ :eina_hash_p, :void_p, :int, :int, :void_p ], :eina_bool ],
- # EAPI void *eina_hash_find_by_hash(const Eina_Hash *hash, const void *key, int key_length, int key_hash);
- [ :eina_hash_find_by_hash, [ :eina_hash_p, :void_p, :int, :int ], :void_p ],
- # EAPI void *eina_hash_modify_by_hash(Eina_Hash *hash, const void *key, int key_length, int key_hash, const void *data);
- [ :eina_hash_modify_by_hash, [ :eina_hash_p, :void_p, :int, :int, :void_p ], :void_p ],
- # EAPI Eina_Iterator *eina_hash_iterator_key_new(const Eina_Hash *hash);
- [ :eina_hash_iterator_key_new, [ :eina_hash_p ], :eina_iterator_p ],
- # EAPI Eina_Iterator *eina_hash_iterator_data_new(const Eina_Hash *hash);
- [ :eina_hash_iterator_data_new, [ :eina_hash_p ], :eina_iterator_p ],
- # EAPI Eina_Iterator *eina_hash_iterator_tuple_new(const Eina_Hash *hash);
- [ :eina_hash_iterator_tuple_new, [ :eina_hash_p ], :eina_iterator_p ],
- # EAPI void eina_hash_foreach(const Eina_Hash *hash, Eina_Hash_Foreach cb, const void *fdata);
- [ :eina_hash_foreach, [ :eina_hash_p, :eina_hash_foreach, :void_p ], :void ],
- # EAPI int eina_hash_superfast(const char *key, int len);
- [ :eina_hash_superfast, [ :string, :int ], :int ],
- ]
- #
- attach_fcts fcts
- end
-end
-#
-# EOF
diff --git a/lib/efl/ffi/eina/eina_list.rb b/lib/efl/ffi/eina/eina_list.rb
deleted file mode 100644
index 2799433..0000000
--- a/lib/efl/ffi/eina/eina_list.rb
+++ /dev/null
@@ -1,105 +0,0 @@
-#! /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_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_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_list_nth, [ :eina_list_p, :uint ], :void_p ],
- # EAPI Eina_List *eina_list_nth_list(const Eina_List *list, unsigned int n);
- [ :eina_list_nth_list, [ :eina_list_p, :uint ], :eina_list_p ],
- # EAPI Eina_List *eina_list_reverse(Eina_List *list);
- [ :eina_list_reverse, [ :eina_list_p ], :eina_list_p ],
- # EAPI Eina_List *eina_list_reverse_clone(const Eina_List *list);
- [ :eina_list_reverse_clone, [ :eina_list_p ], :eina_list_p ],
- # EAPI Eina_List *eina_list_clone(const Eina_List *list);
- [ :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_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_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_list_iterator_new, [ :eina_list_p ], :eina_iterator_p ],
- # EAPI Eina_Iterator *eina_list_iterator_reversed_new(const Eina_List *list);
- [ :eina_list_iterator_reversed_new, [ :eina_list_p ], :eina_iterator_p ],
- # EAPI Eina_Accessor *eina_list_accessor_new(const Eina_List *list);
- [ :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
deleted file mode 100644
index 5a5dd4d..0000000
--- a/lib/efl/ffi/eina/eina_types.rb
+++ /dev/null
@@ -1,44 +0,0 @@
-#! /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