ffi-efl 0.0.16 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Changelog +15 -0
- data/README.md +1 -3
- data/lib/efl.rb +1 -1
- data/lib/efl/native/ebluez.rb +140 -0
- data/lib/efl/native/econnman.rb +253 -0
- data/lib/efl/native/edbus.rb +162 -0
- data/lib/efl/native/eeze.rb +103 -0
- data/lib/efl/native/eeze_disk.rb +142 -0
- data/lib/efl/native/eeze_net.rb +60 -0
- data/lib/efl/native/ehal.rb +104 -0
- data/lib/efl/native/emotion.rb +224 -0
- data/lib/efl/native/enotification_daemon.rb +66 -0
- data/lib/efl/native/enotify.rb +170 -0
- data/lib/efl/native/eofono.rb +112 -0
- data/lib/efl/native/eukit.rb +115 -0
- data/lib/efl/native/evas.rb +1 -1
- data/tools/extract-api.sh +12 -0
- data/tools/genruby.rb +25 -9
- metadata +36 -9
@@ -0,0 +1,66 @@
|
|
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
|
@@ -0,0 +1,170 @@
|
|
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
|
@@ -0,0 +1,112 @@
|
|
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
|
@@ -0,0 +1,115 @@
|
|
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 Eukit
|
10
|
+
#
|
11
|
+
FCT_PREFIX = 'e_ukit_' 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 'eukit'
|
23
|
+
#
|
24
|
+
# ENUMS
|
25
|
+
# typedef enum {...} E_Ukit_Property_Type;
|
26
|
+
enum :e_ukit_property_type, [ :e_ukit_property_type_string, :e_ukit_property_type_int, :e_ukit_property_type_uint32,
|
27
|
+
:e_ukit_property_type_uint64, :e_ukit_property_type_int64, :e_ukit_property_type_bool, :e_ukit_property_type_double, :e_ukit_property_type_strlist ]
|
28
|
+
# typedef enum {...} E_UPower_Battery_Type;
|
29
|
+
enum :e_upower_battery_type, [ :e_upower_battery_unknown, :e_upower_battery_lion, :e_upower_battery_lpolymer, :e_upower_battery_lironphos,
|
30
|
+
:e_upower_battery_lead, :e_upower_battery_nicad, :e_upower_battery_metalhydryde ]
|
31
|
+
# typedef enum {...} E_Upower_State;
|
32
|
+
enum :e_upower_state, [ :e_upower_state_unknown, :e_upower_state_charging, :e_upower_state_discharging, :e_upower_state_empty,
|
33
|
+
:e_upower_state_full, :e_upower_state_pendingcharge, :e_upower_state_pendingdischarge ]
|
34
|
+
# typedef enum {...} E_Upower_Source;
|
35
|
+
enum :e_upower_source, [ :e_upower_source_unknown, :e_upower_source_ac, :e_upower_source_battery, :e_upower_source_ups,
|
36
|
+
:e_upower_source_monitor, :e_upower_source_mouse, :e_upower_source_keyboard, :e_upower_source_pda, :e_upower_source_phone ]
|
37
|
+
#
|
38
|
+
# TYPEDEFS
|
39
|
+
# typedef struct E_Ukit_Property E_Ukit_Property;
|
40
|
+
typedef :pointer, :e_ukit_property
|
41
|
+
# typedef struct E_Ukit_Properties E_Ukit_Properties;
|
42
|
+
typedef :pointer, :e_ukit_properties
|
43
|
+
# typedef struct E_Ukit_Properties E_Ukit_Get_All_Properties_Return;
|
44
|
+
typedef :pointer, :e_ukit_get_all_properties_return
|
45
|
+
# typedef struct E_Ukit_Property E_Ukit_Get_Property_Return;
|
46
|
+
typedef :pointer, :e_ukit_get_property_return
|
47
|
+
# typedef struct E_Ukit_String_List_Return E_Ukit_String_List_Return;
|
48
|
+
typedef :pointer, :e_ukit_string_list_return
|
49
|
+
# typedef struct E_Ukit_String_List_Return E_Ukit_Get_All_Devices_Return;
|
50
|
+
typedef :pointer, :e_ukit_get_all_devices_return
|
51
|
+
# typedef struct E_Ukit_UDI_Return E_Ukit_Device_Added;
|
52
|
+
typedef :pointer, :e_ukit_device_added
|
53
|
+
# typedef struct E_Ukit_UDI_Return E_Ukit_Device_Removed;
|
54
|
+
typedef :pointer, :e_ukit_device_removed
|
55
|
+
# typedef struct E_Ukit_Capability E_Ukit_New_Capability;
|
56
|
+
typedef :pointer, :e_ukit_new_capability
|
57
|
+
#
|
58
|
+
# FUNCTIONS
|
59
|
+
fcts = [
|
60
|
+
# EAPI int e_ukit_init(void);
|
61
|
+
[ :e_ukit_init, [ ], :int ],
|
62
|
+
# EAPI int e_ukit_shutdown(void);
|
63
|
+
[ :e_ukit_shutdown, [ ], :int ],
|
64
|
+
# EAPI DBusPendingCall *e_udisks_get_property(E_DBus_Connection *conn, const char *udi, const char *property, E_DBus_Callback_Func cb_func, void *data);
|
65
|
+
[ :e_udisks_get_property, [ :e_dbus_connection, :string, :string, :e_dbus_callback_func_cb, :pointer ], :pointer ],
|
66
|
+
# EAPI DBusPendingCall *e_udisks_get_all_properties(E_DBus_Connection *conn, const char *udi, E_DBus_Callback_Func cb_func, void *data);
|
67
|
+
[ :e_udisks_get_all_properties, [ :e_dbus_connection, :string, :e_dbus_callback_func_cb, :pointer ], :pointer ],
|
68
|
+
# EAPI DBusPendingCall *e_udisks_get_all_devices(E_DBus_Connection *conn, E_DBus_Callback_Func cb_func, void *data);
|
69
|
+
[ :e_udisks_get_all_devices, [ :e_dbus_connection, :e_dbus_callback_func_cb, :pointer ], :pointer ],
|
70
|
+
# EAPI DBusPendingCall *e_upower_get_property(E_DBus_Connection *conn, const char *udi, const char *property, E_DBus_Callback_Func cb_func, void *data);
|
71
|
+
[ :e_upower_get_property, [ :e_dbus_connection, :string, :string, :e_dbus_callback_func_cb, :pointer ], :pointer ],
|
72
|
+
# EAPI DBusPendingCall *e_upower_get_all_properties(E_DBus_Connection *conn, const char *udi, E_DBus_Callback_Func cb_func, void *data);
|
73
|
+
[ :e_upower_get_all_properties, [ :e_dbus_connection, :string, :e_dbus_callback_func_cb, :pointer ], :pointer ],
|
74
|
+
# EAPI DBusPendingCall *e_upower_get_all_devices(E_DBus_Connection *conn, E_DBus_Callback_Func cb_func, void *data);
|
75
|
+
[ :e_upower_get_all_devices, [ :e_dbus_connection, :e_dbus_callback_func_cb, :pointer ], :pointer ],
|
76
|
+
# EAPI DBusPendingCall * e_upower_suspend_allowed(E_DBus_Connection *conn, E_DBus_Callback_Func cb_func, void *data);
|
77
|
+
[ :e_upower_suspend_allowed, [ :e_dbus_connection, :e_dbus_callback_func_cb, :pointer ], :pointer ],
|
78
|
+
# EAPI DBusPendingCall * e_upower_suspend(E_DBus_Connection *conn, E_DBus_Callback_Func cb_func, void *data);
|
79
|
+
[ :e_upower_suspend, [ :e_dbus_connection, :e_dbus_callback_func_cb, :pointer ], :pointer ],
|
80
|
+
# EAPI DBusPendingCall * e_upower_hibernate(E_DBus_Connection *conn, E_DBus_Callback_Func cb_func, void *data);
|
81
|
+
[ :e_upower_hibernate, [ :e_dbus_connection, :e_dbus_callback_func_cb, :pointer ], :pointer ],
|
82
|
+
# EAPI DBusPendingCall * e_upower_hibernate_allowed(E_DBus_Connection *conn, E_DBus_Callback_Func cb_func, void *data);
|
83
|
+
[ :e_upower_hibernate_allowed, [ :e_dbus_connection, :e_dbus_callback_func_cb, :pointer ], :pointer ],
|
84
|
+
# EAPI void e_ukit_property_free(E_Ukit_Property *prop);
|
85
|
+
[ :e_ukit_property_free, [ :e_ukit_property ], :void ],
|
86
|
+
# EAPI const char *e_ukit_property_string_get(E_Ukit_Properties *properties, const char *key, int *err);
|
87
|
+
[ :e_ukit_property_string_get, [ :e_ukit_properties, :string, :pointer ], :string ],
|
88
|
+
# EAPI Eina_Bool e_ukit_property_bool_get(E_Ukit_Properties *properties, const char *key, int *err);
|
89
|
+
[ :e_ukit_property_bool_get, [ :e_ukit_properties, :string, :pointer ], :bool ],
|
90
|
+
# EAPI int e_ukit_property_int_get(E_Ukit_Properties *properties, const char *key, int *err);
|
91
|
+
[ :e_ukit_property_int_get, [ :e_ukit_properties, :string, :pointer ], :int ],
|
92
|
+
# EAPI uint32_t e_ukit_property_uint32_get(E_Ukit_Properties *properties, const char *key, int *err);
|
93
|
+
[ :e_ukit_property_uint32_get, [ :e_ukit_properties, :string, :pointer ], :uint ],
|
94
|
+
# EAPI uint64_t e_ukit_property_uint64_get(E_Ukit_Properties *properties, const char *key, int *err);
|
95
|
+
[ :e_ukit_property_uint64_get, [ :e_ukit_properties, :string, :pointer ], :ulong_long ],
|
96
|
+
# EAPI int64_t e_ukit_property_int64_get(E_Ukit_Properties *properties, const char *key, int *err);
|
97
|
+
[ :e_ukit_property_int64_get, [ :e_ukit_properties, :string, :pointer ], :long_long ],
|
98
|
+
# EAPI double e_ukit_property_double_get(E_Ukit_Properties *properties, const char *key, int *err);
|
99
|
+
[ :e_ukit_property_double_get, [ :e_ukit_properties, :string, :pointer ], :double ],
|
100
|
+
# EAPI const Eina_List *e_ukit_property_strlist_get(E_Ukit_Properties *properties, const char *key, int *err);
|
101
|
+
[ :e_ukit_property_strlist_get, [ :e_ukit_properties, :string, :pointer ], :eina_list ],
|
102
|
+
# EAPI DBusPendingCall *e_udisks_volume_mount(E_DBus_Connection *conn, const char *udi, const char *fstype, Eina_List *options);
|
103
|
+
[ :e_udisks_volume_mount, [ :e_dbus_connection, :string, :string, :eina_list ], :pointer ],
|
104
|
+
# EAPI DBusPendingCall *e_udisks_volume_unmount(E_DBus_Connection *conn, const char *udi, Eina_List *options);
|
105
|
+
[ :e_udisks_volume_unmount, [ :e_dbus_connection, :string, :eina_list ], :pointer ],
|
106
|
+
# EAPI DBusPendingCall *e_udisks_volume_eject(E_DBus_Connection *conn, const char *udi, Eina_List *options);
|
107
|
+
[ :e_udisks_volume_eject, [ :e_dbus_connection, :string, :eina_list ], :pointer ],
|
108
|
+
]
|
109
|
+
#
|
110
|
+
attach_fcts fcts
|
111
|
+
#
|
112
|
+
end
|
113
|
+
end
|
114
|
+
#
|
115
|
+
# EOF
|