ffi-efl 0.0.16 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,103 @@
1
+ #! /usr/bin/env ruby
2
+ # -*- coding: UTF-8 -*-
3
+ #
4
+ require 'efl/native'
5
+ require 'efl/native/eina_list'
6
+ #
7
+ module Efl
8
+ #
9
+ module Eeze
10
+ #
11
+ FCT_PREFIX = 'eeze_' 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 'eeze'
23
+ #
24
+ # ENUMS
25
+ # typedef enum {...} Eeze_Udev_Event;
26
+ enum :eeze_udev_event, [ :eeze_udev_event_none, 0xf0, :eeze_udev_event_add, (1<<1), :eeze_udev_event_remove, (1<<2), :eeze_udev_event_change,
27
+ (1<<3), :eeze_udev_event_online, (1<<4), :eeze_udev_event_offline, (1<<5) ]
28
+ # typedef enum {...} Eeze_Udev_Type;
29
+ enum :eeze_udev_type, [ :eeze_udev_type_none, :eeze_udev_type_keyboard, :eeze_udev_type_mouse, :eeze_udev_type_touchpad,
30
+ :eeze_udev_type_drive_mountable, :eeze_udev_type_drive_internal, :eeze_udev_type_drive_removable, :eeze_udev_type_drive_cdrom,
31
+ :eeze_udev_type_power_ac, :eeze_udev_type_power_bat, :eeze_udev_type_is_it_hot_or_is_it_cold_sensor, :eeze_udev_type_net, :eeze_udev_type_v4l,
32
+ :eeze_udev_type_bluetooth, :eeze_udev_type_joystick ]
33
+ #
34
+ # TYPEDEFS
35
+ # typedef struct Eeze_Udev_Watch Eeze_Udev_Watch;
36
+ typedef :pointer, :eeze_udev_watch
37
+ # typedef struct _Eeze_Version Eeze_Version;
38
+ typedef :pointer, :eeze_version
39
+ #
40
+ # CALLBACKS
41
+ # typedef void(*Eeze_Udev_Watch_Cb) (const char *, Eeze_Udev_Event, void *, Eeze_Udev_Watch *);
42
+ callback :eeze_udev_watch_cb, [ :string, :eeze_udev_event, :pointer, :eeze_udev_watch ], :void
43
+ #
44
+ # VARIABLES
45
+ # EAPI extern Eeze_Version *eeze_version;
46
+ attach_variable :eeze_version, :eeze_version
47
+ #
48
+ # FUNCTIONS
49
+ fcts = [
50
+ # EAPI int eeze_init(void);
51
+ [ :eeze_init, [ ], :int ],
52
+ # EAPI int eeze_shutdown(void);
53
+ [ :eeze_shutdown, [ ], :int ],
54
+ # EAPI Eina_List *eeze_udev_find_similar_from_syspath(const char *syspath);
55
+ [ :eeze_udev_find_similar_from_syspath, [ :string ], :eina_list ],
56
+ # EAPI Eina_List *eeze_udev_find_unlisted_similar(Eina_List *list);
57
+ [ :eeze_udev_find_unlisted_similar, [ :eina_list ], :eina_list ],
58
+ # EAPI Eina_List *eeze_udev_find_by_sysattr(const char *sysattr, const char *value);
59
+ [ :eeze_udev_find_by_sysattr, [ :string, :string ], :eina_list ],
60
+ # EAPI Eina_List *eeze_udev_find_by_type(Eeze_Udev_Type type, const char *name);
61
+ [ :eeze_udev_find_by_type, [ :eeze_udev_type, :string ], :eina_list ],
62
+ # EAPI Eina_List *eeze_udev_find_by_filter(const char *subsystem, const char *type, const char *name);
63
+ [ :eeze_udev_find_by_filter, [ :string, :string, :string ], :eina_list ],
64
+ # EAPI const char *eeze_udev_devpath_get_syspath(const char *devpath);
65
+ [ :eeze_udev_devpath_get_syspath, [ :string ], :string ],
66
+ # EAPI const char *eeze_udev_syspath_get_parent(const char *syspath);
67
+ [ :eeze_udev_syspath_get_parent, [ :string ], :string ],
68
+ # EAPI Eina_List *eeze_udev_syspath_get_parents(const char *syspath);
69
+ [ :eeze_udev_syspath_get_parents, [ :string ], :eina_list ],
70
+ # EAPI const char *eeze_udev_syspath_get_devpath(const char *syspath);
71
+ [ :eeze_udev_syspath_get_devpath, [ :string ], :string ],
72
+ # EAPI const char *eeze_udev_syspath_get_devname(const char *syspath);
73
+ [ :eeze_udev_syspath_get_devname, [ :string ], :string ],
74
+ # EAPI const char *eeze_udev_syspath_get_subsystem(const char *syspath);
75
+ [ :eeze_udev_syspath_get_subsystem, [ :string ], :string ],
76
+ # EAPI const char *eeze_udev_syspath_get_property(const char *syspath, const char *property);
77
+ [ :eeze_udev_syspath_get_property, [ :string, :string ], :string ],
78
+ # EAPI const char *eeze_udev_syspath_get_sysattr(const char *syspath, const char *sysattr);
79
+ [ :eeze_udev_syspath_get_sysattr, [ :string, :string ], :string ],
80
+ # EAPI Eina_Bool eeze_udev_syspath_is_mouse(const char *syspath);
81
+ [ :eeze_udev_syspath_is_mouse, [ :string ], :bool ],
82
+ # EAPI Eina_Bool eeze_udev_syspath_is_kbd(const char *syspath);
83
+ [ :eeze_udev_syspath_is_kbd, [ :string ], :bool ],
84
+ # EAPI Eina_Bool eeze_udev_syspath_is_touchpad(const char *syspath);
85
+ [ :eeze_udev_syspath_is_touchpad, [ :string ], :bool ],
86
+ # EAPI Eina_Bool eeze_udev_syspath_is_joystick(const char *syspath);
87
+ [ :eeze_udev_syspath_is_joystick, [ :string ], :bool ],
88
+ # EAPI Eina_Bool eeze_udev_walk_check_sysattr(const char *syspath, const char *sysattr, const char *value);
89
+ [ :eeze_udev_walk_check_sysattr, [ :string, :string, :string ], :bool ],
90
+ # EAPI const char *eeze_udev_walk_get_sysattr(const char *syspath, const char *sysattr);
91
+ [ :eeze_udev_walk_get_sysattr, [ :string, :string ], :string ],
92
+ # EAPI Eeze_Udev_Watch *eeze_udev_watch_add(Eeze_Udev_Type type, int event, Eeze_Udev_Watch_Cb cb, void *user_data);
93
+ [ :eeze_udev_watch_add, [ :eeze_udev_type, :int, :eeze_udev_watch_cb, :pointer ], :eeze_udev_watch ],
94
+ # EAPI void *eeze_udev_watch_del(Eeze_Udev_Watch *watch);
95
+ [ :eeze_udev_watch_del, [ :eeze_udev_watch ], :pointer ],
96
+ ]
97
+ #
98
+ attach_fcts fcts
99
+ #
100
+ end
101
+ end
102
+ #
103
+ # EOF
@@ -0,0 +1,142 @@
1
+ #! /usr/bin/env ruby
2
+ # -*- coding: UTF-8 -*-
3
+ #
4
+ require 'efl/native'
5
+ #
6
+ module Efl
7
+ #
8
+ module EezeDisk
9
+ #
10
+ FCT_PREFIX = 'eeze_disk_' unless const_defined? :FCT_PREFIX
11
+ #
12
+ def self.method_missing meth, *args, &block
13
+ sym = Efl::MethodResolver.resolve self, meth, FCT_PREFIX
14
+ self.send sym, *args, &block
15
+ end
16
+ #
17
+ end
18
+ #
19
+ module Native
20
+ #
21
+ ffi_lib 'eeze'
22
+ #
23
+ # ENUMS
24
+ # typedef enum {...} Eeze_Disk_Type;
25
+ enum :eeze_disk_type, [ :eeze_disk_type_unknown, 0, :eeze_disk_type_internal, (1<<0), :eeze_disk_type_cdrom, (1<<1), :eeze_disk_type_usb,
26
+ (1<<2), :eeze_disk_type_flash, (1<<3) ]
27
+ # typedef enum {...} Eeze_Mount_Opts;
28
+ enum :eeze_mount_opts, [ :eeze_disk_mountopt_loop, (1<<1), :eeze_disk_mountopt_utf8, (1<<2), :eeze_disk_mountopt_noexec, (1<<3),
29
+ :eeze_disk_mountopt_nosuid, (1<<4), :eeze_disk_mountopt_remount, (1<<5), :eeze_disk_mountopt_uid, (1<<6), :eeze_disk_mountopt_nodev, (1<<7) ]
30
+ #
31
+ # TYPEDEFS
32
+ # typedef struct _Eeze_Event_Disk Eeze_Event_Disk_Mount;
33
+ typedef :pointer, :eeze_event_disk_mount
34
+ # typedef struct _Eeze_Event_Disk Eeze_Event_Disk_Unmount;
35
+ typedef :pointer, :eeze_event_disk_unmount
36
+ # typedef struct _Eeze_Event_Disk Eeze_Event_Disk_Eject;
37
+ typedef :pointer, :eeze_event_disk_eject
38
+ # typedef struct _Eeze_Disk Eeze_Disk;
39
+ typedef :pointer, :eeze_disk
40
+ # typedef struct _Eeze_Event_Disk_Error Eeze_Event_Disk_Error;
41
+ typedef :pointer, :eeze_event_disk_error
42
+ #
43
+ # VARIABLES
44
+ # EAPI extern int EEZE_EVENT_DISK_MOUNT;
45
+ attach_variable :EEZE_EVENT_DISK_MOUNT, :int
46
+ # EAPI extern int EEZE_EVENT_DISK_UNMOUNT;
47
+ attach_variable :EEZE_EVENT_DISK_UNMOUNT, :int
48
+ # EAPI extern int EEZE_EVENT_DISK_EJECT;
49
+ attach_variable :EEZE_EVENT_DISK_EJECT, :int
50
+ # EAPI extern int EEZE_EVENT_DISK_ERROR;
51
+ attach_variable :EEZE_EVENT_DISK_ERROR, :int
52
+ #
53
+ # FUNCTIONS
54
+ fcts = [
55
+ # EAPI void eeze_disk_function(void);
56
+ [ :eeze_disk_function, [ ], :void ],
57
+ # EAPI Eina_Bool eeze_disk_can_mount(void);
58
+ [ :eeze_disk_can_mount, [ ], :bool ],
59
+ # EAPI Eina_Bool eeze_disk_can_unmount(void);
60
+ [ :eeze_disk_can_unmount, [ ], :bool ],
61
+ # EAPI Eina_Bool eeze_disk_can_eject(void);
62
+ [ :eeze_disk_can_eject, [ ], :bool ],
63
+ # EAPI Eeze_Disk *eeze_disk_new(const char *path);
64
+ [ :eeze_disk_new, [ :string ], :eeze_disk ],
65
+ # EAPI Eeze_Disk *eeze_disk_new_from_mount(const char *mount_point);
66
+ [ :eeze_disk_new_from_mount, [ :string ], :eeze_disk ],
67
+ # EAPI void eeze_disk_free(Eeze_Disk *disk);
68
+ [ :eeze_disk_free, [ :eeze_disk ], :void ],
69
+ # EAPI void eeze_disk_scan(Eeze_Disk *disk);
70
+ [ :eeze_disk_scan, [ :eeze_disk ], :void ],
71
+ # EAPI void eeze_disk_data_set(Eeze_Disk *disk, void *data);
72
+ [ :eeze_disk_data_set, [ :eeze_disk, :pointer ], :void ],
73
+ # EAPI void *eeze_disk_data_get(Eeze_Disk *disk);
74
+ [ :eeze_disk_data_get, [ :eeze_disk ], :pointer ],
75
+ # EAPI const char *eeze_disk_syspath_get(Eeze_Disk *disk);
76
+ [ :eeze_disk_syspath_get, [ :eeze_disk ], :string ],
77
+ # EAPI const char *eeze_disk_devpath_get(Eeze_Disk *disk);
78
+ [ :eeze_disk_devpath_get, [ :eeze_disk ], :string ],
79
+ # EAPI const char *eeze_disk_fstype_get(Eeze_Disk *disk);
80
+ [ :eeze_disk_fstype_get, [ :eeze_disk ], :string ],
81
+ # EAPI const char *eeze_disk_vendor_get(Eeze_Disk *disk);
82
+ [ :eeze_disk_vendor_get, [ :eeze_disk ], :string ],
83
+ # EAPI const char *eeze_disk_model_get(Eeze_Disk *disk);
84
+ [ :eeze_disk_model_get, [ :eeze_disk ], :string ],
85
+ # EAPI const char *eeze_disk_serial_get(Eeze_Disk *disk);
86
+ [ :eeze_disk_serial_get, [ :eeze_disk ], :string ],
87
+ # EAPI const char *eeze_disk_uuid_get(Eeze_Disk *disk);
88
+ [ :eeze_disk_uuid_get, [ :eeze_disk ], :string ],
89
+ # EAPI const char *eeze_disk_label_get(Eeze_Disk *disk);
90
+ [ :eeze_disk_label_get, [ :eeze_disk ], :string ],
91
+ # EAPI Eeze_Disk_Type eeze_disk_type_get(Eeze_Disk *disk);
92
+ [ :eeze_disk_type_get, [ :eeze_disk ], :eeze_disk_type ],
93
+ # EAPI Eina_Bool eeze_disk_removable_get(Eeze_Disk *disk);
94
+ [ :eeze_disk_removable_get, [ :eeze_disk ], :bool ],
95
+ # EAPI Eina_Bool eeze_disk_mounted_get(Eeze_Disk *disk);
96
+ [ :eeze_disk_mounted_get, [ :eeze_disk ], :bool ],
97
+ # EAPI const char *eeze_disk_mount_wrapper_get(Eeze_Disk *disk);
98
+ [ :eeze_disk_mount_wrapper_get, [ :eeze_disk ], :string ],
99
+ # EAPI Eina_Bool eeze_disk_mount_wrapper_set(Eeze_Disk *disk, const char *wrapper);
100
+ [ :eeze_disk_mount_wrapper_set, [ :eeze_disk, :string ], :bool ],
101
+ # EAPI Eina_Bool eeze_disk_mount(Eeze_Disk *disk);
102
+ [ :eeze_disk_mount, [ :eeze_disk ], :bool ],
103
+ # EAPI Eina_Bool eeze_disk_unmount(Eeze_Disk *disk);
104
+ [ :eeze_disk_unmount, [ :eeze_disk ], :bool ],
105
+ # EAPI Eina_Bool eeze_disk_eject(Eeze_Disk *disk);
106
+ [ :eeze_disk_eject, [ :eeze_disk ], :bool ],
107
+ # EAPI void eeze_disk_cancel(Eeze_Disk *disk);
108
+ [ :eeze_disk_cancel, [ :eeze_disk ], :void ],
109
+ # EAPI const char *eeze_disk_mount_point_get(Eeze_Disk *disk);
110
+ [ :eeze_disk_mount_point_get, [ :eeze_disk ], :string ],
111
+ # EAPI Eina_Bool eeze_disk_mount_point_set(Eeze_Disk *disk, const char *mount_point);
112
+ [ :eeze_disk_mount_point_set, [ :eeze_disk, :string ], :bool ],
113
+ # EAPI Eina_Bool eeze_disk_mountopts_set(Eeze_Disk *disk, unsigned long opts);
114
+ [ :eeze_disk_mountopts_set, [ :eeze_disk, :ulong ], :bool ],
115
+ # EAPI unsigned long eeze_disk_mountopts_get(Eeze_Disk *disk);
116
+ [ :eeze_disk_mountopts_get, [ :eeze_disk ], :ulong ],
117
+ # EAPI Eina_Bool eeze_mount_tabs_watch(void);
118
+ [ :eeze_mount_tabs_watch, [ ], :bool ],
119
+ # EAPI void eeze_mount_tabs_unwatch(void);
120
+ [ :eeze_mount_tabs_unwatch, [ ], :void ],
121
+ # EAPI Eina_Bool eeze_mount_mtab_scan(void);
122
+ [ :eeze_mount_mtab_scan, [ ], :bool ],
123
+ # EAPI Eina_Bool eeze_mount_fstab_scan(void);
124
+ [ :eeze_mount_fstab_scan, [ ], :bool ],
125
+ # EAPI const char *eeze_disk_udev_get_property(Eeze_Disk *disk, const char *property);
126
+ [ :eeze_disk_udev_get_property, [ :eeze_disk, :string ], :string ],
127
+ # EAPI const char *eeze_disk_udev_get_sysattr(Eeze_Disk *disk, const char *sysattr);
128
+ [ :eeze_disk_udev_get_sysattr, [ :eeze_disk, :string ], :string ],
129
+ # EAPI const char *eeze_disk_udev_get_parent(Eeze_Disk *disk);
130
+ [ :eeze_disk_udev_get_parent, [ :eeze_disk ], :string ],
131
+ # EAPI Eina_Bool eeze_disk_udev_walk_check_sysattr(Eeze_Disk *disk, const char *sysattr, const char *value);
132
+ [ :eeze_disk_udev_walk_check_sysattr, [ :eeze_disk, :string, :string ], :bool ],
133
+ # EAPI const char *eeze_disk_udev_walk_get_sysattr(Eeze_Disk *disk, const char *sysattr);
134
+ [ :eeze_disk_udev_walk_get_sysattr, [ :eeze_disk, :string ], :string ],
135
+ ]
136
+ #
137
+ attach_fcts fcts
138
+ #
139
+ end
140
+ end
141
+ #
142
+ # EOF
@@ -0,0 +1,60 @@
1
+ #! /usr/bin/env ruby
2
+ # -*- coding: UTF-8 -*-
3
+ #
4
+ require 'efl/native'
5
+ require 'efl/native/eina_list'
6
+ #
7
+ module Efl
8
+ #
9
+ module EezeNet
10
+ #
11
+ FCT_PREFIX = 'eeze_net_' 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 'eeze'
23
+ #
24
+ # ENUMS
25
+ # typedef enum {...} Eeze_Net_Addr_Type;
26
+ enum :eeze_net_addr_type, [ :eeze_net_addr_type_ip, :eeze_net_addr_type_ip6, :eeze_net_addr_type_broadcast, :eeze_net_addr_type_broadcast6,
27
+ :eeze_net_addr_type_netmask, :eeze_net_addr_type_netmask6 ]
28
+ #
29
+ # TYPEDEFS
30
+ # typedef struct Eeze_Net Eeze_Net;
31
+ typedef :pointer, :eeze_net
32
+ #
33
+ # FUNCTIONS
34
+ fcts = [
35
+ # EAPI Eeze_Net *eeze_net_new(const char *name);
36
+ [ :eeze_net_new, [ :string ], :eeze_net ],
37
+ # EAPI void eeze_net_free(Eeze_Net *net);
38
+ [ :eeze_net_free, [ :eeze_net ], :void ],
39
+ # EAPI const char *eeze_net_mac_get(Eeze_Net *net);
40
+ [ :eeze_net_mac_get, [ :eeze_net ], :string ],
41
+ # EAPI int eeze_net_idx_get(Eeze_Net *net);
42
+ [ :eeze_net_idx_get, [ :eeze_net ], :int ],
43
+ # EAPI Eina_Bool eeze_net_scan(Eeze_Net *net);
44
+ [ :eeze_net_scan, [ :eeze_net ], :bool ],
45
+ # EAPI const char *eeze_net_addr_get(Eeze_Net *net, Eeze_Net_Addr_Type type);
46
+ [ :eeze_net_addr_get, [ :eeze_net, :eeze_net_addr_type ], :string ],
47
+ # EAPI const char *eeze_net_attribute_get(Eeze_Net *net, const char *attr);
48
+ [ :eeze_net_attribute_get, [ :eeze_net, :string ], :string ],
49
+ # EAPI const char *eeze_net_syspath_get(Eeze_Net *net);
50
+ [ :eeze_net_syspath_get, [ :eeze_net ], :string ],
51
+ # EAPI Eina_List *eeze_net_list(void);
52
+ [ :eeze_net_list, [ ], :eina_list ],
53
+ ]
54
+ #
55
+ attach_fcts fcts
56
+ #
57
+ end
58
+ end
59
+ #
60
+ # EOF
@@ -0,0 +1,104 @@
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
@@ -0,0 +1,224 @@
1
+ #! /usr/bin/env ruby
2
+ # -*- coding: UTF-8 -*-
3
+ #
4
+ require 'efl/native'
5
+ require 'efl/native/evas'
6
+ #
7
+ module Efl
8
+ #
9
+ module Emotion
10
+ #
11
+ FCT_PREFIX = 'emotion_' 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 'emotion'
23
+ #
24
+ # ENUMS
25
+ # typedef enum _Emotion_Module {...} Emotion_Module;
26
+ enum :emotion_module, [ :emotion_module_xine, :emotion_module_gstreamer ]
27
+ # enum _Emotion_Event {...} Emotion_Event;
28
+ enum :emotion_event, [ :emotion_event_menu1, :emotion_event_menu2, :emotion_event_menu3, :emotion_event_menu4, :emotion_event_menu5,
29
+ :emotion_event_menu6, :emotion_event_menu7, :emotion_event_up, :emotion_event_down, :emotion_event_left, :emotion_event_right, :emotion_event_select,
30
+ :emotion_event_next, :emotion_event_prev, :emotion_event_angle_next, :emotion_event_angle_prev, :emotion_event_force, :emotion_event_0,
31
+ :emotion_event_1, :emotion_event_2, :emotion_event_3, :emotion_event_4, :emotion_event_5, :emotion_event_6, :emotion_event_7, :emotion_event_8,
32
+ :emotion_event_9, :emotion_event_10 ]
33
+ # enum _Emotion_Meta_Info {...} Emotion_Meta_Info;
34
+ enum :emotion_meta_info, [ :emotion_meta_info_track_title, :emotion_meta_info_track_artist, :emotion_meta_info_track_album,
35
+ :emotion_meta_info_track_year, :emotion_meta_info_track_genre, :emotion_meta_info_track_comment, :emotion_meta_info_track_disc_id,
36
+ :emotion_meta_info_track_count ]
37
+ # enum _Emotion_Vis {...} Emotion_Vis;
38
+ enum :emotion_vis, [ :emotion_vis_none, :emotion_vis_goom, :emotion_vis_libvisual_bumpscope, :emotion_vis_libvisual_corona,
39
+ :emotion_vis_libvisual_dancing_particles, :emotion_vis_libvisual_gdkpixbuf, :emotion_vis_libvisual_g_force, :emotion_vis_libvisual_goom,
40
+ :emotion_vis_libvisual_infinite, :emotion_vis_libvisual_jakdaw, :emotion_vis_libvisual_jess, :emotion_vis_libvisual_lv_analyser,
41
+ :emotion_vis_libvisual_lv_flower, :emotion_vis_libvisual_lv_gltest, :emotion_vis_libvisual_lv_scope, :emotion_vis_libvisual_madspin,
42
+ :emotion_vis_libvisual_nebulus, :emotion_vis_libvisual_oinksie, :emotion_vis_libvisual_plasma, :emotion_vis_last ]
43
+ # typedef enum _Emotion_Suspend {...} Emotion_Suspend;
44
+ enum :emotion_suspend, [ :emotion_wakeup, :emotion_sleep, :emotion_deep_sleep, :emotion_hibernate ]
45
+ # enum _Emotion_Aspect {...} Emotion_Aspect;
46
+ enum :emotion_aspect, [ :emotion_aspect_keep_none, :emotion_aspect_keep_width, :emotion_aspect_keep_height, :emotion_aspect_keep_both,
47
+ :emotion_aspect_crop, :emotion_aspect_custom ]
48
+ #
49
+ # TYPEDEFS
50
+ # typedef struct _Emotion_Version Emotion_Version;
51
+ typedef :pointer, :emotion_version
52
+ # typedef struct _Emotion_Webcam Emotion_Webcam;
53
+ typedef :pointer, :emotion_webcam
54
+ #
55
+ # VARIABLES
56
+ # EAPI extern Emotion_Version *emotion_version;
57
+ attach_variable :emotion_version, :emotion_version
58
+ # EAPI extern int EMOTION_WEBCAM_UPDATE;
59
+ attach_variable :EMOTION_WEBCAM_UPDATE, :int
60
+ #
61
+ # FUNCTIONS
62
+ fcts = [
63
+ # EAPI Eina_Bool emotion_init(void);
64
+ [ :emotion_init, [ ], :bool ],
65
+ # EAPI Eina_Bool emotion_shutdown(void);
66
+ [ :emotion_shutdown, [ ], :bool ],
67
+ # EAPI Evas_Object *emotion_object_add (Evas *evas);
68
+ [ :emotion_object_add, [ :evas ], :evas_object ],
69
+ # EAPI void emotion_object_module_option_set (Evas_Object *obj, const char *opt, const char *val);
70
+ [ :emotion_object_module_option_set, [ :evas_object, :string, :string ], :void ],
71
+ # EAPI Eina_Bool emotion_object_init (Evas_Object *obj, const char *module_filename);
72
+ [ :emotion_object_init, [ :evas_object, :string ], :bool ],
73
+ # EAPI void emotion_object_border_set(Evas_Object *obj, int l, int r, int t, int b);
74
+ [ :emotion_object_border_set, [ :evas_object, :int, :int, :int, :int ], :void ],
75
+ # EAPI void emotion_object_border_get(const Evas_Object *obj, int *l, int *r, int *t, int *b);
76
+ [ :emotion_object_border_get, [ :evas_object, :pointer, :pointer, :pointer, :pointer ], :void ],
77
+ # EAPI void emotion_object_bg_color_set(Evas_Object *obj, int r, int g, int b, int a);
78
+ [ :emotion_object_bg_color_set, [ :evas_object, :int, :int, :int, :int ], :void ],
79
+ # EAPI void emotion_object_bg_color_get(const Evas_Object *obj, int *r, int *g, int *b, int *a);
80
+ [ :emotion_object_bg_color_get, [ :evas_object, :pointer, :pointer, :pointer, :pointer ], :void ],
81
+ # EAPI void emotion_object_keep_aspect_set(Evas_Object *obj, Emotion_Aspect a);
82
+ [ :emotion_object_keep_aspect_set, [ :evas_object, :emotion_aspect ], :void ],
83
+ # EAPI Emotion_Aspect emotion_object_keep_aspect_get(const Evas_Object *obj);
84
+ [ :emotion_object_keep_aspect_get, [ :evas_object ], :emotion_aspect ],
85
+ # EAPI Eina_Bool emotion_object_file_set (Evas_Object *obj, const char *filename);
86
+ [ :emotion_object_file_set, [ :evas_object, :string ], :bool ],
87
+ # EAPI const char *emotion_object_file_get (const Evas_Object *obj);
88
+ [ :emotion_object_file_get, [ :evas_object ], :string ],
89
+ # EAPI void emotion_object_play_set (Evas_Object *obj, Eina_Bool play);
90
+ [ :emotion_object_play_set, [ :evas_object, :bool ], :void ],
91
+ # EAPI Eina_Bool emotion_object_play_get (const Evas_Object *obj);
92
+ [ :emotion_object_play_get, [ :evas_object ], :bool ],
93
+ # EAPI void emotion_object_position_set (Evas_Object *obj, double sec);
94
+ [ :emotion_object_position_set, [ :evas_object, :double ], :void ],
95
+ # EAPI double emotion_object_position_get (const Evas_Object *obj);
96
+ [ :emotion_object_position_get, [ :evas_object ], :double ],
97
+ # EAPI double emotion_object_buffer_size_get (const Evas_Object *obj);
98
+ [ :emotion_object_buffer_size_get, [ :evas_object ], :double ],
99
+ # EAPI Eina_Bool emotion_object_seekable_get (const Evas_Object *obj);
100
+ [ :emotion_object_seekable_get, [ :evas_object ], :bool ],
101
+ # EAPI double emotion_object_play_length_get (const Evas_Object *obj);
102
+ [ :emotion_object_play_length_get, [ :evas_object ], :double ],
103
+ # EAPI void emotion_object_play_speed_set (Evas_Object *obj, double speed);
104
+ [ :emotion_object_play_speed_set, [ :evas_object, :double ], :void ],
105
+ # EAPI double emotion_object_play_speed_get (const Evas_Object *obj);
106
+ [ :emotion_object_play_speed_get, [ :evas_object ], :double ],
107
+ # EAPI const char *emotion_object_progress_info_get (const Evas_Object *obj);
108
+ [ :emotion_object_progress_info_get, [ :evas_object ], :string ],
109
+ # EAPI double emotion_object_progress_status_get (const Evas_Object *obj);
110
+ [ :emotion_object_progress_status_get, [ :evas_object ], :double ],
111
+ # EAPI Eina_Bool emotion_object_video_handled_get (const Evas_Object *obj);
112
+ [ :emotion_object_video_handled_get, [ :evas_object ], :bool ],
113
+ # EAPI Eina_Bool emotion_object_audio_handled_get (const Evas_Object *obj);
114
+ [ :emotion_object_audio_handled_get, [ :evas_object ], :bool ],
115
+ # EAPI double emotion_object_ratio_get (const Evas_Object *obj);
116
+ [ :emotion_object_ratio_get, [ :evas_object ], :double ],
117
+ # EAPI void emotion_object_size_get (const Evas_Object *obj, int *iw, int *ih);
118
+ [ :emotion_object_size_get, [ :evas_object, :pointer, :pointer ], :void ],
119
+ # EAPI void emotion_object_smooth_scale_set (Evas_Object *obj, Eina_Bool smooth);
120
+ [ :emotion_object_smooth_scale_set, [ :evas_object, :bool ], :void ],
121
+ # EAPI Eina_Bool emotion_object_smooth_scale_get (const Evas_Object *obj);
122
+ [ :emotion_object_smooth_scale_get, [ :evas_object ], :bool ],
123
+ # EAPI void emotion_object_event_simple_send (Evas_Object *obj, Emotion_Event ev);
124
+ [ :emotion_object_event_simple_send, [ :evas_object, :emotion_event ], :void ],
125
+ # EAPI void emotion_object_audio_volume_set (Evas_Object *obj, double vol);
126
+ [ :emotion_object_audio_volume_set, [ :evas_object, :double ], :void ],
127
+ # EAPI double emotion_object_audio_volume_get (const Evas_Object *obj);
128
+ [ :emotion_object_audio_volume_get, [ :evas_object ], :double ],
129
+ # EAPI void emotion_object_audio_mute_set (Evas_Object *obj, Eina_Bool mute);
130
+ [ :emotion_object_audio_mute_set, [ :evas_object, :bool ], :void ],
131
+ # EAPI Eina_Bool emotion_object_audio_mute_get (const Evas_Object *obj);
132
+ [ :emotion_object_audio_mute_get, [ :evas_object ], :bool ],
133
+ # EAPI int emotion_object_audio_channel_count (const Evas_Object *obj);
134
+ [ :emotion_object_audio_channel_count, [ :evas_object ], :int ],
135
+ # EAPI const char *emotion_object_audio_channel_name_get(const Evas_Object *obj, int channel);
136
+ [ :emotion_object_audio_channel_name_get, [ :evas_object, :int ], :string ],
137
+ # EAPI void emotion_object_audio_channel_set (Evas_Object *obj, int channel);
138
+ [ :emotion_object_audio_channel_set, [ :evas_object, :int ], :void ],
139
+ # EAPI int emotion_object_audio_channel_get (const Evas_Object *obj);
140
+ [ :emotion_object_audio_channel_get, [ :evas_object ], :int ],
141
+ # EAPI void emotion_object_video_mute_set (Evas_Object *obj, Eina_Bool mute);
142
+ [ :emotion_object_video_mute_set, [ :evas_object, :bool ], :void ],
143
+ # EAPI Eina_Bool emotion_object_video_mute_get (const Evas_Object *obj);
144
+ [ :emotion_object_video_mute_get, [ :evas_object ], :bool ],
145
+ # EAPI int emotion_object_video_channel_count (const Evas_Object *obj);
146
+ [ :emotion_object_video_channel_count, [ :evas_object ], :int ],
147
+ # EAPI const char *emotion_object_video_channel_name_get(const Evas_Object *obj, int channel);
148
+ [ :emotion_object_video_channel_name_get, [ :evas_object, :int ], :string ],
149
+ # EAPI void emotion_object_video_channel_set (Evas_Object *obj, int channel);
150
+ [ :emotion_object_video_channel_set, [ :evas_object, :int ], :void ],
151
+ # EAPI int emotion_object_video_channel_get (const Evas_Object *obj);
152
+ [ :emotion_object_video_channel_get, [ :evas_object ], :int ],
153
+ # EAPI void emotion_object_spu_mute_set (Evas_Object *obj, Eina_Bool mute);
154
+ [ :emotion_object_spu_mute_set, [ :evas_object, :bool ], :void ],
155
+ # EAPI Eina_Bool emotion_object_spu_mute_get (const Evas_Object *obj);
156
+ [ :emotion_object_spu_mute_get, [ :evas_object ], :bool ],
157
+ # EAPI int emotion_object_spu_channel_count (const Evas_Object *obj);
158
+ [ :emotion_object_spu_channel_count, [ :evas_object ], :int ],
159
+ # EAPI const char *emotion_object_spu_channel_name_get (const Evas_Object *obj, int channel);
160
+ [ :emotion_object_spu_channel_name_get, [ :evas_object, :int ], :string ],
161
+ # EAPI void emotion_object_spu_channel_set (Evas_Object *obj, int channel);
162
+ [ :emotion_object_spu_channel_set, [ :evas_object, :int ], :void ],
163
+ # EAPI int emotion_object_spu_channel_get (const Evas_Object *obj);
164
+ [ :emotion_object_spu_channel_get, [ :evas_object ], :int ],
165
+ # EAPI int emotion_object_chapter_count (const Evas_Object *obj);
166
+ [ :emotion_object_chapter_count, [ :evas_object ], :int ],
167
+ # EAPI void emotion_object_chapter_set (Evas_Object *obj, int chapter);
168
+ [ :emotion_object_chapter_set, [ :evas_object, :int ], :void ],
169
+ # EAPI int emotion_object_chapter_get (const Evas_Object *obj);
170
+ [ :emotion_object_chapter_get, [ :evas_object ], :int ],
171
+ # EAPI const char *emotion_object_chapter_name_get (const Evas_Object *obj, int chapter);
172
+ [ :emotion_object_chapter_name_get, [ :evas_object, :int ], :string ],
173
+ # EAPI void emotion_object_eject (Evas_Object *obj);
174
+ [ :emotion_object_eject, [ :evas_object ], :void ],
175
+ # EAPI const char *emotion_object_title_get (const Evas_Object *obj);
176
+ [ :emotion_object_title_get, [ :evas_object ], :string ],
177
+ # EAPI const char *emotion_object_ref_file_get (const Evas_Object *obj);
178
+ [ :emotion_object_ref_file_get, [ :evas_object ], :string ],
179
+ # EAPI int emotion_object_ref_num_get (const Evas_Object *obj);
180
+ [ :emotion_object_ref_num_get, [ :evas_object ], :int ],
181
+ # EAPI int emotion_object_spu_button_count_get (const Evas_Object *obj);
182
+ [ :emotion_object_spu_button_count_get, [ :evas_object ], :int ],
183
+ # EAPI int emotion_object_spu_button_get (const Evas_Object *obj);
184
+ [ :emotion_object_spu_button_get, [ :evas_object ], :int ],
185
+ # EAPI const char *emotion_object_meta_info_get (const Evas_Object *obj, Emotion_Meta_Info meta);
186
+ [ :emotion_object_meta_info_get, [ :evas_object, :emotion_meta_info ], :string ],
187
+ # EAPI void emotion_object_vis_set (Evas_Object *obj, Emotion_Vis visualization);
188
+ [ :emotion_object_vis_set, [ :evas_object, :emotion_vis ], :void ],
189
+ # EAPI Emotion_Vis emotion_object_vis_get (const Evas_Object *obj);
190
+ [ :emotion_object_vis_get, [ :evas_object ], :emotion_vis ],
191
+ # EAPI Eina_Bool emotion_object_vis_supported (const Evas_Object *obj, Emotion_Vis visualization);
192
+ [ :emotion_object_vis_supported, [ :evas_object, :emotion_vis ], :bool ],
193
+ # EAPI void emotion_object_priority_set(Evas_Object *obj, Eina_Bool priority);
194
+ [ :emotion_object_priority_set, [ :evas_object, :bool ], :void ],
195
+ # EAPI Eina_Bool emotion_object_priority_get(const Evas_Object *obj);
196
+ [ :emotion_object_priority_get, [ :evas_object ], :bool ],
197
+ # EAPI void emotion_object_suspend_set(Evas_Object *obj, Emotion_Suspend state);
198
+ [ :emotion_object_suspend_set, [ :evas_object, :emotion_suspend ], :void ],
199
+ # EAPI Emotion_Suspend emotion_object_suspend_get(Evas_Object *obj);
200
+ [ :emotion_object_suspend_get, [ :evas_object ], :emotion_suspend ],
201
+ # EAPI void emotion_object_last_position_load(Evas_Object *obj);
202
+ [ :emotion_object_last_position_load, [ :evas_object ], :void ],
203
+ # EAPI void emotion_object_last_position_save(Evas_Object *obj);
204
+ [ :emotion_object_last_position_save, [ :evas_object ], :void ],
205
+ # EAPI Eina_Bool emotion_object_extension_may_play_fast_get(const char *file);
206
+ [ :emotion_object_extension_may_play_fast_get, [ :string ], :bool ],
207
+ # EAPI Eina_Bool emotion_object_extension_may_play_get(const char *file);
208
+ [ :emotion_object_extension_may_play_get, [ :string ], :bool ],
209
+ # EAPI Evas_Object *emotion_object_image_get(const Evas_Object *obj);
210
+ [ :emotion_object_image_get, [ :evas_object ], :evas_object ],
211
+ # EAPI const Eina_List *emotion_webcams_get(void);
212
+ [ :emotion_webcams_get, [ ], :eina_list ],
213
+ # EAPI const char *emotion_webcam_name_get(const Emotion_Webcam *ew);
214
+ [ :emotion_webcam_name_get, [ :emotion_webcam ], :string ],
215
+ # EAPI const char *emotion_webcam_device_get(const Emotion_Webcam *ew);
216
+ [ :emotion_webcam_device_get, [ :emotion_webcam ], :string ],
217
+ ]
218
+ #
219
+ attach_fcts fcts
220
+ #
221
+ end
222
+ end
223
+ #
224
+ # EOF