ffi-efl 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (154) hide show
  1. checksums.yaml +7 -0
  2. data/Changelog +6 -0
  3. data/README.md +9 -6
  4. data/TODO +7 -0
  5. data/ffi-efl.gemspec +1 -1
  6. data/lib/efl.rb +1 -31
  7. data/lib/efl/elm/elm_panes.rb +1 -1
  8. data/lib/efl/native.rb +30 -0
  9. data/lib/efl/native/ecore.rb +1 -1
  10. data/lib/efl/native/ecore_evas.rb +8 -62
  11. data/lib/efl/native/ecore_getopt.rb +1 -1
  12. data/lib/efl/native/ecore_input.rb +1 -1
  13. data/lib/efl/native/edje.rb +1 -1
  14. data/lib/efl/native/eet.rb +1 -1
  15. data/lib/efl/native/eeze.rb +1 -1
  16. data/lib/efl/native/eeze_disk.rb +1 -1
  17. data/lib/efl/native/eeze_net.rb +1 -1
  18. data/lib/efl/native/efreet.rb +1 -1
  19. data/lib/efl/native/efreet_base.rb +1 -1
  20. data/lib/efl/native/efreet_desktop.rb +1 -1
  21. data/lib/efl/native/efreet_icon.rb +1 -1
  22. data/lib/efl/native/efreet_ini.rb +1 -1
  23. data/lib/efl/native/efreet_menu.rb +1 -1
  24. data/lib/efl/native/efreet_mime.rb +1 -1
  25. data/lib/efl/native/efreet_trash.rb +1 -1
  26. data/lib/efl/native/efreet_uri.rb +1 -1
  27. data/lib/efl/native/efreet_utils.rb +1 -1
  28. data/lib/efl/native/eina.rb +1 -1
  29. data/lib/efl/native/eina_file.rb +1 -1
  30. data/lib/efl/native/eina_hash.rb +1 -1
  31. data/lib/efl/native/eina_list.rb +1 -1
  32. data/lib/efl/native/eina_log.rb +1 -1
  33. data/lib/efl/native/eina_types.rb +1 -1
  34. data/lib/efl/native/eina_xattr.rb +1 -1
  35. data/lib/efl/native/eio.rb +1 -1
  36. data/lib/efl/native/elementary.rb +1 -1
  37. data/lib/efl/native/elm/elm_actionslider.rb +1 -1
  38. data/lib/efl/native/elm/elm_app.rb +1 -1
  39. data/lib/efl/native/elm/elm_bg.rb +1 -1
  40. data/lib/efl/native/elm/elm_box.rb +1 -1
  41. data/lib/efl/native/elm/elm_bubble.rb +1 -1
  42. data/lib/efl/native/elm/elm_button.rb +1 -1
  43. data/lib/efl/native/elm/elm_cache.rb +1 -1
  44. data/lib/efl/native/elm/elm_calendar.rb +1 -1
  45. data/lib/efl/native/elm/elm_check.rb +1 -1
  46. data/lib/efl/native/elm/elm_clock.rb +1 -1
  47. data/lib/efl/native/elm/elm_cnp.rb +1 -1
  48. data/lib/efl/native/elm/elm_colorselector.rb +1 -1
  49. data/lib/efl/native/elm/elm_config.rb +1 -1
  50. data/lib/efl/native/elm/elm_conform.rb +1 -1
  51. data/lib/efl/native/elm/elm_ctxpopup.rb +1 -1
  52. data/lib/efl/native/elm/elm_cursor.rb +1 -1
  53. data/lib/efl/native/elm/elm_datetime.rb +1 -1
  54. data/lib/efl/native/elm/elm_dayselector.rb +1 -1
  55. data/lib/efl/native/elm/elm_debug.rb +1 -1
  56. data/lib/efl/native/elm/elm_diskselector.rb +1 -1
  57. data/lib/efl/native/elm/elm_entry.rb +1 -1
  58. data/lib/efl/native/elm/elm_fileselector.rb +1 -1
  59. data/lib/efl/native/elm/elm_fileselector_button.rb +1 -1
  60. data/lib/efl/native/elm/elm_fileselector_entry.rb +1 -1
  61. data/lib/efl/native/elm/elm_finger.rb +1 -1
  62. data/lib/efl/native/elm/elm_flip.rb +1 -1
  63. data/lib/efl/native/elm/elm_flipselector.rb +1 -1
  64. data/lib/efl/native/elm/elm_focus.rb +1 -1
  65. data/lib/efl/native/elm/elm_frame.rb +1 -1
  66. data/lib/efl/native/elm/elm_gen.rb +1 -1
  67. data/lib/efl/native/elm/elm_general.rb +1 -1
  68. data/lib/efl/native/elm/elm_gengrid.rb +1 -1
  69. data/lib/efl/native/elm/elm_genlist.rb +1 -1
  70. data/lib/efl/native/elm/elm_gesture_layer.rb +1 -1
  71. data/lib/efl/native/elm/elm_glview.rb +1 -1
  72. data/lib/efl/native/elm/elm_grid.rb +1 -1
  73. data/lib/efl/native/elm/elm_hover.rb +1 -1
  74. data/lib/efl/native/elm/elm_hoversel.rb +1 -1
  75. data/lib/efl/native/elm/elm_icon.rb +1 -1
  76. data/lib/efl/native/elm/elm_image.rb +1 -1
  77. data/lib/efl/native/elm/elm_index.rb +1 -1
  78. data/lib/efl/native/elm/elm_inwin.rb +1 -1
  79. data/lib/efl/native/elm/elm_label.rb +1 -1
  80. data/lib/efl/native/elm/elm_layout.rb +1 -1
  81. data/lib/efl/native/elm/elm_list.rb +1 -1
  82. data/lib/efl/native/elm/elm_mapbuf.rb +1 -1
  83. data/lib/efl/native/elm/elm_menu.rb +1 -1
  84. data/lib/efl/native/elm/elm_mirroring.rb +1 -1
  85. data/lib/efl/native/elm/elm_multibuttonentry.rb +1 -1
  86. data/lib/efl/native/elm/elm_naviframe.rb +1 -1
  87. data/lib/efl/native/elm/elm_need.rb +1 -1
  88. data/lib/efl/native/elm/elm_notify.rb +1 -1
  89. data/lib/efl/native/elm/elm_object.rb +1 -1
  90. data/lib/efl/native/elm/elm_object_item.rb +1 -1
  91. data/lib/efl/native/elm/elm_panel.rb +1 -1
  92. data/lib/efl/native/elm/elm_panes.rb +1 -1
  93. data/lib/efl/native/elm/elm_photo.rb +1 -1
  94. data/lib/efl/native/elm/elm_photocam.rb +1 -1
  95. data/lib/efl/native/elm/elm_plug.rb +1 -1
  96. data/lib/efl/native/elm/elm_popup.rb +1 -1
  97. data/lib/efl/native/elm/elm_progressbar.rb +1 -1
  98. data/lib/efl/native/elm/elm_radio.rb +1 -1
  99. data/lib/efl/native/elm/elm_scale.rb +1 -1
  100. data/lib/efl/native/elm/elm_scroll.rb +1 -1
  101. data/lib/efl/native/elm/elm_scroller.rb +1 -1
  102. data/lib/efl/native/elm/elm_segment_control.rb +1 -1
  103. data/lib/efl/native/elm/elm_separator.rb +1 -1
  104. data/lib/efl/native/elm/elm_slider.rb +1 -1
  105. data/lib/efl/native/elm/elm_slideshow.rb +1 -1
  106. data/lib/efl/native/elm/elm_spinner.rb +1 -1
  107. data/lib/efl/native/elm/elm_store.rb +1 -1
  108. data/lib/efl/native/elm/elm_table.rb +1 -1
  109. data/lib/efl/native/elm/elm_theme.rb +1 -1
  110. data/lib/efl/native/elm/elm_thumb.rb +1 -1
  111. data/lib/efl/native/elm/elm_toolbar.rb +1 -1
  112. data/lib/efl/native/elm/elm_tooltip.rb +1 -1
  113. data/lib/efl/native/elm/elm_transit.rb +1 -1
  114. data/lib/efl/native/elm/elm_video.rb +1 -1
  115. data/lib/efl/native/elm/elm_web.rb +1 -1
  116. data/lib/efl/native/elm/elm_win.rb +1 -1
  117. data/lib/efl/native/embryo.rb +1 -1
  118. data/lib/efl/native/emotion.rb +1 -1
  119. data/lib/efl/native/ethumb.rb +1 -1
  120. data/lib/efl/native/ethumb_client.rb +1 -1
  121. data/lib/efl/native/ethumb_plugin.rb +1 -1
  122. data/lib/efl/native/evas.rb +1 -1
  123. data/test/test_button-native.rb +39 -0
  124. data/test/test_button.rb +40 -0
  125. data/test/test_checkbox.rb +58 -0
  126. data/test/test_ecore_pipe-native.rb +52 -0
  127. data/test/test_ecore_pipe.rb +57 -0
  128. data/test/test_elm_win-native2.rb +41 -0
  129. data/test/test_genlist-native.rb +75 -0
  130. data/test/test_genlist.rb +68 -0
  131. data/test/test_layout.rb +65 -0
  132. data/test/test_list.rb +60 -0
  133. data/test/test_naviframe.rb +59 -0
  134. data/test/test_panel.rb +88 -0
  135. data/test/test_panes.rb +74 -0
  136. metadata +44 -43
  137. data/lib/efl/native/ebluez.rb +0 -140
  138. data/lib/efl/native/econnman.rb +0 -253
  139. data/lib/efl/native/edbus.rb +0 -162
  140. data/lib/efl/native/ehal.rb +0 -104
  141. data/lib/efl/native/enotification_daemon.rb +0 -66
  142. data/lib/efl/native/enotify.rb +0 -170
  143. data/lib/efl/native/eofono.rb +0 -112
  144. data/lib/efl/native/eukit.rb +0 -115
  145. data/tools/check_loading +0 -36
  146. data/tools/check_specs +0 -24
  147. data/tools/extract-api.sh +0 -185
  148. data/tools/genruby.rb +0 -491
  149. data/tools/install-efl.sh +0 -16
  150. data/tools/sed-callbacks +0 -28
  151. data/tools/sed-enums +0 -51
  152. data/tools/sed-functions +0 -21
  153. data/tools/sed-types +0 -30
  154. data/tools/sed-variables +0 -9
