ffi-efl 0.0.10 → 0.0.11
Sign up to get free protection for your applications and to get access to all the features.
- data/Changelog +10 -2
- data/README.rdoc +41 -30
- data/lib/efl.rb +88 -14
- data/lib/efl/ecore.rb +1 -0
- data/lib/efl/ecore_evas.rb +4 -2
- data/lib/efl/ecore_getopt.rb +12 -11
- data/lib/efl/ecore_input.rb +1 -0
- data/lib/efl/eet.rb +1 -0
- data/lib/efl/eina.rb +1 -0
- data/lib/efl/eina_hash.rb +1 -0
- data/lib/efl/eina_list.rb +1 -0
- data/lib/efl/eina_log.rb +4 -0
- data/lib/efl/elementary.rb +0 -662
- data/lib/efl/elementary_all.rb +82 -0
- data/lib/efl/elm/elm_actionslider.rb +22 -0
- data/lib/efl/elm/elm_anchorblock.rb +22 -0
- data/lib/efl/elm/elm_anchorview.rb +22 -0
- data/lib/efl/elm/elm_bg.rb +37 -0
- data/lib/efl/elm/elm_box.rb +42 -0
- data/lib/efl/elm/elm_bubble.rb +22 -0
- data/lib/efl/elm/elm_button.rb +22 -0
- data/lib/efl/elm/elm_calendar.rb +22 -0
- data/lib/efl/elm/elm_check.rb +22 -0
- data/lib/efl/elm/elm_clock.rb +22 -0
- data/lib/efl/elm/elm_cnp.rb +30 -0
- data/lib/efl/elm/elm_colorselector.rb +22 -0
- data/lib/efl/elm/elm_conform.rb +26 -0
- data/lib/efl/elm/elm_ctxpopup.rb +27 -0
- data/lib/efl/elm/elm_cursor.rb +20 -0
- data/lib/efl/elm/elm_debug.rb +25 -0
- data/lib/efl/elm/elm_diskselector.rb +51 -0
- data/lib/efl/elm/elm_entry.rb +22 -0
- data/lib/efl/elm/elm_factory.rb +22 -0
- data/lib/efl/elm/elm_fileselector.rb +22 -0
- data/lib/efl/elm/elm_fileselector_button.rb +22 -0
- data/lib/efl/elm/elm_fileselector_entry.rb +22 -0
- data/lib/efl/elm/elm_flip.rb +22 -0
- data/lib/efl/elm/elm_flipselector.rb +56 -0
- data/lib/efl/elm/elm_focus.rb +74 -0
- data/lib/efl/elm/elm_frame.rb +22 -0
- data/lib/efl/elm/elm_gengrid.rb +68 -0
- data/lib/efl/elm/elm_genlist.rb +79 -0
- data/lib/efl/elm/elm_gesture_layer.rb +22 -0
- data/lib/efl/elm/elm_glview.rb +22 -0
- data/lib/efl/elm/elm_grid.rb +22 -0
- data/lib/efl/elm/elm_hover.rb +22 -0
- data/lib/efl/elm/elm_hoversel.rb +27 -0
- data/lib/efl/elm/elm_icon.rb +26 -0
- data/lib/efl/elm/elm_image.rb +22 -0
- data/lib/efl/elm/elm_index.rb +31 -0
- data/lib/efl/elm/elm_label.rb +22 -0
- data/lib/efl/elm/elm_layout.rb +26 -0
- data/lib/efl/elm/elm_list.rb +55 -0
- data/lib/efl/elm/elm_map.rb +22 -0
- data/lib/efl/elm/elm_mapbuf.rb +22 -0
- data/lib/efl/elm/elm_menu.rb +55 -0
- data/lib/efl/elm/elm_mirroring.rb +36 -0
- data/lib/efl/elm/elm_multibuttonentry.rb +58 -0
- data/lib/efl/elm/elm_naviframe.rb +42 -0
- data/lib/efl/elm/elm_notify.rb +22 -0
- data/lib/efl/elm/elm_object.rb +68 -0
- data/lib/efl/elm/elm_object_item.rb +20 -0
- data/lib/efl/elm/elm_panel.rb +22 -0
- data/lib/efl/elm/elm_panes.rb +22 -0
- data/lib/efl/elm/elm_photo.rb +22 -0
- data/lib/efl/elm/elm_photocam.rb +22 -0
- data/lib/efl/elm/elm_plug.rb +22 -0
- data/lib/efl/elm/elm_progressbar.rb +22 -0
- data/lib/efl/elm/elm_radio.rb +22 -0
- data/lib/efl/elm/elm_route.rb +22 -0
- data/lib/efl/elm/elm_scale.rb +28 -0
- data/lib/efl/elm/elm_scroll.rb +50 -0
- data/lib/efl/elm/elm_scroller.rb +22 -0
- data/lib/efl/elm/elm_segment_control.rb +39 -0
- data/lib/efl/elm/elm_separator.rb +22 -0
- data/lib/efl/elm/elm_slider.rb +22 -0
- data/lib/efl/elm/elm_slideshow.rb +41 -0
- data/lib/efl/elm/elm_spinner.rb +22 -0
- data/lib/efl/elm/elm_store.rb +43 -0
- data/lib/efl/elm/elm_table.rb +22 -0
- data/lib/efl/elm/elm_theme.rb +42 -0
- data/lib/efl/elm/elm_thumb.rb +22 -0
- data/lib/efl/elm/elm_toolbar.rb +63 -0
- data/lib/efl/elm/elm_tooltip.rb +20 -0
- data/lib/efl/elm/elm_transit.rb +78 -0
- data/lib/efl/elm/elm_video.rb +30 -0
- data/lib/efl/elm/elm_web.rb +22 -0
- data/lib/efl/elm/elm_win.rb +33 -0
- data/lib/efl/evas.rb +8 -7
- data/lib/efl/native.rb +45 -11
- data/lib/efl/native/ecore.rb +188 -210
- data/lib/efl/native/ecore_evas.rb +260 -207
- data/lib/efl/native/ecore_getopt.rb +17 -24
- data/lib/efl/native/ecore_input.rb +7 -11
- data/lib/efl/native/edje.rb +250 -202
- data/lib/efl/native/eet.rb +154 -155
- data/lib/efl/native/eina.rb +7 -13
- data/lib/efl/native/eina_hash.rb +41 -47
- data/lib/efl/native/eina_list.rb +39 -48
- data/lib/efl/native/eina_log.rb +21 -23
- data/lib/efl/native/eina_types.rb +8 -14
- data/lib/efl/native/eina_xattr.rb +21 -18
- data/lib/efl/native/elementary.rb +9 -3381
- data/lib/efl/native/elm/elm_actionslider.rb +54 -0
- data/lib/efl/native/elm/elm_anchorblock.rb +55 -0
- data/lib/efl/native/elm/elm_anchorview.rb +59 -0
- data/lib/efl/native/elm/elm_app.rb +53 -0
- data/lib/efl/native/elm/elm_bg.rb +53 -0
- data/lib/efl/native/elm/elm_box.rb +81 -0
- data/lib/efl/native/elm/elm_bubble.rb +44 -0
- data/lib/efl/native/elm/elm_button.rb +47 -0
- data/lib/efl/native/elm/elm_cache.rb +59 -0
- data/lib/efl/native/elm/elm_calendar.rb +76 -0
- data/lib/efl/native/elm/elm_check.rb +41 -0
- data/lib/efl/native/elm/elm_clock.rb +64 -0
- data/lib/efl/native/elm/elm_cnp.rb +54 -0
- data/lib/efl/native/elm/elm_colorselector.rb +39 -0
- data/lib/efl/native/elm/elm_config.rb +103 -0
- data/lib/efl/native/elm/elm_conform.rb +37 -0
- data/lib/efl/native/elm/elm_ctxpopup.rb +59 -0
- data/lib/efl/native/elm/elm_cursor.rb +51 -0
- data/lib/efl/native/elm/elm_debug.rb +37 -0
- data/lib/efl/native/elm/elm_diskselector.rb +76 -0
- data/lib/efl/native/elm/elm_engine.rb +41 -0
- data/lib/efl/native/elm/elm_entry.rb +242 -0
- data/lib/efl/native/elm/elm_factory.rb +41 -0
- data/lib/efl/native/elm/elm_fileselector.rb +67 -0
- data/lib/efl/native/elm/elm_fileselector_button.rb +63 -0
- data/lib/efl/native/elm/elm_fileselector_entry.rb +67 -0
- data/lib/efl/native/elm/elm_finger.rb +39 -0
- data/lib/efl/native/elm/elm_flip.rb +62 -0
- data/lib/efl/native/elm/elm_flipselector.rb +63 -0
- data/lib/efl/native/elm/elm_focus.rb +65 -0
- data/lib/efl/native/elm/elm_fonts.rb +66 -0
- data/lib/efl/native/elm/elm_frame.rb +45 -0
- data/lib/efl/native/elm/elm_general.rb +105 -0
- data/lib/efl/native/elm/elm_gengrid.rb +184 -0
- data/lib/efl/native/elm/elm_genlist.rb +240 -0
- data/lib/efl/native/elm/elm_gesture_layer.rb +76 -0
- data/lib/efl/native/elm/elm_glview.rb +70 -0
- data/lib/efl/native/elm/elm_grid.rb +51 -0
- data/lib/efl/native/elm/elm_hover.rb +51 -0
- data/lib/efl/native/elm/elm_hoversel.rb +60 -0
- data/lib/efl/native/elm/elm_icon.rb +97 -0
- data/lib/efl/native/elm/elm_image.rb +80 -0
- data/lib/efl/native/elm/elm_index.rb +63 -0
- data/lib/efl/native/elm/elm_label.rb +60 -0
- data/lib/efl/native/elm/elm_layout.rb +77 -0
- data/lib/efl/native/elm/elm_list.rb +105 -0
- data/lib/efl/native/elm/elm_map.rb +225 -0
- data/lib/efl/native/elm/elm_mapbuf.rb +47 -0
- data/lib/efl/native/elm/elm_menu.rb +77 -0
- data/lib/efl/native/elm/elm_mirroring.rb +45 -0
- data/lib/efl/native/elm/elm_multibuttonentry.rb +81 -0
- data/lib/efl/native/elm/elm_naviframe.rb +79 -0
- data/lib/efl/native/elm/elm_need.rb +41 -0
- data/lib/efl/native/elm/elm_notify.rb +57 -0
- data/lib/efl/native/elm/elm_object.rb +74 -0
- data/lib/efl/native/elm/elm_object_item.rb +93 -0
- data/lib/efl/native/elm/elm_panel.rb +55 -0
- data/lib/efl/native/elm/elm_panes.rb +51 -0
- data/lib/efl/native/elm/elm_password.rb +41 -0
- data/lib/efl/native/elm/elm_photo.rb +49 -0
- data/lib/efl/native/elm/elm_photocam.rb +74 -0
- data/lib/efl/native/elm/elm_plug.rb +39 -0
- data/lib/efl/native/elm/elm_progressbar.rb +61 -0
- data/lib/efl/native/elm/elm_radio.rb +49 -0
- data/lib/efl/native/elm/elm_route.rb +42 -0
- data/lib/efl/native/elm/elm_scale.rb +41 -0
- data/lib/efl/native/elm/elm_scroll.rb +49 -0
- data/lib/efl/native/elm/elm_scroller.rb +80 -0
- data/lib/efl/native/elm/elm_segment_control.rb +57 -0
- data/lib/efl/native/elm/elm_separator.rb +39 -0
- data/lib/efl/native/elm/elm_slider.rb +71 -0
- data/lib/efl/native/elm/elm_slideshow.rb +97 -0
- data/lib/efl/native/elm/elm_spinner.rb +73 -0
- data/lib/efl/native/elm/elm_store.rb +110 -0
- data/lib/efl/native/elm/elm_table.rb +53 -0
- data/lib/efl/native/elm/elm_theme.rb +81 -0
- data/lib/efl/native/elm/elm_thumb.rb +60 -0
- data/lib/efl/native/elm/elm_toolbar.rb +145 -0
- data/lib/efl/native/elm/elm_tooltip.rb +59 -0
- data/lib/efl/native/elm/elm_transit.rb +135 -0
- data/lib/efl/native/elm/elm_video.rb +71 -0
- data/lib/efl/native/elm/elm_web.rb +165 -0
- data/lib/efl/native/elm/elm_win.rb +221 -0
- data/lib/efl/native/emap.rb +28 -34
- data/lib/efl/native/evas.rb +640 -618
- data/spec/ecore_evas_spec.rb +28 -22
- data/spec/ecore_spec.rb +1 -0
- data/spec/edje_spec.rb +8 -1
- data/spec/eina_hash_spec.rb +0 -1
- data/spec/eina_list_spec.rb +0 -1
- data/spec/eina_log_spec.rb +10 -8
- data/spec/elm_spec.rb +4 -114
- data/spec/evas_spec.rb +13 -244
- data/spec/helper.rb +16 -15
- data/tasks/constants.rb +9 -9
- data/test/test_elm_win-native.rb +6 -4
- data/test/test_elm_win.rb +20 -19
- data/test/test_evas.rb +12 -12
- metadata +209 -64
- data/lib/efl/ffi.rb +0 -172
- data/test/test_elementary.rb +0 -271
- data/test/tests/test_actionslider.rb +0 -132
- data/test/tests/test_anchorbock.rb +0 -73
- data/test/tests/test_bg.rb +0 -151
- data/test/tests/test_box.rb +0 -147
- data/test/tests/test_buttons.rb +0 -114
data/lib/efl/native/eina.rb
CHANGED
@@ -1,18 +1,17 @@
|
|
1
1
|
#! /usr/bin/env ruby
|
2
2
|
# -*- coding: UTF-8 -*-
|
3
3
|
#
|
4
|
-
require 'efl/
|
4
|
+
require 'efl/native'
|
5
5
|
#
|
6
6
|
module Efl
|
7
7
|
#
|
8
8
|
module Eina
|
9
9
|
#
|
10
|
-
FCT_PREFIX = 'eina_'
|
10
|
+
FCT_PREFIX = 'eina_' unless const_defined? :FCT_PREFIX
|
11
11
|
#
|
12
|
-
def self.method_missing
|
13
|
-
sym
|
14
|
-
self.
|
15
|
-
self.send m, *args, &block
|
12
|
+
def self.method_missing meth, *args, &block
|
13
|
+
sym = Efl::MethodResolver.resolve self, meth, FCT_PREFIX
|
14
|
+
self.send sym, *args, &block
|
16
15
|
end
|
17
16
|
#
|
18
17
|
end
|
@@ -21,18 +20,13 @@ module Efl
|
|
21
20
|
#
|
22
21
|
ffi_lib 'eina'
|
23
22
|
#
|
24
|
-
# ENUMS
|
25
|
-
#
|
26
23
|
# TYPEDEFS
|
27
24
|
# typedef struct _Eina_Version Eina_Version;
|
28
25
|
typedef :pointer, :eina_version
|
29
|
-
typedef :pointer, :eina_version_p
|
30
|
-
#
|
31
|
-
# CALLBACKS
|
32
26
|
#
|
33
27
|
# VARIABLES
|
34
28
|
# EAPI extern Eina_Version *eina_version;
|
35
|
-
attach_variable :eina_version, :
|
29
|
+
attach_variable :eina_version, :eina_version
|
36
30
|
#
|
37
31
|
# FUNCTIONS
|
38
32
|
fcts = [
|
@@ -45,7 +39,7 @@ module Efl
|
|
45
39
|
# EAPI int eina_threads_shutdown(void);
|
46
40
|
[ :eina_threads_shutdown, [ ], :int ],
|
47
41
|
# EAPI Eina_Bool eina_main_loop_is(void);
|
48
|
-
[ :eina_main_loop_is, [ ], :
|
42
|
+
[ :eina_main_loop_is, [ ], :bool ],
|
49
43
|
# EAPI void eina_main_loop_define(void);
|
50
44
|
[ :eina_main_loop_define, [ ], :void ],
|
51
45
|
]
|
data/lib/efl/native/eina_hash.rb
CHANGED
@@ -1,18 +1,17 @@
|
|
1
1
|
#! /usr/bin/env ruby
|
2
2
|
# -*- coding: UTF-8 -*-
|
3
3
|
#
|
4
|
-
require 'efl/
|
4
|
+
require 'efl/native'
|
5
5
|
#
|
6
6
|
module Efl
|
7
7
|
#
|
8
8
|
module EinaHash
|
9
9
|
#
|
10
|
-
FCT_PREFIX = 'eina_hash_'
|
10
|
+
FCT_PREFIX = 'eina_hash_' unless const_defined? :FCT_PREFIX
|
11
11
|
#
|
12
|
-
def self.method_missing
|
13
|
-
sym
|
14
|
-
self.
|
15
|
-
self.send m, *args, &block
|
12
|
+
def self.method_missing meth, *args, &block
|
13
|
+
sym = Efl::MethodResolver.resolve self, meth, FCT_PREFIX
|
14
|
+
self.send sym, *args, &block
|
16
15
|
end
|
17
16
|
#
|
18
17
|
end
|
@@ -21,91 +20,86 @@ module Efl
|
|
21
20
|
#
|
22
21
|
ffi_lib 'eina'
|
23
22
|
#
|
24
|
-
# ENUMS
|
25
|
-
#
|
26
23
|
# TYPEDEFS
|
27
24
|
# typedef struct _Eina_Hash Eina_Hash;
|
28
25
|
typedef :pointer, :eina_hash
|
29
|
-
typedef :pointer, :eina_hash_p
|
30
26
|
# typedef struct _Eina_Hash_Tuple Eina_Hash_Tuple;
|
31
27
|
typedef :pointer, :eina_hash_tuple
|
32
28
|
#
|
33
29
|
# CALLBACKS
|
34
30
|
# typedef unsigned int (*Eina_Key_Length) (const void *key);
|
35
|
-
callback :
|
31
|
+
callback :eina_key_length_cb, [ :pointer ], :uint
|
36
32
|
# typedef int (*Eina_Key_Cmp) (const void *key1, int key1_length, const void *key2, int key2_length);
|
37
|
-
callback :
|
33
|
+
callback :eina_key_cmp_cb, [ :pointer, :int, :pointer, :int ], :int
|
38
34
|
# typedef int (*Eina_Key_Hash) (const void *key, int key_length);
|
39
|
-
callback :
|
35
|
+
callback :eina_key_hash_cb, [ :pointer, :int ], :int
|
40
36
|
# typedef Eina_Bool (*Eina_Hash_Foreach) (const Eina_Hash *hash, const void *key, void *data, void *fdata);
|
41
|
-
callback :
|
42
|
-
#
|
43
|
-
# VARIABLES
|
37
|
+
callback :eina_hash_foreach_cb, [ :eina_hash, :pointer, :pointer, :pointer ], :bool
|
44
38
|
#
|
45
39
|
# FUNCTIONS
|
46
40
|
fcts = [
|
47
41
|
# 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);
|
48
|
-
[ :eina_hash_new, [ :
|
42
|
+
[ :eina_hash_new, [ :eina_key_length_cb, :eina_key_cmp_cb, :eina_key_hash_cb, :eina_free_cb, :int ], :eina_hash ],
|
49
43
|
# EAPI void eina_hash_free_cb_set(Eina_Hash *hash, Eina_Free_Cb data_free_cb);
|
50
|
-
[ :eina_hash_free_cb_set, [ :
|
44
|
+
[ :eina_hash_free_cb_set, [ :eina_hash, :eina_free_cb ], :void ],
|
51
45
|
# EAPI Eina_Hash *eina_hash_string_djb2_new(Eina_Free_Cb data_free_cb);
|
52
|
-
[ :eina_hash_string_djb2_new, [ :eina_free_cb ], :
|
46
|
+
[ :eina_hash_string_djb2_new, [ :eina_free_cb ], :eina_hash ],
|
53
47
|
# EAPI Eina_Hash *eina_hash_string_superfast_new(Eina_Free_Cb data_free_cb);
|
54
|
-
[ :eina_hash_string_superfast_new, [ :eina_free_cb ], :
|
48
|
+
[ :eina_hash_string_superfast_new, [ :eina_free_cb ], :eina_hash ],
|
55
49
|
# EAPI Eina_Hash *eina_hash_string_small_new(Eina_Free_Cb data_free_cb);
|
56
|
-
[ :eina_hash_string_small_new, [ :eina_free_cb ], :
|
50
|
+
[ :eina_hash_string_small_new, [ :eina_free_cb ], :eina_hash ],
|
57
51
|
# EAPI Eina_Hash *eina_hash_int32_new(Eina_Free_Cb data_free_cb);
|
58
|
-
[ :eina_hash_int32_new, [ :eina_free_cb ], :
|
52
|
+
[ :eina_hash_int32_new, [ :eina_free_cb ], :eina_hash ],
|
59
53
|
# EAPI Eina_Hash *eina_hash_int64_new(Eina_Free_Cb data_free_cb);
|
60
|
-
[ :eina_hash_int64_new, [ :eina_free_cb ], :
|
54
|
+
[ :eina_hash_int64_new, [ :eina_free_cb ], :eina_hash ],
|
61
55
|
# EAPI Eina_Hash *eina_hash_pointer_new(Eina_Free_Cb data_free_cb);
|
62
|
-
[ :eina_hash_pointer_new, [ :eina_free_cb ], :
|
56
|
+
[ :eina_hash_pointer_new, [ :eina_free_cb ], :eina_hash ],
|
63
57
|
# EAPI Eina_Hash *eina_hash_stringshared_new(Eina_Free_Cb data_free_cb);
|
64
|
-
[ :eina_hash_stringshared_new, [ :eina_free_cb ], :
|
58
|
+
[ :eina_hash_stringshared_new, [ :eina_free_cb ], :eina_hash ],
|
65
59
|
# EAPI Eina_Bool eina_hash_add(Eina_Hash *hash, const void *key, const void *data);
|
66
|
-
[ :eina_hash_add, [ :
|
60
|
+
[ :eina_hash_add, [ :eina_hash, :pointer, :pointer ], :bool ],
|
67
61
|
# EAPI Eina_Bool eina_hash_direct_add(Eina_Hash *hash, const void *key, const void *data);
|
68
|
-
[ :eina_hash_direct_add, [ :
|
62
|
+
[ :eina_hash_direct_add, [ :eina_hash, :pointer, :pointer ], :bool ],
|
69
63
|
# EAPI Eina_Bool eina_hash_del(Eina_Hash *hash, const void *key, const void *data);
|
70
|
-
[ :eina_hash_del, [ :
|
64
|
+
[ :eina_hash_del, [ :eina_hash, :pointer, :pointer ], :bool ],
|
71
65
|
# EAPI void *eina_hash_find(const Eina_Hash *hash, const void *key);
|
72
|
-
[ :eina_hash_find, [ :
|
66
|
+
[ :eina_hash_find, [ :eina_hash, :pointer ], :pointer ],
|
73
67
|
# EAPI void *eina_hash_modify(Eina_Hash *hash, const void *key, const void *data);
|
74
|
-
[ :eina_hash_modify, [ :
|
68
|
+
[ :eina_hash_modify, [ :eina_hash, :pointer, :pointer ], :pointer ],
|
75
69
|
# EAPI void *eina_hash_set(Eina_Hash *hash, const void *key, const void *data);
|
76
|
-
[ :eina_hash_set, [ :
|
70
|
+
[ :eina_hash_set, [ :eina_hash, :pointer, :pointer ], :pointer ],
|
77
71
|
# EAPI Eina_Bool eina_hash_move(Eina_Hash *hash, const void *old_key, const void *new_key);
|
78
|
-
[ :eina_hash_move, [ :
|
72
|
+
[ :eina_hash_move, [ :eina_hash, :pointer, :pointer ], :bool ],
|
79
73
|
# EAPI void eina_hash_free(Eina_Hash *hash);
|
80
|
-
[ :eina_hash_free, [ :
|
74
|
+
[ :eina_hash_free, [ :eina_hash ], :void ],
|
81
75
|
# EAPI void eina_hash_free_buckets(Eina_Hash *hash);
|
82
|
-
[ :eina_hash_free_buckets, [ :
|
76
|
+
[ :eina_hash_free_buckets, [ :eina_hash ], :void ],
|
83
77
|
# EAPI int eina_hash_population(const Eina_Hash *hash);
|
84
|
-
[ :eina_hash_population, [ :
|
78
|
+
[ :eina_hash_population, [ :eina_hash ], :int ],
|
85
79
|
# EAPI Eina_Bool eina_hash_add_by_hash(Eina_Hash *hash, const void *key, int key_length, int key_hash, const void *data);
|
86
|
-
[ :eina_hash_add_by_hash, [ :
|
80
|
+
[ :eina_hash_add_by_hash, [ :eina_hash, :pointer, :int, :int, :pointer ], :bool ],
|
87
81
|
# EAPI Eina_Bool eina_hash_direct_add_by_hash(Eina_Hash *hash, const void *key, int key_length, int key_hash, const void *data);
|
88
|
-
[ :eina_hash_direct_add_by_hash, [ :
|
82
|
+
[ :eina_hash_direct_add_by_hash, [ :eina_hash, :pointer, :int, :int, :pointer ], :bool ],
|
89
83
|
# EAPI Eina_Bool eina_hash_del_by_key_hash(Eina_Hash *hash, const void *key, int key_length, int key_hash);
|
90
|
-
[ :eina_hash_del_by_key_hash, [ :
|
84
|
+
[ :eina_hash_del_by_key_hash, [ :eina_hash, :pointer, :int, :int ], :bool ],
|
91
85
|
# EAPI Eina_Bool eina_hash_del_by_key(Eina_Hash *hash, const void *key);
|
92
|
-
[ :eina_hash_del_by_key, [ :
|
86
|
+
[ :eina_hash_del_by_key, [ :eina_hash, :pointer ], :bool ],
|
93
87
|
# EAPI Eina_Bool eina_hash_del_by_data(Eina_Hash *hash, const void *data);
|
94
|
-
[ :eina_hash_del_by_data, [ :
|
88
|
+
[ :eina_hash_del_by_data, [ :eina_hash, :pointer ], :bool ],
|
95
89
|
# EAPI Eina_Bool eina_hash_del_by_hash(Eina_Hash *hash, const void *key, int key_length, int key_hash, const void *data);
|
96
|
-
[ :eina_hash_del_by_hash, [ :
|
90
|
+
[ :eina_hash_del_by_hash, [ :eina_hash, :pointer, :int, :int, :pointer ], :bool ],
|
97
91
|
# EAPI void *eina_hash_find_by_hash(const Eina_Hash *hash, const void *key, int key_length, int key_hash);
|
98
|
-
[ :eina_hash_find_by_hash, [ :
|
92
|
+
[ :eina_hash_find_by_hash, [ :eina_hash, :pointer, :int, :int ], :pointer ],
|
99
93
|
# EAPI void *eina_hash_modify_by_hash(Eina_Hash *hash, const void *key, int key_length, int key_hash, const void *data);
|
100
|
-
[ :eina_hash_modify_by_hash, [ :
|
94
|
+
[ :eina_hash_modify_by_hash, [ :eina_hash, :pointer, :int, :int, :pointer ], :pointer ],
|
101
95
|
# EAPI Eina_Iterator *eina_hash_iterator_key_new(const Eina_Hash *hash);
|
102
|
-
[ :eina_hash_iterator_key_new, [ :
|
96
|
+
[ :eina_hash_iterator_key_new, [ :eina_hash ], :pointer ],
|
103
97
|
# EAPI Eina_Iterator *eina_hash_iterator_data_new(const Eina_Hash *hash);
|
104
|
-
[ :eina_hash_iterator_data_new, [ :
|
98
|
+
[ :eina_hash_iterator_data_new, [ :eina_hash ], :pointer ],
|
105
99
|
# EAPI Eina_Iterator *eina_hash_iterator_tuple_new(const Eina_Hash *hash);
|
106
|
-
[ :eina_hash_iterator_tuple_new, [ :
|
107
|
-
# EAPI void eina_hash_foreach(const Eina_Hash *hash, Eina_Hash_Foreach
|
108
|
-
[ :eina_hash_foreach, [ :
|
100
|
+
[ :eina_hash_iterator_tuple_new, [ :eina_hash ], :pointer ],
|
101
|
+
# EAPI void eina_hash_foreach(const Eina_Hash *hash, Eina_Hash_Foreach func, const void *fdata);
|
102
|
+
[ :eina_hash_foreach, [ :eina_hash, :eina_hash_foreach_cb, :pointer ], :void ],
|
109
103
|
# EAPI int eina_hash_superfast(const char *key, int len);
|
110
104
|
[ :eina_hash_superfast, [ :string, :int ], :int ],
|
111
105
|
]
|
data/lib/efl/native/eina_list.rb
CHANGED
@@ -1,18 +1,17 @@
|
|
1
1
|
#! /usr/bin/env ruby
|
2
2
|
# -*- coding: UTF-8 -*-
|
3
3
|
#
|
4
|
-
require 'efl/
|
4
|
+
require 'efl/native'
|
5
5
|
#
|
6
6
|
module Efl
|
7
7
|
#
|
8
8
|
module EinaList
|
9
9
|
#
|
10
|
-
FCT_PREFIX = 'eina_list_'
|
10
|
+
FCT_PREFIX = 'eina_list_' unless const_defined? :FCT_PREFIX
|
11
11
|
#
|
12
|
-
def self.method_missing
|
13
|
-
sym
|
14
|
-
self.
|
15
|
-
self.send m, *args, &block
|
12
|
+
def self.method_missing meth, *args, &block
|
13
|
+
sym = Efl::MethodResolver.resolve self, meth, FCT_PREFIX
|
14
|
+
self.send sym, *args, &block
|
16
15
|
end
|
17
16
|
#
|
18
17
|
end
|
@@ -21,88 +20,80 @@ module Efl
|
|
21
20
|
#
|
22
21
|
ffi_lib 'eina'
|
23
22
|
#
|
24
|
-
# ENUMS
|
25
|
-
#
|
26
23
|
# TYPEDEFS
|
27
24
|
# typedef struct _Eina_List Eina_List;
|
28
25
|
typedef :pointer, :eina_list
|
29
|
-
typedef :pointer, :eina_list_p
|
30
|
-
typedef :pointer, :eina_list_pp
|
31
26
|
# typedef struct _Eina_List_Accounting Eina_List_Accounting;
|
32
27
|
typedef :pointer, :eina_list_accounting
|
33
28
|
#
|
34
|
-
# CALLBACKS
|
35
|
-
#
|
36
|
-
# VARIABLES
|
37
|
-
#
|
38
29
|
# FUNCTIONS
|
39
30
|
fcts = [
|
40
31
|
# EAPI Eina_List *eina_list_append(Eina_List *list, const void *data);
|
41
|
-
[ :eina_list_append, [ :
|
32
|
+
[ :eina_list_append, [ :eina_list, :pointer ], :eina_list ],
|
42
33
|
# EAPI Eina_List *eina_list_prepend(Eina_List *list, const void *data);
|
43
|
-
[ :eina_list_prepend, [ :
|
34
|
+
[ :eina_list_prepend, [ :eina_list, :pointer ], :eina_list ],
|
44
35
|
# EAPI Eina_List *eina_list_append_relative(Eina_List *list, const void *data, const void *relative);
|
45
|
-
[ :eina_list_append_relative, [ :
|
36
|
+
[ :eina_list_append_relative, [ :eina_list, :pointer, :pointer ], :eina_list ],
|
46
37
|
# EAPI Eina_List *eina_list_append_relative_list(Eina_List *list, const void *data, Eina_List *relative);
|
47
|
-
[ :eina_list_append_relative_list, [ :
|
38
|
+
[ :eina_list_append_relative_list, [ :eina_list, :pointer, :eina_list ], :eina_list ],
|
48
39
|
# EAPI Eina_List *eina_list_prepend_relative(Eina_List *list, const void *data, const void *relative);
|
49
|
-
[ :eina_list_prepend_relative, [ :
|
40
|
+
[ :eina_list_prepend_relative, [ :eina_list, :pointer, :pointer ], :eina_list ],
|
50
41
|
# EAPI Eina_List *eina_list_prepend_relative_list(Eina_List *list, const void *data, Eina_List *relative);
|
51
|
-
[ :eina_list_prepend_relative_list, [ :
|
42
|
+
[ :eina_list_prepend_relative_list, [ :eina_list, :pointer, :eina_list ], :eina_list ],
|
52
43
|
# EAPI Eina_List *eina_list_sorted_insert(Eina_List *list, Eina_Compare_Cb func, const void *data);
|
53
|
-
[ :eina_list_sorted_insert, [ :
|
44
|
+
[ :eina_list_sorted_insert, [ :eina_list, :eina_compare_cb, :pointer ], :eina_list ],
|
54
45
|
# EAPI Eina_List *eina_list_remove(Eina_List *list, const void *data);
|
55
|
-
[ :eina_list_remove, [ :
|
46
|
+
[ :eina_list_remove, [ :eina_list, :pointer ], :eina_list ],
|
56
47
|
# EAPI Eina_List *eina_list_remove_list(Eina_List *list, Eina_List *remove_list);
|
57
|
-
[ :eina_list_remove_list, [ :
|
48
|
+
[ :eina_list_remove_list, [ :eina_list, :eina_list ], :eina_list ],
|
58
49
|
# EAPI Eina_List *eina_list_promote_list(Eina_List *list, Eina_List *move_list);
|
59
|
-
[ :eina_list_promote_list, [ :
|
50
|
+
[ :eina_list_promote_list, [ :eina_list, :eina_list ], :eina_list ],
|
60
51
|
# EAPI Eina_List *eina_list_demote_list(Eina_List *list, Eina_List *move_list);
|
61
|
-
[ :eina_list_demote_list, [ :
|
52
|
+
[ :eina_list_demote_list, [ :eina_list, :eina_list ], :eina_list ],
|
62
53
|
# EAPI void *eina_list_data_find(const Eina_List *list, const void *data);
|
63
|
-
[ :eina_list_data_find, [ :
|
54
|
+
[ :eina_list_data_find, [ :eina_list, :pointer ], :pointer ],
|
64
55
|
# EAPI Eina_List *eina_list_data_find_list(const Eina_List *list, const void *data);
|
65
|
-
[ :eina_list_data_find_list, [ :
|
56
|
+
[ :eina_list_data_find_list, [ :eina_list, :pointer ], :eina_list ],
|
66
57
|
# EAPI Eina_Bool eina_list_move(Eina_List **to, Eina_List **from, void *data);
|
67
|
-
[ :eina_list_move, [ :
|
58
|
+
[ :eina_list_move, [ :eina_list, :eina_list, :pointer ], :bool ],
|
68
59
|
# EAPI Eina_Bool eina_list_move_list(Eina_List **to, Eina_List **from, Eina_List *data);
|
69
|
-
[ :eina_list_move_list, [ :
|
60
|
+
[ :eina_list_move_list, [ :eina_list, :eina_list, :eina_list ], :bool ],
|
70
61
|
# EAPI Eina_List *eina_list_free(Eina_List *list);
|
71
|
-
[ :eina_list_free, [ :
|
62
|
+
[ :eina_list_free, [ :eina_list ], :eina_list ],
|
72
63
|
# EAPI void *eina_list_nth(const Eina_List *list, unsigned int n);
|
73
|
-
[ :eina_list_nth, [ :
|
64
|
+
[ :eina_list_nth, [ :eina_list, :uint ], :pointer ],
|
74
65
|
# EAPI Eina_List *eina_list_nth_list(const Eina_List *list, unsigned int n);
|
75
|
-
[ :eina_list_nth_list, [ :
|
66
|
+
[ :eina_list_nth_list, [ :eina_list, :uint ], :eina_list ],
|
76
67
|
# EAPI Eina_List *eina_list_reverse(Eina_List *list);
|
77
|
-
[ :eina_list_reverse, [ :
|
68
|
+
[ :eina_list_reverse, [ :eina_list ], :eina_list ],
|
78
69
|
# EAPI Eina_List *eina_list_reverse_clone(const Eina_List *list);
|
79
|
-
[ :eina_list_reverse_clone, [ :
|
70
|
+
[ :eina_list_reverse_clone, [ :eina_list ], :eina_list ],
|
80
71
|
# EAPI Eina_List *eina_list_clone(const Eina_List *list);
|
81
|
-
[ :eina_list_clone, [ :
|
82
|
-
# EAPI Eina_List *eina_list_sort(Eina_List *list, unsigned int
|
83
|
-
[ :eina_list_sort, [ :
|
72
|
+
[ :eina_list_clone, [ :eina_list ], :eina_list ],
|
73
|
+
# EAPI Eina_List *eina_list_sort(Eina_List *list, unsigned int limit, Eina_Compare_Cb func);
|
74
|
+
[ :eina_list_sort, [ :eina_list, :uint, :eina_compare_cb ], :eina_list ],
|
84
75
|
# EAPI Eina_List *eina_list_merge(Eina_List *left, Eina_List *right);
|
85
|
-
[ :eina_list_merge, [ :
|
76
|
+
[ :eina_list_merge, [ :eina_list, :eina_list ], :eina_list ],
|
86
77
|
# EAPI Eina_List *eina_list_sorted_merge(Eina_List *left, Eina_List *right, Eina_Compare_Cb func);
|
87
|
-
[ :eina_list_sorted_merge, [ :
|
78
|
+
[ :eina_list_sorted_merge, [ :eina_list, :eina_list, :eina_compare_cb ], :eina_list ],
|
88
79
|
# EAPI Eina_List *eina_list_split_list(Eina_List *list, Eina_List *relative, Eina_List **right);
|
89
|
-
[ :eina_list_split_list, [ :
|
80
|
+
[ :eina_list_split_list, [ :eina_list, :eina_list, :eina_list ], :eina_list ],
|
90
81
|
# EAPI Eina_List *eina_list_search_sorted_near_list(const Eina_List *list, Eina_Compare_Cb func, const void *data, int *result_cmp);
|
91
|
-
[ :eina_list_search_sorted_near_list, [ :
|
82
|
+
[ :eina_list_search_sorted_near_list, [ :eina_list, :eina_compare_cb, :pointer, :pointer ], :eina_list ],
|
92
83
|
# EAPI Eina_List *eina_list_search_sorted_list(const Eina_List *list, Eina_Compare_Cb func, const void *data);
|
93
|
-
[ :eina_list_search_sorted_list, [ :
|
84
|
+
[ :eina_list_search_sorted_list, [ :eina_list, :eina_compare_cb, :pointer ], :eina_list ],
|
94
85
|
# EAPI void *eina_list_search_sorted(const Eina_List *list, Eina_Compare_Cb func, const void *data);
|
95
|
-
[ :eina_list_search_sorted, [ :
|
86
|
+
[ :eina_list_search_sorted, [ :eina_list, :eina_compare_cb, :pointer ], :pointer ],
|
96
87
|
# EAPI Eina_List *eina_list_search_unsorted_list(const Eina_List *list, Eina_Compare_Cb func, const void *data);
|
97
|
-
[ :eina_list_search_unsorted_list, [ :
|
88
|
+
[ :eina_list_search_unsorted_list, [ :eina_list, :eina_compare_cb, :pointer ], :eina_list ],
|
98
89
|
# EAPI void *eina_list_search_unsorted(const Eina_List *list, Eina_Compare_Cb func, const void *data);
|
99
|
-
[ :eina_list_search_unsorted, [ :
|
90
|
+
[ :eina_list_search_unsorted, [ :eina_list, :eina_compare_cb, :pointer ], :pointer ],
|
100
91
|
# EAPI Eina_Iterator *eina_list_iterator_new(const Eina_List *list);
|
101
|
-
[ :eina_list_iterator_new, [ :
|
92
|
+
[ :eina_list_iterator_new, [ :eina_list ], :pointer ],
|
102
93
|
# EAPI Eina_Iterator *eina_list_iterator_reversed_new(const Eina_List *list);
|
103
|
-
[ :eina_list_iterator_reversed_new, [ :
|
94
|
+
[ :eina_list_iterator_reversed_new, [ :eina_list ], :pointer ],
|
104
95
|
# EAPI Eina_Accessor *eina_list_accessor_new(const Eina_List *list);
|
105
|
-
[ :eina_list_accessor_new, [ :
|
96
|
+
[ :eina_list_accessor_new, [ :eina_list ], :pointer ],
|
106
97
|
]
|
107
98
|
#
|
108
99
|
attach_fcts fcts
|
data/lib/efl/native/eina_log.rb
CHANGED
@@ -1,18 +1,17 @@
|
|
1
1
|
#! /usr/bin/env ruby
|
2
2
|
# -*- coding: UTF-8 -*-
|
3
3
|
#
|
4
|
-
require 'efl/
|
4
|
+
require 'efl/native'
|
5
5
|
#
|
6
6
|
module Efl
|
7
7
|
#
|
8
8
|
module EinaLog
|
9
9
|
#
|
10
|
-
FCT_PREFIX = 'eina_log_'
|
10
|
+
FCT_PREFIX = 'eina_log_' unless const_defined? :FCT_PREFIX
|
11
11
|
#
|
12
|
-
def self.method_missing
|
13
|
-
sym
|
14
|
-
self.
|
15
|
-
self.send m, *args, &block
|
12
|
+
def self.method_missing meth, *args, &block
|
13
|
+
sym = Efl::MethodResolver.resolve self, meth, FCT_PREFIX
|
14
|
+
self.send sym, *args, &block
|
16
15
|
end
|
17
16
|
#
|
18
17
|
end
|
@@ -23,17 +22,16 @@ module Efl
|
|
23
22
|
#
|
24
23
|
# ENUMS
|
25
24
|
# typedef enum _Eina_Log_Level {...} Eina_Log_Level;
|
26
|
-
enum :eina_log_level, [ :eina_log_level_critical, :eina_log_level_err, :eina_log_level_warn,
|
27
|
-
:eina_log_level_unknown ]
|
25
|
+
enum :eina_log_level, [ :eina_log_level_critical, 0, :eina_log_level_err, 1, :eina_log_level_warn, 2, :eina_log_level_info, 3,
|
26
|
+
:eina_log_level_dbg, 4, :eina_log_levels, 5, :eina_log_level_unknown, (-2147483647-1) ]
|
28
27
|
#
|
29
28
|
# TYPEDEFS
|
30
29
|
# typedef struct _Eina_Log_Domain Eina_Log_Domain;
|
31
30
|
typedef :pointer, :eina_log_domain
|
32
|
-
typedef :pointer, :eina_log_domain_p
|
33
31
|
#
|
34
32
|
# CALLBACKS
|
35
33
|
# typedef void (*Eina_Log_Print_Cb) (const Eina_Log_Domain *d, Eina_Log_Level level, const char *file, const char *fnc, int line, const char *fmt, void *data, va_list args);
|
36
|
-
callback :eina_log_print_cb, [ :
|
34
|
+
callback :eina_log_print_cb, [ :eina_log_domain, :eina_log_level, :string, :string, :int, :string, :pointer, :pointer ], :void
|
37
35
|
#
|
38
36
|
# VARIABLES
|
39
37
|
# EAPI extern int EINA_LOG_DOMAIN_GLOBAL;
|
@@ -44,29 +42,29 @@ module Efl
|
|
44
42
|
# EAPI void eina_log_threads_enable(void);
|
45
43
|
[ :eina_log_threads_enable, [ ], :void ],
|
46
44
|
# EAPI void eina_log_print_cb_set(Eina_Log_Print_Cb cb, void *data);
|
47
|
-
[ :eina_log_print_cb_set, [ :eina_log_print_cb, :
|
45
|
+
[ :eina_log_print_cb_set, [ :eina_log_print_cb, :pointer ], :void ],
|
48
46
|
# EAPI void eina_log_level_set(int level);
|
49
47
|
[ :eina_log_level_set, [ :int ], :void ],
|
50
48
|
# EAPI int eina_log_level_get(void);
|
51
49
|
[ :eina_log_level_get, [ ], :int ],
|
52
50
|
# EAPI Eina_Bool eina_log_main_thread_check(void);
|
53
|
-
[ :eina_log_main_thread_check, [ ], :
|
51
|
+
[ :eina_log_main_thread_check, [ ], :bool ],
|
54
52
|
# EAPI void eina_log_color_disable_set(Eina_Bool disabled);
|
55
|
-
[ :eina_log_color_disable_set, [ :
|
53
|
+
[ :eina_log_color_disable_set, [ :bool ], :void ],
|
56
54
|
# EAPI Eina_Bool eina_log_color_disable_get(void);
|
57
|
-
[ :eina_log_color_disable_get, [ ], :
|
55
|
+
[ :eina_log_color_disable_get, [ ], :bool ],
|
58
56
|
# EAPI void eina_log_file_disable_set(Eina_Bool disabled);
|
59
|
-
[ :eina_log_file_disable_set, [ :
|
57
|
+
[ :eina_log_file_disable_set, [ :bool ], :void ],
|
60
58
|
# EAPI Eina_Bool eina_log_file_disable_get(void);
|
61
|
-
[ :eina_log_file_disable_get, [ ], :
|
59
|
+
[ :eina_log_file_disable_get, [ ], :bool ],
|
62
60
|
# EAPI void eina_log_function_disable_set(Eina_Bool disabled);
|
63
|
-
[ :eina_log_function_disable_set, [ :
|
61
|
+
[ :eina_log_function_disable_set, [ :bool ], :void ],
|
64
62
|
# EAPI Eina_Bool eina_log_function_disable_get(void);
|
65
|
-
[ :eina_log_function_disable_get, [ ], :
|
63
|
+
[ :eina_log_function_disable_get, [ ], :bool ],
|
66
64
|
# EAPI void eina_log_abort_on_critical_set(Eina_Bool abort_on_critical);
|
67
|
-
[ :eina_log_abort_on_critical_set, [ :
|
65
|
+
[ :eina_log_abort_on_critical_set, [ :bool ], :void ],
|
68
66
|
# EAPI Eina_Bool eina_log_abort_on_critical_get(void);
|
69
|
-
[ :eina_log_abort_on_critical_get, [ ], :
|
67
|
+
[ :eina_log_abort_on_critical_get, [ ], :bool ],
|
70
68
|
# EAPI void eina_log_abort_on_critical_level_set(int critical_level);
|
71
69
|
[ :eina_log_abort_on_critical_level_set, [ :int ], :void ],
|
72
70
|
# EAPI int eina_log_abort_on_critical_level_get(void);
|
@@ -86,11 +84,11 @@ module Efl
|
|
86
84
|
# EAPI void eina_log_vprint(int domain, Eina_Log_Level level, const char *file, const char *fnc, int line, const char *fmt, va_list args);
|
87
85
|
[ :eina_log_vprint, [ :int, :eina_log_level, :string, :string, :int, :string, :pointer ], :void ],
|
88
86
|
# EAPI void eina_log_print_cb_stdout(const Eina_Log_Domain *d, Eina_Log_Level level, const char *file, const char *fnc, int line, const char *fmt, void *data, va_list args);
|
89
|
-
[ :eina_log_print_cb_stdout, [ :
|
87
|
+
[ :eina_log_print_cb_stdout, [ :eina_log_domain, :eina_log_level, :string, :string, :int, :string, :pointer, :pointer ], :void ],
|
90
88
|
# EAPI void eina_log_print_cb_stderr(const Eina_Log_Domain *d, Eina_Log_Level level, const char *file, const char *fnc, int line, const char *fmt, void *data, va_list args);
|
91
|
-
[ :eina_log_print_cb_stderr, [ :
|
89
|
+
[ :eina_log_print_cb_stderr, [ :eina_log_domain, :eina_log_level, :string, :string, :int, :string, :pointer, :pointer ], :void ],
|
92
90
|
# EAPI void eina_log_print_cb_file(const Eina_Log_Domain *d, Eina_Log_Level level, const char *file, const char *fnc, int line, const char *fmt, void *data, va_list args);
|
93
|
-
[ :eina_log_print_cb_file, [ :
|
91
|
+
[ :eina_log_print_cb_file, [ :eina_log_domain, :eina_log_level, :string, :string, :int, :string, :pointer, :pointer ], :void ],
|
94
92
|
]
|
95
93
|
#
|
96
94
|
attach_fcts fcts
|