@@ -1,104 +0,0 @@
1
- #! /usr/bin/env ruby
2
- # -*- coding: UTF-8 -*-
3
- #
4
- require 'efl/native'
5
- require 'efl/native/edbus'
6
- #
7
- module Efl
8
- #
9
- module Ehal
10
- #
11
- FCT_PREFIX = 'e_hal_' unless const_defined? :FCT_PREFIX
12
- #
13
- def self.method_missing meth, *args, &block
14
- sym = Efl::MethodResolver.resolve self, meth, FCT_PREFIX
15
- self.send sym, *args, &block
16
- end
17
- #
18
- end
19
- #
20
- module Native
21
- #
22
- ffi_lib 'ehal'
23
- #
24
- # ENUMS
25
- # typedef enum {...} E_Hal_Property_Type;
26
- enum :e_hal_property_type, [ :e_hal_property_type_string, :e_hal_property_type_int, :e_hal_property_type_uint64, :e_hal_property_type_bool,
27
- :e_hal_property_type_double, :e_hal_property_type_strlist ]
28
- #
29
- # TYPEDEFS
30
- # typedef struct E_Hal_Property E_Hal_Property;
31
- typedef :pointer, :e_hal_property
32
- # typedef struct E_Hal_Properties E_Hal_Properties;
33
- typedef :pointer, :e_hal_properties
34
- # typedef struct E_Hal_Properties E_Hal_Device_Get_All_Properties_Return;
35
- typedef :pointer, :e_hal_device_get_all_properties_return
36
- # typedef struct E_Hal_Property E_Hal_Device_Get_Property_Return;
37
- typedef :pointer, :e_hal_device_get_property_return
38
- # typedef struct E_Hal_Bool_Return E_Hal_Device_Query_Capability_Return;
39
- typedef :pointer, :e_hal_device_query_capability_return
40
- # typedef struct E_Hal_String_List_Return E_Hal_String_List_Return;
41
- typedef :pointer, :e_hal_string_list_return
42
- # typedef struct E_Hal_String_List_Return E_Hal_Manager_Get_All_Devices_Return;
43
- typedef :pointer, :e_hal_manager_get_all_devices_return
44
- # typedef struct E_Hal_Bool_Return E_Hal_Manager_Device_Exists_Return;
45
- typedef :pointer, :e_hal_manager_device_exists_return
46
- # typedef struct E_Hal_String_List_Return E_Hal_Manager_Find_Device_String_Match_Return;
47
- typedef :pointer, :e_hal_manager_find_device_string_match_return
48
- # typedef struct E_Hal_String_List_Return E_Hal_Manager_Find_Device_By_Capability_Return;
49
- typedef :pointer, :e_hal_manager_find_device_by_capability_return
50
- # typedef struct E_Hal_UDI_Return E_Hal_Manager_Device_Added;
51
- typedef :pointer, :e_hal_manager_device_added
52
- # typedef struct E_Hal_UDI_Return E_Hal_Manager_Device_Removed;
53
- typedef :pointer, :e_hal_manager_device_removed
54
- # typedef struct E_Hal_Capability E_Hal_Manager_New_Capability;
55
- typedef :pointer, :e_hal_manager_new_capability
56
- #
57
- # FUNCTIONS
58
- fcts = [
59
- # EAPI int e_hal_init(void);
60
- [ :e_hal_init, [ ], :int ],
61
- # EAPI int e_hal_shutdown(void);
62
- [ :e_hal_shutdown, [ ], :int ],
63
- # EAPI DBusPendingCall *e_hal_device_get_property(E_DBus_Connection *conn, const char *udi, const char *property, E_DBus_Callback_Func cb_func, void *data);
64
- [ :e_hal_device_get_property, [ :e_dbus_connection, :string, :string, :e_dbus_callback_func_cb, :pointer ], :pointer ],
65
- # EAPI DBusPendingCall *e_hal_device_get_all_properties(E_DBus_Connection *conn, const char *udi, E_DBus_Callback_Func cb_func, void *data);
66
- [ :e_hal_device_get_all_properties, [ :e_dbus_connection, :string, :e_dbus_callback_func_cb, :pointer ], :pointer ],
67
- # EAPI DBusPendingCall *e_hal_device_query_capability(E_DBus_Connection *conn, const char *udi, const char *capability, E_DBus_Callback_Func cb_func, void *data);
68
- [ :e_hal_device_query_capability, [ :e_dbus_connection, :string, :string, :e_dbus_callback_func_cb, :pointer ], :pointer ],
69
- # EAPI DBusPendingCall *e_hal_manager_get_all_devices(E_DBus_Connection *conn, E_DBus_Callback_Func cb_func, void *data);
70
- [ :e_hal_manager_get_all_devices, [ :e_dbus_connection, :e_dbus_callback_func_cb, :pointer ], :pointer ],
71
- # EAPI DBusPendingCall *e_hal_manager_device_exists(E_DBus_Connection *conn, const char *udi, E_DBus_Callback_Func cb_func, void *data);
72
- [ :e_hal_manager_device_exists, [ :e_dbus_connection, :string, :e_dbus_callback_func_cb, :pointer ], :pointer ],
73
- # EAPI DBusPendingCall *e_hal_manager_find_device_string_match(E_DBus_Connection *conn, const char *key, const char *value, E_DBus_Callback_Func cb_func, void *data);
74
- [ :e_hal_manager_find_device_string_match, [ :e_dbus_connection, :string, :string, :e_dbus_callback_func_cb, :pointer ], :pointer ],
75
- # EAPI DBusPendingCall *e_hal_manager_find_device_by_capability(E_DBus_Connection *conn, const char *capability, E_DBus_Callback_Func cb_func, void *data);
76
- [ :e_hal_manager_find_device_by_capability, [ :e_dbus_connection, :string, :e_dbus_callback_func_cb, :pointer ], :pointer ],
77
- # EAPI void e_hal_property_free(E_Hal_Property *prop);
78
- [ :e_hal_property_free, [ :e_hal_property ], :void ],
79
- # EAPI const char *e_hal_property_string_get(E_Hal_Properties *properties, const char *key, int *err);
80
- [ :e_hal_property_string_get, [ :e_hal_properties, :string, :pointer ], :string ],
81
- # EAPI Eina_Bool e_hal_property_bool_get(E_Hal_Properties *properties, const char *key, int *err);
82
- [ :e_hal_property_bool_get, [ :e_hal_properties, :string, :pointer ], :bool ],
83
- # EAPI int e_hal_property_int_get(E_Hal_Properties *properties, const char *key, int *err);
84
- [ :e_hal_property_int_get, [ :e_hal_properties, :string, :pointer ], :int ],
85
- # EAPI uint64_t e_hal_property_uint64_get(E_Hal_Properties *properties, const char *key, int *err);
86
- [ :e_hal_property_uint64_get, [ :e_hal_properties, :string, :pointer ], :ulong_long ],
87
- # EAPI double e_hal_property_double_get(E_Hal_Properties *properties, const char *key, int *err);
88
- [ :e_hal_property_double_get, [ :e_hal_properties, :string, :pointer ], :double ],
89
- # EAPI const Eina_List *e_hal_property_strlist_get(E_Hal_Properties *properties, const char *key, int *err);
90
- [ :e_hal_property_strlist_get, [ :e_hal_properties, :string, :pointer ], :eina_list ],
91
- # EAPI DBusPendingCall *e_hal_device_volume_mount(E_DBus_Connection *conn, const char *udi, const char *mount_point, const char *fstype, Eina_List *options, E_DBus_Callback_Func cb_func, void *data);
92
- [ :e_hal_device_volume_mount, [ :e_dbus_connection, :string, :string, :string, :eina_list, :e_dbus_callback_func_cb, :pointer ], :pointer ],
93
- # EAPI DBusPendingCall *e_hal_device_volume_unmount(E_DBus_Connection *conn, const char *udi, Eina_List *options, E_DBus_Callback_Func cb_func, void *data);
94
- [ :e_hal_device_volume_unmount, [ :e_dbus_connection, :string, :eina_list, :e_dbus_callback_func_cb, :pointer ], :pointer ],
95
- # EAPI DBusPendingCall *e_hal_device_volume_eject(E_DBus_Connection *conn, const char *udi, Eina_List *options, E_DBus_Callback_Func cb_func, void *data);
96
- [ :e_hal_device_volume_eject, [ :e_dbus_connection, :string, :eina_list, :e_dbus_callback_func_cb, :pointer ], :pointer ],
97
- ]
98
- #
99
- attach_fcts fcts
100
- #
101
- end
102
- end
103
- #
104
- # EOF
@@ -1,66 +0,0 @@
1
- #! /usr/bin/env ruby
2
- # -*- coding: UTF-8 -*-
3
- #
4
- require 'efl/native'
5
- require 'efl/native/enotify'
6
- #
7
- module Efl
8
- #
9
- module EnotificationDaemon
10
- #
11
- FCT_PREFIX = 'e_notification_daemon_' unless const_defined? :FCT_PREFIX
12
- #
13
- def self.method_missing meth, *args, &block
14
- sym = Efl::MethodResolver.resolve self, meth, FCT_PREFIX
15
- self.send sym, *args, &block
16
- end
17
- #
18
- end
19
- #
20
- module Native
21
- #
22
- ffi_lib 'enotify'
23
- #
24
- # TYPEDEFS
25
- # typedef struct E_Notification_Daemon E_Notification_Daemon;
26
- typedef :pointer, :e_notification_daemon
27
- # typedef struct E_Notification_View E_Notification_View;
28
- typedef :pointer, :e_notification_view
29
- #
30
- # CALLBACKS
31
- # typedef int (*E_Notification_Daemon_Callback_Notify) (E_Notification_Daemon *daemon, E_Notification *notification);
32
- callback :e_notification_daemon_callback_notify_cb, [ :e_notification_daemon, :e_notification ], :int
33
- # typedef void (*E_Notification_Daemon_Callback_Close_Notification) (E_Notification_Daemon *daemon, unsigned int notification_id);
34
- callback :e_notification_daemon_callback_close_notification_cb, [ :e_notification_daemon, :uint ], :void
35
- #
36
- # FUNCTIONS
37
- fcts = [
38
- # EAPI int e_notification_daemon_init(void);
39
- [ :e_notification_daemon_init, [ ], :int ],
40
- # EAPI int e_notification_daemon_shutdown(void);
41
- [ :e_notification_daemon_shutdown, [ ], :int ],
42
- # EAPI E_Notification_Daemon *e_notification_daemon_add(const char *name, const char *vendor);
43
- [ :e_notification_daemon_add, [ :string, :string ], :e_notification_daemon ],
44
- # EAPI void e_notification_daemon_free(E_Notification_Daemon *d);
45
- [ :e_notification_daemon_free, [ :e_notification_daemon ], :void ],
46
- # EAPI void e_notification_daemon_data_set(E_Notification_Daemon *daemon, void *data);
47
- [ :e_notification_daemon_data_set, [ :e_notification_daemon, :pointer ], :void ],
48
- # EAPI void *e_notification_daemon_data_get(E_Notification_Daemon *daemon);
49
- [ :e_notification_daemon_data_get, [ :e_notification_daemon ], :pointer ],
50
- # EAPI void e_notification_daemon_callback_notify_set(E_Notification_Daemon *daemon, E_Notification_Daemon_Callback_Notify func);
51
- [ :e_notification_daemon_callback_notify_set, [ :e_notification_daemon, :e_notification_daemon_callback_notify_cb ], :void ],
52
- # EAPI void e_notification_daemon_callback_close_notification_set(E_Notification_Daemon *daemon, E_Notification_Daemon_Callback_Close_Notification func);
53
- [ :e_notification_daemon_callback_close_notification_set, [ :e_notification_daemon, :e_notification_daemon_callback_close_notification_cb ],
54
- :void ],
55
- # EAPI void e_notification_daemon_signal_notification_closed(E_Notification_Daemon *daemon, unsigned int id, E_Notification_Closed_Reason reason);
56
- [ :e_notification_daemon_signal_notification_closed, [ :e_notification_daemon, :uint, :e_notification_closed_reason ], :void ],
57
- # EAPI void e_notification_daemon_signal_action_invoked(E_Notification_Daemon *daemon, unsigned int notification_id, const char *action_id);
58
- [ :e_notification_daemon_signal_action_invoked, [ :e_notification_daemon, :uint, :string ], :void ],
59
- ]
60
- #
61
- attach_fcts fcts
62
- #
63
- end
64
- end
65
- #
66
- # EOF
@@ -1,170 +0,0 @@
1
- #! /usr/bin/env ruby
2
- # -*- coding: UTF-8 -*-
3
- #
4
- require 'efl/native'
5
- require 'efl/native/evas'
6
- require 'efl/native/edbus'
7
- #
8
- module Efl
9
- #
10
- module Enotify
11
- #
12
- FCT_PREFIX = 'e_notification_' unless const_defined? :FCT_PREFIX
13
- #
14
- def self.method_missing meth, *args, &block
15
- sym = Efl::MethodResolver.resolve self, meth, FCT_PREFIX
16
- self.send sym, *args, &block
17
- end
18
- #
19
- end
20
- #
21
- module Native
22
- #
23
- ffi_lib 'enotify'
24
- #
25
- # ENUMS
26
- # typedef enum E_Notification_Urgency {...} E_Notification_Urgency;
27
- enum :e_notification_urgency, [ :e_notification_urgency_low, 0, :e_notification_urgency_normal, 1, :e_notification_urgency_critical, 2 ]
28
- # typedef enum E_Notification_Hint_Type {...} E_Notification_Hint_Type;
29
- enum :e_notification_hint_type, [ :e_notification_hint_urgency, (1 << 0), :e_notification_hint_category, (1 << 1), :e_notification_hint_desktop, (1 << 2),
30
- :e_notification_hint_sound_file, (1 << 3), :e_notification_hint_transient, (1 << 4), :e_notification_hint_resident, (1 << 5),
31
- :e_notification_hint_action_icons, (1 << 6), :e_notification_hint_suppress_sound, 0x10, :e_notification_hint_xy, 0x20, :e_notification_hint_image_data, 0x40 ]
32
- # typedef enum E_Closed_Reason {...} E_Closed_Reason;
33
- enum :e_notification_closed_reason, [ :e_notification_closed_expired, 0, :e_notification_closed_dismissed, 1, :e_notification_closed_requested, 2,
34
- :e_notification_closed_undefined, 3 ]
35
- # TYPEDEFS
36
- # typedef struct E_Notification_Image E_Notification_Image;
37
- typedef :pointer, :e_notification_image
38
- # typedef struct E_Notification E_Notification;
39
- typedef :pointer, :e_notification
40
- # typedef struct E_Notification_Action E_Notification_Action;
41
- typedef :pointer, :e_notification_action
42
- # typedef struct E_Notification_Return_Notify E_Notification_Return_Notify;
43
- typedef :pointer, :e_notification_return_notify
44
- # typedef struct E_Notification_Return_Get_Capabilities E_Notification_Return_Get_Capabilities;
45
- typedef :pointer, :e_notification_return_get_capabilities
46
- # typedef struct E_Notification_Return_Get_Server_Information E_Notification_Return_Get_Server_Information;
47
- typedef :pointer, :e_notification_return_get_server_information
48
- # typedef struct E_Notification_Event_Action_Invoked E_Notification_Event_Action_Invoked;
49
- typedef :pointer, :e_notification_event_action_invoked
50
- # typedef struct E_Notification_Event_Notification_Closed E_Notification_Event_Notification_Closed;
51
- typedef :pointer, :e_notification_event_notification_closed
52
- #
53
- # FUNCTIONS
54
- fcts = [
55
- # EAPI int e_notification_init(void);
56
- [ :e_notification_init, [ ], :int ],
57
- # EAPI int e_notification_shutdown(void);
58
- [ :e_notification_shutdown, [ ], :int ],
59
- # EAPI void e_notification_send(E_Notification *n, E_DBus_Callback_Func func, void *data);
60
- [ :e_notification_send, [ :e_notification, :e_dbus_callback_func_cb, :pointer ], :void ],
61
- # EAPI void e_notification_get_capabilities(E_DBus_Callback_Func func, void *data);
62
- [ :e_notification_get_capabilities, [ :e_dbus_callback_func_cb, :pointer ], :void ],
63
- # EAPI void e_notification_get_server_information(E_DBus_Callback_Func func, void *data);
64
- [ :e_notification_get_server_information, [ :e_dbus_callback_func_cb, :pointer ], :void ],
65
- # EAPI E_Notification *e_notification_new(void);
66
- [ :e_notification_new, [ ], :e_notification ],
67
- # EAPI void e_notification_ref(E_Notification *n);
68
- [ :e_notification_ref, [ :e_notification ], :void ],
69
- # EAPI void e_notification_unref(E_Notification *n);
70
- [ :e_notification_unref, [ :e_notification ], :void ],
71
- # EAPI void e_notification_free(E_Notification *n);
72
- [ :e_notification_free, [ :e_notification ], :void ],
73
- # EAPI E_Notification *e_notification_full_new(const char *app_name, unsigned int replaces_id, const char *app_icon, const char *summary, const char *body, int expire_timeout);
74
- [ :e_notification_full_new, [ :string, :uint, :string, :string, :string, :int ], :e_notification ],
75
- # EAPI void e_notification_id_set(E_Notification *note, unsigned int id);
76
- [ :e_notification_id_set, [ :e_notification, :uint ], :void ],
77
- # EAPI void e_notification_app_name_set(E_Notification *n, const char *app_name);
78
- [ :e_notification_app_name_set, [ :e_notification, :string ], :void ],
79
- # EAPI void e_notification_app_icon_set(E_Notification *n, const char *app_icon);
80
- [ :e_notification_app_icon_set, [ :e_notification, :string ], :void ],
81
- # EAPI void e_notification_summary_set(E_Notification *n, const char *summary);
82
- [ :e_notification_summary_set, [ :e_notification, :string ], :void ],
83
- # EAPI void e_notification_body_set(E_Notification *n, const char *body);
84
- [ :e_notification_body_set, [ :e_notification, :string ], :void ],
85
- # EAPI void e_notification_replaces_id_set(E_Notification *n, int replaces_id);
86
- [ :e_notification_replaces_id_set, [ :e_notification, :int ], :void ],
87
- # EAPI void e_notification_timeout_set(E_Notification *n, int timeout);
88
- [ :e_notification_timeout_set, [ :e_notification, :int ], :void ],
89
- # EAPI void e_notification_closed_set(E_Notification *note, unsigned char closed);
90
- [ :e_notification_closed_set, [ :e_notification, :uchar ], :void ],
91
- # EAPI unsigned int e_notification_id_get(E_Notification *note);
92
- [ :e_notification_id_get, [ :e_notification ], :uint ],
93
- # EAPI const char *e_notification_app_name_get(E_Notification *n);
94
- [ :e_notification_app_name_get, [ :e_notification ], :string ],
95
- # EAPI const char *e_notification_app_icon_get(E_Notification *n);
96
- [ :e_notification_app_icon_get, [ :e_notification ], :string ],
97
- # EAPI const char *e_notification_summary_get(E_Notification *n);
98
- [ :e_notification_summary_get, [ :e_notification ], :string ],
99
- # EAPI const char *e_notification_body_get(E_Notification *n);
100
- [ :e_notification_body_get, [ :e_notification ], :string ],
101
- # EAPI int e_notification_replaces_id_get(E_Notification *note);
102
- [ :e_notification_replaces_id_get, [ :e_notification ], :int ],
103
- # EAPI int e_notification_timeout_get(E_Notification *note);
104
- [ :e_notification_timeout_get, [ :e_notification ], :int ],
105
- # EAPI unsigned char e_notification_closed_get(E_Notification *note);
106
- [ :e_notification_closed_get, [ :e_notification ], :uchar ],
107
- # EAPI void e_notification_action_add(E_Notification *n, const char *action_id, const char *action_name);
108
- [ :e_notification_action_add, [ :e_notification, :string, :string ], :void ],
109
- # EAPI Eina_List *e_notification_actions_get(E_Notification *n);
110
- [ :e_notification_actions_get, [ :e_notification ], :eina_list ],
111
- # EAPI const char *e_notification_action_id_get(E_Notification_Action *a);
112
- [ :e_notification_action_id_get, [ :e_notification_action ], :string ],
113
- # EAPI const char *e_notification_action_name_get(E_Notification_Action *a);
114
- [ :e_notification_action_name_get, [ :e_notification_action ], :string ],
115
- # EAPI void e_notification_hint_transient_set(E_Notification *n, Eina_Bool transient);
116
- [ :e_notification_hint_transient_set, [ :e_notification, :bool ], :void ],
117
- # EAPI void e_notification_hint_resident_set(E_Notification *n, Eina_Bool resident);
118
- [ :e_notification_hint_resident_set, [ :e_notification, :bool ], :void ],
119
- # EAPI void e_notification_hint_action_icons_set(E_Notification *n, Eina_Bool action_icons);
120
- [ :e_notification_hint_action_icons_set, [ :e_notification, :bool ], :void ],
121
- # EAPI void e_notification_hint_image_path_set(E_Notification *n, const char *path);
122
- [ :e_notification_hint_image_path_set, [ :e_notification, :string ], :void ],
123
- # EAPI void e_notification_hint_urgency_set(E_Notification *n, char urgency);
124
- [ :e_notification_hint_urgency_set, [ :e_notification, :char ], :void ],
125
- # EAPI void e_notification_hint_category_set(E_Notification *n, const char *category);
126
- [ :e_notification_hint_category_set, [ :e_notification, :string ], :void ],
127
- # EAPI void e_notification_hint_desktop_set(E_Notification *n, const char *desktop);
128
- [ :e_notification_hint_desktop_set, [ :e_notification, :string ], :void ],
129
- # EAPI void e_notification_hint_sound_file_set(E_Notification *n, const char *sound_file);
130
- [ :e_notification_hint_sound_file_set, [ :e_notification, :string ], :void ],
131
- # EAPI void e_notification_hint_suppress_sound_set(E_Notification *n, char suppress_sound);
132
- [ :e_notification_hint_suppress_sound_set, [ :e_notification, :char ], :void ],
133
- # EAPI void e_notification_hint_xy_set(E_Notification *n, int x, int y);
134
- [ :e_notification_hint_xy_set, [ :e_notification, :int, :int ], :void ],
135
- # EAPI void e_notification_hint_image_data_set(E_Notification *n, E_Notification_Image *image);
136
- [ :e_notification_hint_image_data_set, [ :e_notification, :e_notification_image ], :void ],
137
- # EAPI char e_notification_hint_urgency_get(E_Notification *n);
138
- [ :e_notification_hint_urgency_get, [ :e_notification ], :char ],
139
- # EAPI const char *e_notification_hint_category_get(E_Notification *n);
140
- [ :e_notification_hint_category_get, [ :e_notification ], :string ],
141
- # EAPI const char *e_notification_hint_desktop_get(E_Notification *n);
142
- [ :e_notification_hint_desktop_get, [ :e_notification ], :string ],
143
- # EAPI const char *e_notification_hint_sound_file_get(E_Notification *n);
144
- [ :e_notification_hint_sound_file_get, [ :e_notification ], :string ],
145
- # EAPI const char *e_notification_hint_image_path_get(E_Notification *n);
146
- [ :e_notification_hint_image_path_get, [ :e_notification ], :string ],
147
- # EAPI char e_notification_hint_suppress_sound_get(E_Notification *n);
148
- [ :e_notification_hint_suppress_sound_get, [ :e_notification ], :char ],
149
- # EAPI int e_notification_hint_xy_get(E_Notification *n, int *x, int *y);
150
- [ :e_notification_hint_xy_get, [ :e_notification, :pointer, :pointer ], :int ],
151
- # EAPI E_Notification_Image *e_notification_hint_image_data_get(E_Notification *n);
152
- [ :e_notification_hint_image_data_get, [ :e_notification ], :e_notification_image ],
153
- # EAPI E_Notification_Image *e_notification_hint_icon_data_get(E_Notification *n);
154
- [ :e_notification_hint_icon_data_get, [ :e_notification ], :e_notification_image ],
155
- # EAPI E_Notification_Image *e_notification_image_new(void);
156
- [ :e_notification_image_new, [ ], :e_notification_image ],
157
- # EAPI void e_notification_image_free(E_Notification_Image *img);
158
- [ :e_notification_image_free, [ :e_notification_image ], :void ],
159
- # EAPI Eina_Bool e_notification_image_init(E_Notification_Image *img, Evas_Object *obj);
160
- [ :e_notification_image_init, [ :e_notification_image, :evas_object ], :bool ],
161
- # EAPI Evas_Object *e_notification_image_evas_object_add(Evas *evas, E_Notification_Image *img);
162
- [ :e_notification_image_evas_object_add, [ :evas, :e_notification_image ], :evas_object ],
163
- ]
164
- #
165
- attach_fcts fcts
166
- #
167
- end
168
- end
169
- #
170
- # EOF
@@ -1,112 +0,0 @@
1
- #! /usr/bin/env ruby
2
- # -*- coding: UTF-8 -*-
3
- #
4
- require 'efl/native'
5
- require 'efl/native/edbus'
6
- #
7
- module Efl
8
- #
9
- module Eofono
10
- #
11
- FCT_PREFIX = 'e_ofono_' unless const_defined? :FCT_PREFIX
12
- #
13
- def self.method_missing meth, *args, &block
14
- sym = Efl::MethodResolver.resolve self, meth, FCT_PREFIX
15
- self.send sym, *args, &block
16
- end
17
- #
18
- end
19
- #
20
- module Native
21
- #
22
- ffi_lib 'eofono'
23
- #
24
- # TYPEDEFS
25
- # typedef struct _E_Ofono_Element E_Ofono_Element;
26
- typedef :pointer, :e_ofono_element
27
- #
28
- # FUNCTIONS
29
- fcts = [
30
- # EAPI unsigned int e_ofono_system_init(E_DBus_Connection *edbus_conn);
31
- [ :e_ofono_system_init, [ :e_dbus_connection ], :uint ],
32
- # EAPI unsigned int e_ofono_system_shutdown(void);
33
- [ :e_ofono_system_shutdown, [ ], :uint ],
34
- # EAPI E_Ofono_Element * e_ofono_manager_get(void);
35
- [ :e_ofono_manager_get, [ ], :e_ofono_element ],
36
- # EAPI Eina_Bool e_ofono_manager_modems_get(Eina_Array **array);
37
- [ :e_ofono_manager_modems_get, [ :pointer ], :bool ],
38
- # EAPI Eina_Bool e_ofono_modem_powered_get(const E_Ofono_Element *element, Eina_Bool *powered);
39
- [ :e_ofono_modem_powered_get, [ :e_ofono_element, :pointer ], :bool ],
40
- # EAPI Eina_Bool e_ofono_modem_powered_set(E_Ofono_Element *element, Eina_Bool powered, E_DBus_Method_Return_Cb cb, const void *data);
41
- [ :e_ofono_modem_powered_set, [ :e_ofono_element, :bool, :e_dbus_method_return_cb, :pointer ], :bool ],
42
- # EAPI Eina_Bool e_ofono_modem_name_get(const E_Ofono_Element *element, const char **name);
43
- [ :e_ofono_modem_name_get, [ :e_ofono_element, :pointer ], :bool ],
44
- # EAPI Eina_Bool e_ofono_netreg_mode_get(const E_Ofono_Element *element, const char **mode);
45
- [ :e_ofono_netreg_mode_get, [ :e_ofono_element, :pointer ], :bool ],
46
- # EAPI Eina_Bool e_ofono_netreg_status_get(const E_Ofono_Element *element, const char **status);
47
- [ :e_ofono_netreg_status_get, [ :e_ofono_element, :pointer ], :bool ],
48
- # EAPI Eina_Bool e_ofono_netreg_operator_get(const E_Ofono_Element *element, const char **op);
49
- [ :e_ofono_netreg_operator_get, [ :e_ofono_element, :pointer ], :bool ],
50
- # EAPI Eina_Bool e_ofono_netreg_strength_get(const E_Ofono_Element *element, uint8_t *strength);
51
- [ :e_ofono_netreg_strength_get, [ :e_ofono_element, :pointer ], :bool ],
52
- # EAPI Eina_Bool e_ofono_sms_sca_get(const E_Ofono_Element *element, const char **sca);
53
- [ :e_ofono_sms_sca_get, [ :e_ofono_element, :pointer ], :bool ],
54
- # EAPI Eina_Bool e_ofono_sms_sca_set(E_Ofono_Element *element, const char *sca, E_DBus_Method_Return_Cb cb, const void *data);
55
- [ :e_ofono_sms_sca_set, [ :e_ofono_element, :string, :e_dbus_method_return_cb, :pointer ], :bool ],
56
- # EAPI Eina_Bool e_ofono_sms_send_message(E_Ofono_Element *element, const char *number, const char *message, E_DBus_Method_Return_Cb cb, const void *data);
57
- [ :e_ofono_sms_send_message, [ :e_ofono_element, :string, :string, :e_dbus_method_return_cb, :pointer ], :bool ],
58
- # EAPI Eina_Bool e_ofono_manager_sync_elements(void);
59
- [ :e_ofono_manager_sync_elements, [ ], :bool ],
60
- # EAPI Eina_Bool e_ofono_elements_get_all(unsigned int *count, E_Ofono_Element ***p_elements);
61
- [ :e_ofono_elements_get_all, [ :pointer, :e_ofono_element ], :bool ],
62
- # EAPI Eina_Bool e_ofono_elements_get_all_type(const char *type, unsigned int *count, E_Ofono_Element ***p_elements);
63
- [ :e_ofono_elements_get_all_type, [ :string, :pointer, :e_ofono_element ], :bool ],
64
- # EAPI E_Ofono_Element * e_ofono_element_get(const char *path, const char *interface);
65
- [ :e_ofono_element_get, [ :string, :string ], :e_ofono_element ],
66
- # EAPI void e_ofono_element_listener_add(E_Ofono_Element *element, void (*cb)(void *data, const E_Ofono_Element *element), const void *data, void (*free_data)(void *data));
67
- [ :e_ofono_element_listener_add, [ :e_ofono_element, (callback [:pointer, :e_ofono_element], :void), :pointer, (callback [:pointer], :void) ], :void ],
68
- # EAPI void e_ofono_element_listener_del(E_Ofono_Element *element, void (*cb)(void *data, const E_Ofono_Element *element), const void *data);
69
- [ :e_ofono_element_listener_del, [ :e_ofono_element, (callback [:pointer, :e_ofono_element], :void), :pointer ], :void ],
70
- # EAPI int e_ofono_element_ref(E_Ofono_Element *element);
71
- [ :e_ofono_element_ref, [ :e_ofono_element ], :int ],
72
- # EAPI int e_ofono_element_unref(E_Ofono_Element *element);
73
- [ :e_ofono_element_unref, [ :e_ofono_element ], :int ],
74
- # EAPI void e_ofono_element_print(FILE *fp, const E_Ofono_Element *element);
75
- [ :e_ofono_element_print, [ :pointer, :e_ofono_element ], :void ],
76
- # EAPI Eina_Bool e_ofono_element_properties_sync(E_Ofono_Element *element);
77
- [ :e_ofono_element_properties_sync, [ :e_ofono_element ], :bool ],
78
- # EAPI Eina_Bool e_ofono_element_properties_sync_full(E_Ofono_Element *element, E_DBus_Method_Return_Cb cb, const void *data);
79
- [ :e_ofono_element_properties_sync_full, [ :e_ofono_element, :e_dbus_method_return_cb, :pointer ], :bool ],
80
- # EAPI Eina_Bool e_ofono_element_property_set(E_Ofono_Element *element, const char *prop, int type, const void *value);
81
- [ :e_ofono_element_property_set, [ :e_ofono_element, :string, :int, :pointer ], :bool ],
82
- # EAPI Eina_Bool e_ofono_element_property_set_full(E_Ofono_Element *element, const char *prop, int type, const void *value, E_DBus_Method_Return_Cb cb, const void *data);
83
- [ :e_ofono_element_property_set_full, [ :e_ofono_element, :string, :int, :pointer, :e_dbus_method_return_cb, :pointer ], :bool ],
84
- # EAPI Eina_Bool e_ofono_element_property_dict_set_full(E_Ofono_Element *element, const char *prop, const char *key, int type, const void *value, E_DBus_Method_Return_Cb cb, const void *data);
85
- [ :e_ofono_element_property_dict_set_full, [ :e_ofono_element, :string, :string, :int, :pointer, :e_dbus_method_return_cb, :pointer ], :bool
86
- ],
87
- # EAPI void e_ofono_element_properties_list(const E_Ofono_Element *element, Eina_Bool (*cb)(void *data, const E_Ofono_Element *element, const char *name, int type, const void *value), const void *data);
88
- [ :e_ofono_element_properties_list, [ :e_ofono_element, (callback [:pointer, :e_ofono_element, :string, :int, :pointer], :bool), :pointer ], :void ],
89
- # EAPI Eina_Bool e_ofono_element_property_type_get_stringshared(const E_Ofono_Element *element, const char *name, int *type);
90
- [ :e_ofono_element_property_type_get_stringshared, [ :e_ofono_element, :string, :pointer ], :bool ],
91
- # EAPI Eina_Bool e_ofono_element_property_type_get(const E_Ofono_Element *element, const char *name, int *type);
92
- [ :e_ofono_element_property_type_get, [ :e_ofono_element, :string, :pointer ], :bool ],
93
- # EAPI Eina_Bool e_ofono_element_property_dict_get_stringshared(const E_Ofono_Element *element, const char *dict_name, const char *key_name, int *type, void *value);
94
- [ :e_ofono_element_property_dict_get_stringshared, [ :e_ofono_element, :string, :string, :pointer, :pointer ], :bool ],
95
- # EAPI Eina_Bool e_ofono_element_property_get_stringshared(const E_Ofono_Element *element, const char *name, int *type, void *value);
96
- [ :e_ofono_element_property_get_stringshared, [ :e_ofono_element, :string, :pointer, :pointer ], :bool ],
97
- # EAPI Eina_Bool e_ofono_element_property_get(const E_Ofono_Element *element, const char *name, int *type, void *value);
98
- [ :e_ofono_element_property_get, [ :e_ofono_element, :string, :pointer, :pointer ], :bool ],
99
- # EAPI Eina_Bool e_ofono_element_is_manager(const E_Ofono_Element *element);
100
- [ :e_ofono_element_is_manager, [ :e_ofono_element ], :bool ],
101
- # EAPI Eina_Bool e_ofono_element_is_modem(const E_Ofono_Element *element);
102
- [ :e_ofono_element_is_modem, [ :e_ofono_element ], :bool ],
103
- # EAPI Eina_Bool e_ofono_element_is_netreg(const E_Ofono_Element *element);
104
- [ :e_ofono_element_is_netreg, [ :e_ofono_element ], :bool ],
105
- ]
106
- #
107
- attach_fcts fcts
108
- #
109
- end
110
- end
111
- #
112
- # EOF