diff options
Diffstat (limited to 'lib/efl')
-rw-r--r-- | lib/efl/native/ebluez.rb | 140 | ||||
-rw-r--r-- | lib/efl/native/econnman.rb | 253 | ||||
-rw-r--r-- | lib/efl/native/edbus.rb | 162 | ||||
-rw-r--r-- | lib/efl/native/ehal.rb | 104 | ||||
-rw-r--r-- | lib/efl/native/enotification_daemon.rb | 66 | ||||
-rw-r--r-- | lib/efl/native/enotify.rb | 170 | ||||
-rw-r--r-- | lib/efl/native/eofono.rb | 112 | ||||
-rw-r--r-- | lib/efl/native/eukit.rb | 115 |
8 files changed, 0 insertions, 1122 deletions
diff --git a/lib/efl/native/ebluez.rb b/lib/efl/native/ebluez.rb deleted file mode 100644 index 4eb1584..0000000 --- a/lib/efl/native/ebluez.rb +++ /dev/null @@ -1,140 +0,0 @@ -#! /usr/bin/env ruby -# -*- coding: UTF-8 -*- -# -require 'efl/native' -require 'efl/native/edbus' -# -module Efl - # - module Ebluez - # - FCT_PREFIX = 'e_bluez_' unless const_defined? :FCT_PREFIX - # - def self.method_missing meth, *args, &block - sym = Efl::MethodResolver.resolve self, meth, FCT_PREFIX - self.send sym, *args, &block - end - # - end - # - module Native - # - ffi_lib 'ebluez.so.1' - # - # TYPEDEFS - # typedef struct _E_Bluez_Element E_Bluez_Element; - typedef :pointer, :e_bluez_element - # typedef struct _E_Bluez_Array E_Bluez_Array; - typedef :pointer, :e_bluez_array - # typedef struct _E_Bluez_Device_Found E_Bluez_Device_Found; - typedef :pointer, :e_bluez_device_found - # - # FUNCTIONS - fcts = [ - # EAPI unsigned int e_bluez_system_init(E_DBus_Connection *edbus_conn); - [ :e_bluez_system_init, [ :e_dbus_connection ], :uint ], - # EAPI unsigned int e_bluez_system_shutdown(void); - [ :e_bluez_system_shutdown, [ ], :uint ], - # EAPI E_Bluez_Element * e_bluez_manager_get(void); - [ :e_bluez_manager_get, [ ], :e_bluez_element ], - # EAPI Eina_Bool e_bluez_manager_default_adapter(E_DBus_Method_Return_Cb cb, void *data); - [ :e_bluez_manager_default_adapter, [ :e_dbus_method_return_cb, :pointer ], :bool ], - # EAPI E_Bluez_Element * e_bluez_adapter_get(const char *path); - [ :e_bluez_adapter_get, [ :string ], :e_bluez_element ], - # EAPI Eina_Bool e_bluez_adapter_agent_register(E_Bluez_Element *element, const char *object_path, const char *capability, E_DBus_Method_Return_Cb cb, const void *data); - [ :e_bluez_adapter_agent_register, [ :e_bluez_element, :string, :string, :e_dbus_method_return_cb, :pointer ], :bool ], - # EAPI Eina_Bool e_bluez_adapter_agent_unregister(E_Bluez_Element *element, const char *object_path, E_DBus_Method_Return_Cb cb, const void *data); - [ :e_bluez_adapter_agent_unregister, [ :e_bluez_element, :string, :e_dbus_method_return_cb, :pointer ], :bool ], - # EAPI Eina_Bool e_bluez_adapter_address_get(const E_Bluez_Element *element, const char **address); - [ :e_bluez_adapter_address_get, [ :e_bluez_element, :pointer ], :bool ], - # EAPI Eina_Bool e_bluez_adapter_name_get(const E_Bluez_Element *element, const char **name); - [ :e_bluez_adapter_name_get, [ :e_bluez_element, :pointer ], :bool ], - # EAPI Eina_Bool e_bluez_adapter_name_set(E_Bluez_Element *element, const char *name, E_DBus_Method_Return_Cb cb, const void *data); - [ :e_bluez_adapter_name_set, [ :e_bluez_element, :string, :e_dbus_method_return_cb, :pointer ], :bool ], - # EAPI Eina_Bool e_bluez_adapter_powered_get(const E_Bluez_Element *element, Eina_Bool *powered); - [ :e_bluez_adapter_powered_get, [ :e_bluez_element, :pointer ], :bool ], - # EAPI Eina_Bool e_bluez_adapter_powered_set(E_Bluez_Element *profile, Eina_Bool powered, E_DBus_Method_Return_Cb cb, const void *data); - [ :e_bluez_adapter_powered_set, [ :e_bluez_element, :bool, :e_dbus_method_return_cb, :pointer ], :bool ], - # EAPI Eina_Bool e_bluez_adapter_discoverable_get(const E_Bluez_Element *element, Eina_Bool *discoverable); - [ :e_bluez_adapter_discoverable_get, [ :e_bluez_element, :pointer ], :bool ], - # EAPI Eina_Bool e_bluez_adapter_discoverable_set(E_Bluez_Element *profile, Eina_Bool discoverable, E_DBus_Method_Return_Cb cb, const void *data); - [ :e_bluez_adapter_discoverable_set, [ :e_bluez_element, :bool, :e_dbus_method_return_cb, :pointer ], :bool ], - # EAPI Eina_Bool e_bluez_adapter_discoverable_timeout_get(const E_Bluez_Element *element, unsigned int *timeout); - [ :e_bluez_adapter_discoverable_timeout_get, [ :e_bluez_element, :pointer ], :bool ], - # EAPI Eina_Bool e_bluez_adapter_discoverable_timeout_set(E_Bluez_Element *element, unsigned int timeout, E_DBus_Method_Return_Cb cb, const void *data); - [ :e_bluez_adapter_discoverable_timeout_set, [ :e_bluez_element, :uint, :e_dbus_method_return_cb, :pointer ], :bool ], - # EAPI Eina_Bool e_bluez_adapter_discovering_get(const E_Bluez_Element *element, Eina_Bool *discovering); - [ :e_bluez_adapter_discovering_get, [ :e_bluez_element, :pointer ], :bool ], - # EAPI Eina_Bool e_bluez_adapter_start_discovery(E_Bluez_Element *element, E_DBus_Method_Return_Cb cb, const void *data); - [ :e_bluez_adapter_start_discovery, [ :e_bluez_element, :e_dbus_method_return_cb, :pointer ], :bool ], - # EAPI Eina_Bool e_bluez_adapter_stop_discovery(E_Bluez_Element *element, E_DBus_Method_Return_Cb cb, const void *data); - [ :e_bluez_adapter_stop_discovery, [ :e_bluez_element, :e_dbus_method_return_cb, :pointer ], :bool ], - # EAPI Eina_Bool e_bluez_adapter_create_paired_device(E_Bluez_Element *element, const char *object_path, const char *capability, const char *device, E_DBus_Method_Return_Cb cb, const void *data); - [ :e_bluez_adapter_create_paired_device, [ :e_bluez_element, :string, :string, :string, :e_dbus_method_return_cb, :pointer ], :bool ], - # EAPI void e_bluez_devicefound_free(E_Bluez_Device_Found *device); - [ :e_bluez_devicefound_free, [ :e_bluez_device_found ], :void ], - # EAPI const char * e_bluez_devicefound_alias_get(const E_Bluez_Device_Found *device); - [ :e_bluez_devicefound_alias_get, [ :e_bluez_device_found ], :string ], - # EAPI E_Bluez_Element * e_bluez_device_get(const char *path); - [ :e_bluez_device_get, [ :string ], :e_bluez_element ], - # EAPI Eina_Bool e_bluez_device_name_get(const E_Bluez_Element *element, const char **name); - [ :e_bluez_device_name_get, [ :e_bluez_element, :pointer ], :bool ], - # EAPI Eina_Bool e_bluez_device_alias_get(const E_Bluez_Element *element, const char **alias); - [ :e_bluez_device_alias_get, [ :e_bluez_element, :pointer ], :bool ], - # EAPI Eina_Bool e_bluez_device_paired_get(const E_Bluez_Element *element, Eina_Bool *paired); - [ :e_bluez_device_paired_get, [ :e_bluez_element, :pointer ], :bool ], - # EAPI Eina_Bool e_bluez_manager_sync_elements(void); - [ :e_bluez_manager_sync_elements, [ ], :bool ], - # EAPI Eina_Bool e_bluez_elements_get_all(unsigned int *count, E_Bluez_Element ***p_elements); - [ :e_bluez_elements_get_all, [ :pointer, :e_bluez_element ], :bool ], - # EAPI Eina_Bool e_bluez_elements_get_all_type(const char *type, unsigned int *count, E_Bluez_Element ***p_elements); - [ :e_bluez_elements_get_all_type, [ :string, :pointer, :e_bluez_element ], :bool ], - # EAPI E_Bluez_Element * e_bluez_element_get(const char *path); - [ :e_bluez_element_get, [ :string ], :e_bluez_element ], - # EAPI void e_bluez_element_listener_add(E_Bluez_Element *element, void (*cb)(void *data, const E_Bluez_Element *element), const void *data, void (*free_data)(void *data)); - [ :e_bluez_element_listener_add, [ :e_bluez_element, (callback [:pointer, :e_bluez_element], :void), :pointer, (callback [:pointer], :void) ], :void ], - # EAPI void e_bluez_element_listener_del(E_Bluez_Element *element, void (*cb)(void *data, const E_Bluez_Element *element), const void *data); - [ :e_bluez_element_listener_del, [ :e_bluez_element, (callback [:pointer, :e_bluez_element], :void), :pointer ], :void ], - # EAPI int e_bluez_element_ref(E_Bluez_Element *element); - [ :e_bluez_element_ref, [ :e_bluez_element ], :int ], - # EAPI int e_bluez_element_unref(E_Bluez_Element *element); - [ :e_bluez_element_unref, [ :e_bluez_element ], :int ], - # EAPI void e_bluez_element_print(FILE *fp, const E_Bluez_Element *element); - [ :e_bluez_element_print, [ :pointer, :e_bluez_element ], :void ], - # EAPI void e_bluez_element_array_print(FILE *fp, E_Bluez_Array *array); - [ :e_bluez_element_array_print, [ :pointer, :e_bluez_array ], :void ], - # EAPI Eina_Bool e_bluez_element_properties_sync(E_Bluez_Element *element); - [ :e_bluez_element_properties_sync, [ :e_bluez_element ], :bool ], - # EAPI Eina_Bool e_bluez_element_properties_sync_full(E_Bluez_Element *element, E_DBus_Method_Return_Cb cb, const void *data); - [ :e_bluez_element_properties_sync_full, [ :e_bluez_element, :e_dbus_method_return_cb, :pointer ], :bool ], - # EAPI Eina_Bool e_bluez_element_property_set(E_Bluez_Element *element, const char *prop, int type, const void *value); - [ :e_bluez_element_property_set, [ :e_bluez_element, :string, :int, :pointer ], :bool ], - # EAPI Eina_Bool e_bluez_element_property_set_full(E_Bluez_Element *element, const char *prop, int type, const void *value, E_DBus_Method_Return_Cb cb, const void *data); - [ :e_bluez_element_property_set_full, [ :e_bluez_element, :string, :int, :pointer, :e_dbus_method_return_cb, :pointer ], :bool ], - # EAPI Eina_Bool e_bluez_element_property_dict_set_full(E_Bluez_Element *element, const char *prop, const char *key, int type, const void *value, E_DBus_Method_Return_Cb cb, const void *data); - [ :e_bluez_element_property_dict_set_full, [ :e_bluez_element, :string, :string, :int, :pointer, :e_dbus_method_return_cb, :pointer ], :bool - ], - # EAPI void e_bluez_element_properties_list(const E_Bluez_Element *element, Eina_Bool (*cb)(void *data, const E_Bluez_Element *element, const char *name, int type, const void *value), const void *data); - [ :e_bluez_element_properties_list, [ :e_bluez_element, (callback [:pointer, :e_bluez_element, :string, :int, :pointer], :bool), :pointer ], :void ], - # EAPI Eina_Bool e_bluez_element_property_type_get_stringshared(const E_Bluez_Element *element, const char *name, int *type); - [ :e_bluez_element_property_type_get_stringshared, [ :e_bluez_element, :string, :pointer ], :bool ], - # EAPI Eina_Bool e_bluez_element_property_type_get(const E_Bluez_Element *element, const char *name, int *type); - [ :e_bluez_element_property_type_get, [ :e_bluez_element, :string, :pointer ], :bool ], - # EAPI Eina_Bool e_bluez_element_property_dict_get_stringshared(const E_Bluez_Element *element, const char *dict_name, const char *key_name, int *type, void *value); - [ :e_bluez_element_property_dict_get_stringshared, [ :e_bluez_element, :string, :string, :pointer, :pointer ], :bool ], - # EAPI Eina_Bool e_bluez_element_property_get_stringshared(const E_Bluez_Element *element, const char *name, int *type, void *value); - [ :e_bluez_element_property_get_stringshared, [ :e_bluez_element, :string, :pointer, :pointer ], :bool ], - # EAPI Eina_Bool e_bluez_element_property_get(const E_Bluez_Element *element, const char *name, int *type, void *value); - [ :e_bluez_element_property_get, [ :e_bluez_element, :string, :pointer, :pointer ], :bool ], - # EAPI Eina_Bool e_bluez_element_is_adapter(const E_Bluez_Element *element); - [ :e_bluez_element_is_adapter, [ :e_bluez_element ], :bool ], - # EAPI Eina_Bool e_bluez_element_is_device(const E_Bluez_Element *element); - [ :e_bluez_element_is_device, [ :e_bluez_element ], :bool ], - ] - # - attach_fcts fcts - # - end -end -# -# EOF diff --git a/lib/efl/native/econnman.rb b/lib/efl/native/econnman.rb deleted file mode 100644 index f07fbe3..0000000 --- a/lib/efl/native/econnman.rb +++ /dev/null @@ -1,253 +0,0 @@ -#! /usr/bin/env ruby -# -*- coding: UTF-8 -*- -# -require 'efl/native' -require 'efl/native/edbus' -# -module Efl - # - module EConnman - # - FCT_PREFIX = 'e_connman_' unless const_defined? :FCT_PREFIX - # - def self.method_missing meth, *args, &block - sym = Efl::MethodResolver.resolve self, meth, FCT_PREFIX - self.send sym, *args, &block - end - # - end - # - module Native - # - ffi_lib 'econnman0_7x.so.1' - # - # TYPEDEFS - # typedef struct _E_Connman_Element E_Connman_Element; - typedef :pointer, :e_connman_element - # - # FUNCTIONS - fcts = [ - # EAPI unsigned int e_connman_system_init(E_DBus_Connection *edbus_conn); - [ :e_connman_system_init, [ :e_dbus_connection ], :uint ], - # EAPI unsigned int e_connman_system_shutdown(void); - [ :e_connman_system_shutdown, [ ], :uint ], - # EAPI E_Connman_Element * e_connman_manager_get(void); - [ :e_connman_manager_get, [ ], :e_connman_element ], - # EAPI Eina_Bool e_connman_manager_agent_register(const char *object_path, E_DBus_Method_Return_Cb cb, const void *data); - [ :e_connman_manager_agent_register, [ :string, :e_dbus_method_return_cb, :pointer ], :bool ], - # EAPI Eina_Bool e_connman_manager_agent_unregister(const char *object_path, E_DBus_Method_Return_Cb cb, const void *data); - [ :e_connman_manager_agent_unregister, [ :string, :e_dbus_method_return_cb, :pointer ], :bool ], - # EAPI Eina_Bool e_connman_manager_state_get(const char **state); - [ :e_connman_manager_state_get, [ :pointer ], :bool ], - # EAPI Eina_Bool e_connman_manager_offline_mode_get(Eina_Bool *offline); - [ :e_connman_manager_offline_mode_get, [ :pointer ], :bool ], - # EAPI Eina_Bool e_connman_manager_offline_mode_set(Eina_Bool offline, E_DBus_Method_Return_Cb cb, const void *data); - [ :e_connman_manager_offline_mode_set, [ :bool, :e_dbus_method_return_cb, :pointer ], :bool ], - # EAPI Eina_Bool e_connman_manager_profiles_get(unsigned int *count, E_Connman_Element ***p_elements); - [ :e_connman_manager_profiles_get, [ :pointer, :e_connman_element ], :bool ], - # EAPI Eina_Bool e_connman_manager_services_get(unsigned int *count, E_Connman_Element ***p_elements); - [ :e_connman_manager_services_get, [ :pointer, :e_connman_element ], :bool ], - # EAPI Eina_Bool e_connman_manager_technologies_get(unsigned int *count, E_Connman_Element ***p_elements); - [ :e_connman_manager_technologies_get, [ :pointer, :e_connman_element ], :bool ], - # EAPI Eina_Bool e_connman_manager_request_scan(const char *type, E_DBus_Method_Return_Cb cb, const void *data); - [ :e_connman_manager_request_scan, [ :string, :e_dbus_method_return_cb, :pointer ], :bool ], - # EAPI Eina_Bool e_connman_manager_technology_default_get(const char **type); - [ :e_connman_manager_technology_default_get, [ :pointer ], :bool ], - # EAPI Eina_Bool e_connman_manager_technology_enable(const char *type, E_DBus_Method_Return_Cb cb, const void *data); - [ :e_connman_manager_technology_enable, [ :string, :e_dbus_method_return_cb, :pointer ], :bool ], - # EAPI Eina_Bool e_connman_manager_technology_disable(const char *type, E_DBus_Method_Return_Cb cb, const void *data); - [ :e_connman_manager_technology_disable, [ :string, :e_dbus_method_return_cb, :pointer ], :bool ], - # EAPI Eina_Bool e_connman_manager_technologies_available_get(unsigned int *count, const char ***strings); - [ :e_connman_manager_technologies_available_get, [ :pointer, :pointer ], :bool ], - # EAPI Eina_Bool e_connman_manager_technologies_enabled_get(unsigned int *count, const char ***strings); - [ :e_connman_manager_technologies_enabled_get, [ :pointer, :pointer ], :bool ], - # EAPI Eina_Bool e_connman_manager_technologies_connected_get(unsigned int *count, const char ***strings); - [ :e_connman_manager_technologies_connected_get, [ :pointer, :pointer ], :bool ], - # EAPI Eina_Bool e_connman_manager_profile_remove(const E_Connman_Element *profile, E_DBus_Method_Return_Cb cb, const void *data); - [ :e_connman_manager_profile_remove, [ :e_connman_element, :e_dbus_method_return_cb, :pointer ], :bool ], - # EAPI Eina_Bool e_connman_manager_profile_active_get(E_Connman_Element **profile); - [ :e_connman_manager_profile_active_get, [ :e_connman_element ], :bool ], - # EAPI Eina_Bool e_connman_manager_profile_active_set(const E_Connman_Element *profile, E_DBus_Method_Return_Cb cb, const void *data); - [ :e_connman_manager_profile_active_set, [ :e_connman_element, :e_dbus_method_return_cb, :pointer ], :bool ], - # EAPI E_Connman_Element * e_connman_profile_get(const char *path); - [ :e_connman_profile_get, [ :string ], :e_connman_element ], - # EAPI Eina_Bool e_connman_profile_name_get(const E_Connman_Element *profile, const char **name); - [ :e_connman_profile_name_get, [ :e_connman_element, :pointer ], :bool ], - # EAPI Eina_Bool e_connman_profile_name_set(E_Connman_Element *profile, const char *name, E_DBus_Method_Return_Cb cb, const void *data); - [ :e_connman_profile_name_set, [ :e_connman_element, :string, :e_dbus_method_return_cb, :pointer ], :bool ], - # EAPI Eina_Bool e_connman_profile_offline_mode_get(const E_Connman_Element *profile, Eina_Bool *offline); - [ :e_connman_profile_offline_mode_get, [ :e_connman_element, :pointer ], :bool ], - # EAPI Eina_Bool e_connman_profile_offline_mode_set(E_Connman_Element *profile, Eina_Bool offline, E_DBus_Method_Return_Cb cb, const void *data); - [ :e_connman_profile_offline_mode_set, [ :e_connman_element, :bool, :e_dbus_method_return_cb, :pointer ], :bool ], - # EAPI Eina_Bool e_connman_profile_services_get(const E_Connman_Element *profile, unsigned int *count, E_Connman_Element ***p_elements); - [ :e_connman_profile_services_get, [ :e_connman_element, :pointer, :e_connman_element ], :bool ], - # EAPI E_Connman_Element * e_connman_service_get(const char *path); - [ :e_connman_service_get, [ :string ], :e_connman_element ], - # EAPI Eina_Bool e_connman_service_clear_property(E_Connman_Element *service, const char *property, E_DBus_Method_Return_Cb cb, const void *data); - [ :e_connman_service_clear_property, [ :e_connman_element, :string, :e_dbus_method_return_cb, :pointer ], :bool ], - # EAPI Eina_Bool e_connman_service_remove(E_Connman_Element *service, E_DBus_Method_Return_Cb cb, const void *data); - [ :e_connman_service_remove, [ :e_connman_element, :e_dbus_method_return_cb, :pointer ], :bool ], - # EAPI Eina_Bool e_connman_service_connect(E_Connman_Element *service, E_DBus_Method_Return_Cb cb, const void *data); - [ :e_connman_service_connect, [ :e_connman_element, :e_dbus_method_return_cb, :pointer ], :bool ], - # EAPI Eina_Bool e_connman_service_disconnect(E_Connman_Element *service, E_DBus_Method_Return_Cb cb, const void *data); - [ :e_connman_service_disconnect, [ :e_connman_element, :e_dbus_method_return_cb, :pointer ], :bool ], - # EAPI Eina_Bool e_connman_service_move_before(E_Connman_Element *service, const char *object_path, E_DBus_Method_Return_Cb cb, const void *data); - [ :e_connman_service_move_before, [ :e_connman_element, :string, :e_dbus_method_return_cb, :pointer ], :bool ], - # EAPI Eina_Bool e_connman_service_move_after(E_Connman_Element *service, const char *object_path, E_DBus_Method_Return_Cb cb, const void *data); - [ :e_connman_service_move_after, [ :e_connman_element, :string, :e_dbus_method_return_cb, :pointer ], :bool ], - # EAPI Eina_Bool e_connman_service_state_get(const E_Connman_Element *service, const char **state); - [ :e_connman_service_state_get, [ :e_connman_element, :pointer ], :bool ], - # EAPI Eina_Bool e_connman_service_error_get(const E_Connman_Element *service, const char **error); - [ :e_connman_service_error_get, [ :e_connman_element, :pointer ], :bool ], - # EAPI Eina_Bool e_connman_service_name_get(const E_Connman_Element *service, const char **name); - [ :e_connman_service_name_get, [ :e_connman_element, :pointer ], :bool ], - # EAPI Eina_Bool e_connman_service_type_get(const E_Connman_Element *service, const char **type); - [ :e_connman_service_type_get, [ :e_connman_element, :pointer ], :bool ], - # EAPI Eina_Bool e_connman_service_security_get(const E_Connman_Element *service, unsigned int *count, const char ***security); - [ :e_connman_service_security_get, [ :e_connman_element, :pointer, :pointer ], :bool ], - # EAPI Eina_Bool e_connman_service_passphrase_get(const E_Connman_Element *service, const char **passphrase); - [ :e_connman_service_passphrase_get, [ :e_connman_element, :pointer ], :bool ], - # EAPI Eina_Bool e_connman_service_passphrase_set(E_Connman_Element *service, const char *passphrase, E_DBus_Method_Return_Cb cb, const void *data); - [ :e_connman_service_passphrase_set, [ :e_connman_element, :string, :e_dbus_method_return_cb, :pointer ], :bool ], - # EAPI Eina_Bool e_connman_service_strength_get(const E_Connman_Element *service, unsigned char *strength); - [ :e_connman_service_strength_get, [ :e_connman_element, :pointer ], :bool ], - # EAPI Eina_Bool e_connman_service_favorite_get(const E_Connman_Element *service, Eina_Bool *favorite); - [ :e_connman_service_favorite_get, [ :e_connman_element, :pointer ], :bool ], - # EAPI Eina_Bool e_connman_service_immutable_get(const E_Connman_Element *service, Eina_Bool *immutable); - [ :e_connman_service_immutable_get, [ :e_connman_element, :pointer ], :bool ], - # EAPI Eina_Bool e_connman_service_auto_connect_get(const E_Connman_Element *service, Eina_Bool *auto_connect); - [ :e_connman_service_auto_connect_get, [ :e_connman_element, :pointer ], :bool ], - # EAPI Eina_Bool e_connman_service_auto_connect_set(E_Connman_Element *service, Eina_Bool auto_connect, E_DBus_Method_Return_Cb cb, const void *data); - [ :e_connman_service_auto_connect_set, [ :e_connman_element, :bool, :e_dbus_method_return_cb, :pointer ], :bool ], - # EAPI Eina_Bool e_connman_service_passphrase_required_get(const E_Connman_Element *service, Eina_Bool *passphrase_required); - [ :e_connman_service_passphrase_required_get, [ :e_connman_element, :pointer ], :bool ], - # EAPI Eina_Bool e_connman_service_login_required_get(const E_Connman_Element *service, Eina_Bool *login_required); - [ :e_connman_service_login_required_get, [ :e_connman_element, :pointer ], :bool ], - # EAPI Eina_Bool e_connman_service_roaming_get(const E_Connman_Element *service, Eina_Bool *roaming); - [ :e_connman_service_roaming_get, [ :e_connman_element, :pointer ], :bool ], - # EAPI Eina_Bool e_connman_service_nameservers_get(const E_Connman_Element *service, unsigned int *count, const char ***nameserver); - [ :e_connman_service_nameservers_get, [ :e_connman_element, :pointer, :pointer ], :bool ], - # EAPI Eina_Bool e_connman_service_nameservers_configuration_get(const E_Connman_Element *service, unsigned int *count, const char ***nameservers); - [ :e_connman_service_nameservers_configuration_get, [ :e_connman_element, :pointer, :pointer ], :bool ], - # EAPI Eina_Bool e_connman_service_nameservers_configuration_set(E_Connman_Element *service, unsigned int count, const char **nameservers, E_DBus_Method_Return_Cb cb, const void *data); - [ :e_connman_service_nameservers_configuration_set, [ :e_connman_element, :uint, :pointer, :e_dbus_method_return_cb, :pointer ], :bool ], - # EAPI Eina_Bool e_connman_service_domains_get(const E_Connman_Element *service, unsigned int *count, const char ***domains); - [ :e_connman_service_domains_get, [ :e_connman_element, :pointer, :pointer ], :bool ], - # EAPI Eina_Bool e_connman_service_ipv4_method_get(const E_Connman_Element *service, const char **method); - [ :e_connman_service_ipv4_method_get, [ :e_connman_element, :pointer ], :bool ], - # EAPI Eina_Bool e_connman_service_ipv4_address_get(const E_Connman_Element *service, const char **address); - [ :e_connman_service_ipv4_address_get, [ :e_connman_element, :pointer ], :bool ], - # EAPI Eina_Bool e_connman_service_ipv4_gateway_get(const E_Connman_Element *service, const char **gateway); - [ :e_connman_service_ipv4_gateway_get, [ :e_connman_element, :pointer ], :bool ], - # EAPI Eina_Bool e_connman_service_ipv4_netmask_get(const E_Connman_Element *service, const char **netmask); - [ :e_connman_service_ipv4_netmask_get, [ :e_connman_element, :pointer ], :bool ], - # EAPI Eina_Bool e_connman_service_ipv4_configuration_method_get(const E_Connman_Element *service, const char **method); - [ :e_connman_service_ipv4_configuration_method_get, [ :e_connman_element, :pointer ], :bool ], - # EAPI Eina_Bool e_connman_service_ipv4_configuration_address_get(const E_Connman_Element *service, const char **address); - [ :e_connman_service_ipv4_configuration_address_get, [ :e_connman_element, :pointer ], :bool ], - # EAPI Eina_Bool e_connman_service_ipv4_configuration_gateway_get(const E_Connman_Element *service, const char **gateway); - [ :e_connman_service_ipv4_configuration_gateway_get, [ :e_connman_element, :pointer ], :bool ], - # EAPI Eina_Bool e_connman_service_ipv4_configuration_netmask_get(const E_Connman_Element *service, const char **netmask); - [ :e_connman_service_ipv4_configuration_netmask_get, [ :e_connman_element, :pointer ], :bool ], - # EAPI Eina_Bool e_connman_service_proxy_method_get(const E_Connman_Element *service, const char **method); - [ :e_connman_service_proxy_method_get, [ :e_connman_element, :pointer ], :bool ], - # EAPI Eina_Bool e_connman_service_proxy_url_get(const E_Connman_Element *service, const char **url); - [ :e_connman_service_proxy_url_get, [ :e_connman_element, :pointer ], :bool ], - # EAPI Eina_Bool e_connman_service_proxy_servers_get(const E_Connman_Element *service, unsigned int *count, const char ***servers); - [ :e_connman_service_proxy_servers_get, [ :e_connman_element, :pointer, :pointer ], :bool ], - # EAPI Eina_Bool e_connman_service_proxy_excludes_get(const E_Connman_Element *service, unsigned int *count, const char ***excludes); - [ :e_connman_service_proxy_excludes_get, [ :e_connman_element, :pointer, :pointer ], :bool ], - # EAPI Eina_Bool e_connman_service_proxy_configuration_method_get(const E_Connman_Element *service, const char **method); - [ :e_connman_service_proxy_configuration_method_get, [ :e_connman_element, :pointer ], :bool ], - # EAPI Eina_Bool e_connman_service_proxy_configuration_url_get(const E_Connman_Element *service, const char **url); - [ :e_connman_service_proxy_configuration_url_get, [ :e_connman_element, :pointer ], :bool ], - # EAPI Eina_Bool e_connman_service_proxy_configuration_servers_get(const E_Connman_Element *service, unsigned int *count, const char ***servers); - [ :e_connman_service_proxy_configuration_servers_get, [ :e_connman_element, :pointer, :pointer ], :bool ], - # EAPI Eina_Bool e_connman_service_proxy_configuration_excludes_get(const E_Connman_Element *service, unsigned int *count, const char ***excludes); - [ :e_connman_service_proxy_configuration_excludes_get, [ :e_connman_element, :pointer, :pointer ], :bool ], - # EAPI Eina_Bool e_connman_service_ethernet_method_get(const E_Connman_Element *service, const char **method); - [ :e_connman_service_ethernet_method_get, [ :e_connman_element, :pointer ], :bool ], - # EAPI Eina_Bool e_connman_service_ethernet_interface_get(const E_Connman_Element *service, const char **iface); - [ :e_connman_service_ethernet_interface_get, [ :e_connman_element, :pointer ], :bool ], - # EAPI Eina_Bool e_connman_service_ethernet_address_get(const E_Connman_Element *service, const char **address); - [ :e_connman_service_ethernet_address_get, [ :e_connman_element, :pointer ], :bool ], - # EAPI Eina_Bool e_connman_service_ethernet_mtu_get(const E_Connman_Element *service, unsigned short *mtu); - [ :e_connman_service_ethernet_mtu_get, [ :e_connman_element, :pointer ], :bool ], - # EAPI Eina_Bool e_connman_service_ethernet_speed_get(const E_Connman_Element *service, unsigned short *speed); - [ :e_connman_service_ethernet_speed_get, [ :e_connman_element, :pointer ], :bool ], - # EAPI Eina_Bool e_connman_service_ethernet_duplex_get(const E_Connman_Element *service, const char **duplex); - [ :e_connman_service_ethernet_duplex_get, [ :e_connman_element, :pointer ], :bool ], - # EAPI Eina_Bool e_connman_service_ipv4_configure_dhcp(E_Connman_Element *service, E_DBus_Method_Return_Cb cb, const void *data); - [ :e_connman_service_ipv4_configure_dhcp, [ :e_connman_element, :e_dbus_method_return_cb, :pointer ], :bool ], - # EAPI Eina_Bool e_connman_service_ipv4_configure_manual(E_Connman_Element *service, const char *address, const char *netmask, const char *gateway, E_DBus_Method_Return_Cb cb, const void *data); - [ :e_connman_service_ipv4_configure_manual, [ :e_connman_element, :string, :string, :string, :e_dbus_method_return_cb, :pointer ], :bool ], - # EAPI E_Connman_Element * e_connman_technology_get(const char *path); - [ :e_connman_technology_get, [ :string ], :e_connman_element ], - # EAPI Eina_Bool e_connman_technology_state_get(const E_Connman_Element *technology, const char **state); - [ :e_connman_technology_state_get, [ :e_connman_element, :pointer ], :bool ], - # EAPI Eina_Bool e_connman_technology_name_get(const E_Connman_Element *technology, const char **state); - [ :e_connman_technology_name_get, [ :e_connman_element, :pointer ], :bool ], - # EAPI Eina_Bool e_connman_technology_type_get(const E_Connman_Element *technology, const char **state); - [ :e_connman_technology_type_get, [ :e_connman_element, :pointer ], :bool ], - # EAPI Eina_Bool e_connman_manager_sync_elements(void); - [ :e_connman_manager_sync_elements, [ ], :bool ], - # EAPI Eina_Bool e_connman_elements_get_all(unsigned int *count, E_Connman_Element ***p_elements); - [ :e_connman_elements_get_all, [ :pointer, :e_connman_element ], :bool ], - # EAPI Eina_Bool e_connman_elements_get_all_type(const char *type, unsigned int *count, E_Connman_Element ***p_elements); - [ :e_connman_elements_get_all_type, [ :string, :pointer, :e_connman_element ], :bool ], - # EAPI E_Connman_Element * e_connman_element_get(const char *path); - [ :e_connman_element_get, [ :string ], :e_connman_element ], - # EAPI void e_connman_element_listener_add(E_Connman_Element *element, void (*cb)(void *data, const E_Connman_Element *element), const void *data, void (*free_data)(void *data)); - [ :e_connman_element_listener_add, [ :e_connman_element, (callback [:pointer, :e_connman_element], :void), :pointer, (callback [:pointer], :void) ], :void ], - # EAPI void e_connman_element_listener_del(E_Connman_Element *element, void (*cb)(void *data, const E_Connman_Element *element), const void *data); - [ :e_connman_element_listener_del, [ :e_connman_element, (callback [:pointer, :e_connman_element], :void), :pointer ], :void ], - # EAPI int e_connman_element_ref(E_Connman_Element *element); - [ :e_connman_element_ref, [ :e_connman_element ], :int ], - # EAPI int e_connman_element_unref(E_Connman_Element *element); - [ :e_connman_element_unref, [ :e_connman_element ], :int ], - # EAPI void e_connman_element_print(FILE *fp, const E_Connman_Element *element); - [ :e_connman_element_print, [ :pointer, :e_connman_element ], :void ], - # EAPI Eina_Bool e_connman_element_properties_sync(E_Connman_Element *element); - [ :e_connman_element_properties_sync, [ :e_connman_element ], :bool ], - # EAPI Eina_Bool e_connman_element_properties_sync_full(E_Connman_Element *element, E_DBus_Method_Return_Cb cb, const void *data); - [ :e_connman_element_properties_sync_full, [ :e_connman_element, :e_dbus_method_return_cb, :pointer ], :bool ], - # EAPI void e_connman_element_properties_list(const E_Connman_Element *element, Eina_Bool (*cb)(void *data, const E_Connman_Element *element, const char *name, int type, const void *value), const void *data); - [ :e_connman_element_properties_list, [ :e_connman_element, (callback [:pointer, :e_connman_element, :string, :int, :pointer], :bool), :pointer ], :void ], - # EAPI Eina_Bool e_connman_element_property_set(E_Connman_Element *element, const char *prop, int type, const void *value); - [ :e_connman_element_property_set, [ :e_connman_element, :string, :int, :pointer ], :bool ], - # EAPI Eina_Bool e_connman_element_property_set_full(E_Connman_Element *element, const char *prop, int type, const void *value, E_DBus_Method_Return_Cb cb, const void *data); - [ :e_connman_element_property_set_full, [ :e_connman_element, :string, :int, :pointer, :e_dbus_method_return_cb, :pointer ], :bool ], - # EAPI Eina_Bool e_connman_element_property_array_set_full(E_Connman_Element *element, const char *prop, int type, unsigned int count, const void * const *values, E_DBus_Method_Return_Cb cb, const void *data); - [ :e_connman_element_property_array_set_full, [ :e_connman_element, :string, :int, :uint, :pointer, :e_dbus_method_return_cb, :pointer ], - :bool ], - # EAPI Eina_Bool e_connman_element_property_dict_set_full(E_Connman_Element *element, const char *prop, const char *key, int type, const void *value, E_DBus_Method_Return_Cb cb, const void *data); - [ :e_connman_element_property_dict_set_full, [ :e_connman_element, :string, :string, :int, :pointer, :e_dbus_method_return_cb, :pointer ], - :bool ], - # EAPI Eina_Bool e_connman_element_property_type_get_stringshared(const E_Connman_Element *element, const char *name, int *type); - [ :e_connman_element_property_type_get_stringshared, [ :e_connman_element, :string, :pointer ], :bool ], - # EAPI Eina_Bool e_connman_element_property_type_get(const E_Connman_Element *element, const char *name, int *type); - [ :e_connman_element_property_type_get, [ :e_connman_element, :string, :pointer ], :bool ], - # EAPI Eina_Bool e_connman_element_property_dict_get_stringshared(const E_Connman_Element *element, const char *dict_name, const char *key_name, int *type, void *value); - [ :e_connman_element_property_dict_get_stringshared, [ :e_connman_element, :string, :string, :pointer, :pointer ], :bool ], - # EAPI Eina_Bool e_connman_element_property_dict_strings_array_get_stringshared(const E_Connman_Element *element, const char *dict_name, const char *key, unsigned int *count, const char ***strings); - [ :e_connman_element_property_dict_strings_array_get_stringshared, [ :e_connman_element, :string, :string, :pointer, :pointer ], :bool ], - # EAPI Eina_Bool e_connman_element_property_get_stringshared(const E_Connman_Element *element, const char *name, int *type, void *value); - [ :e_connman_element_property_get_stringshared, [ :e_connman_element, :string, :pointer, :pointer ], :bool ], - # EAPI Eina_Bool e_connman_element_property_get(const E_Connman_Element *element, const char *name, int *type, void *value); - [ :e_connman_element_property_get, [ :e_connman_element, :string, :pointer, :pointer ], :bool ], - # EAPI Eina_Bool e_connman_element_is_manager(const E_Connman_Element *element); - [ :e_connman_element_is_manager, [ :e_connman_element ], :bool ], - # EAPI Eina_Bool e_connman_element_is_profile(const E_Connman_Element *element); - [ :e_connman_element_is_profile, [ :e_connman_element ], :bool ], - # EAPI Eina_Bool e_connman_element_is_service(const E_Connman_Element *element); - [ :e_connman_element_is_service, [ :e_connman_element ], :bool ], - # EAPI Eina_Bool e_connman_element_is_technology(const E_Connman_Element *element); - [ :e_connman_element_is_technology, [ :e_connman_element ], :bool ], - ] - # - attach_fcts fcts - # - end -end -# -# EOF diff --git a/lib/efl/native/edbus.rb b/lib/efl/native/edbus.rb deleted file mode 100644 index 3f749b2..0000000 --- a/lib/efl/native/edbus.rb +++ /dev/null @@ -1,162 +0,0 @@ -#! /usr/bin/env ruby -# -*- coding: UTF-8 -*- -# -require 'efl/native' -require 'efl/native/eina_list' -# -module Efl - # - module Edbus - # - FCT_PREFIX = 'e_dbus_' unless const_defined? :FCT_PREFIX - # - def self.method_missing meth, *args, &block - sym = Efl::MethodResolver.resolve self, meth, FCT_PREFIX - self.send sym, *args, &block - end - # - end - # - module Native - # - ffi_lib 'edbus.so.1' - # - # TYPEDEFS - # typedef struct _E_DBus_Version E_DBus_Version; - typedef :pointer, :e_dbus_version - # typedef struct E_DBus_Connection E_DBus_Connection; - typedef :pointer, :e_dbus_connection - # typedef struct E_DBus_Object E_DBus_Object; - typedef :pointer, :e_dbus_object - # typedef struct E_DBus_Interface E_DBus_Interface; - typedef :pointer, :e_dbus_interface - # typedef struct E_DBus_Signal_Handler E_DBus_Signal_Handler; - typedef :pointer, :e_dbus_signal_handler - # typedef struct E_DBus_Callback E_DBus_Callback; - typedef :pointer, :e_dbus_callback - # - # CALLBACKS - # typedef DBusMessage *(* E_DBus_Method_Cb) (E_DBus_Object *obj, DBusMessage *message); - callback :e_dbus_method_cb, [ :e_dbus_object, :pointer ], :pointer - # typedef void (*E_DBus_Method_Return_Cb) (void *data, DBusMessage *msg, DBusError *error); - callback :e_dbus_method_return_cb, [ :pointer, :pointer, :pointer ], :void - # typedef void (*E_DBus_Signal_Cb) (void *data, DBusMessage *msg); - callback :e_dbus_signal_cb, [ :pointer, :pointer ], :void - # typedef void (*E_DBus_Object_Property_Get_Cb) (E_DBus_Object *obj, const char *property, int *type, void **value); - callback :e_dbus_object_property_get_cb, [ :e_dbus_object, :string, :pointer, :pointer ], :void - # typedef int (*E_DBus_Object_Property_Set_Cb) (E_DBus_Object *obj, const char *property, int type, void *value); - callback :e_dbus_object_property_set_cb, [ :e_dbus_object, :string, :int, :pointer ], :int - # typedef void (*E_DBus_Callback_Func) (void *user_data, void *method_return, DBusError *error); - callback :e_dbus_callback_func_cb, [ :pointer, :pointer, :pointer ], :void - # typedef void *(*E_DBus_Unmarshal_Func) (DBusMessage *msg, DBusError *err); - callback :e_dbus_unmarshal_func_cb, [ :pointer, :pointer ], :pointer - # typedef void (*E_DBus_Free_Func) (void *data); - callback :e_dbus_free_func_cb, [ :pointer ], :void - # - # VARIABLES - # EAPI extern E_DBus_Version *e_dbus_version; - attach_variable :e_dbus_version, :e_dbus_version - # EAPI extern int E_DBUS_DOMAIN_GLOBAL; - attach_variable :E_DBUS_DOMAIN_GLOBAL, :int - # EAPI extern int E_DBUS_EVENT_SIGNAL; - attach_variable :E_DBUS_EVENT_SIGNAL, :int - # - # FUNCTIONS - fcts = [ - # EAPI int e_dbus_init(void); - [ :e_dbus_init, [ ], :int ], - # EAPI int e_dbus_shutdown(void); - [ :e_dbus_shutdown, [ ], :int ], - # EAPI E_DBus_Connection *e_dbus_bus_get(DBusBusType type); - [ :e_dbus_bus_get, [ :int ], :e_dbus_connection ], - # EAPI void e_dbus_connection_ref(E_DBus_Connection *conn); - [ :e_dbus_connection_ref, [ :e_dbus_connection ], :void ], - # EAPI E_DBus_Connection *e_dbus_connection_setup(DBusConnection *conn); - [ :e_dbus_connection_setup, [ :pointer ], :e_dbus_connection ], - # EAPI void e_dbus_connection_close(E_DBus_Connection *conn); - [ :e_dbus_connection_close, [ :e_dbus_connection ], :void ], - # EAPI E_DBus_Interface *e_dbus_interface_new(const char *interface); - [ :e_dbus_interface_new, [ :string ], :e_dbus_interface ], - # EAPI void e_dbus_interface_ref(E_DBus_Interface *iface); - [ :e_dbus_interface_ref, [ :e_dbus_interface ], :void ], - # EAPI void e_dbus_interface_unref(E_DBus_Interface *iface); - [ :e_dbus_interface_unref, [ :e_dbus_interface ], :void ], - # EAPI void e_dbus_object_interface_attach(E_DBus_Object *obj, E_DBus_Interface *iface); - [ :e_dbus_object_interface_attach, [ :e_dbus_object, :e_dbus_interface ], :void ], - # EAPI void e_dbus_object_interface_detach(E_DBus_Object *obj, E_DBus_Interface *iface); - [ :e_dbus_object_interface_detach, [ :e_dbus_object, :e_dbus_interface ], :void ], - # EAPI int e_dbus_interface_method_add(E_DBus_Interface *iface, const char *member, const char *signature, const char *reply_signature, E_DBus_Method_Cb func); - [ :e_dbus_interface_method_add, [ :e_dbus_interface, :string, :string, :string, :e_dbus_method_cb ], :int ], - # EAPI int e_dbus_interface_signal_add(E_DBus_Interface *iface, const char *name, const char *signature); - [ :e_dbus_interface_signal_add, [ :e_dbus_interface, :string, :string ], :int ], - # EAPI E_DBus_Object *e_dbus_object_add(E_DBus_Connection *conn, const char *object_path, void *data); - [ :e_dbus_object_add, [ :e_dbus_connection, :string, :pointer ], :e_dbus_object ], - # EAPI void e_dbus_object_free(E_DBus_Object *obj); - [ :e_dbus_object_free, [ :e_dbus_object ], :void ], - # EAPI void *e_dbus_object_data_get(E_DBus_Object *obj); - [ :e_dbus_object_data_get, [ :e_dbus_object ], :pointer ], - # EAPI E_DBus_Connection *e_dbus_object_conn_get(E_DBus_Object *obj); - [ :e_dbus_object_conn_get, [ :e_dbus_object ], :e_dbus_connection ], - # EAPI const char *e_dbus_object_path_get(E_DBus_Object *obj); - [ :e_dbus_object_path_get, [ :e_dbus_object ], :string ], - # EAPI const Eina_List *e_dbus_object_interfaces_get(E_DBus_Object *obj); - [ :e_dbus_object_interfaces_get, [ :e_dbus_object ], :eina_list ], - # EAPI void e_dbus_object_property_get_cb_set(E_DBus_Object *obj, E_DBus_Object_Property_Get_Cb func); - [ :e_dbus_object_property_get_cb_set, [ :e_dbus_object, :e_dbus_object_property_get_cb ], :void ], - # EAPI void e_dbus_object_property_set_cb_set(E_DBus_Object *obj, E_DBus_Object_Property_Set_Cb func); - [ :e_dbus_object_property_set_cb_set, [ :e_dbus_object, :e_dbus_object_property_set_cb ], :void ], - # EAPI DBusPendingCall *e_dbus_message_send(E_DBus_Connection *conn, DBusMessage *msg, E_DBus_Method_Return_Cb cb_return, int timeout, void *data); - [ :e_dbus_message_send, [ :e_dbus_connection, :pointer, :e_dbus_method_return_cb, :int, :pointer ], :pointer ], - # EAPI DBusPendingCall *e_dbus_method_call_send(E_DBus_Connection *conn, DBusMessage *msg, E_DBus_Unmarshal_Func unmarshal_func, E_DBus_Callback_Func cb_func, E_DBus_Free_Func free_func, int timeout, void *data); - [ :e_dbus_method_call_send, [ :e_dbus_connection, :pointer, :e_dbus_unmarshal_func_cb, :e_dbus_callback_func_cb, :e_dbus_free_func_cb, :int, - :pointer ], :pointer ], - # EAPI E_DBus_Signal_Handler *e_dbus_signal_handler_add(E_DBus_Connection *conn, const char *sender, const char *path, const char *interface, const char *member, E_DBus_Signal_Cb cb_signal, void *data); - [ :e_dbus_signal_handler_add, [ :e_dbus_connection, :string, :string, :string, :string, :e_dbus_signal_cb, :pointer ], :e_dbus_signal_handler - ], - # EAPI void e_dbus_signal_handler_del(E_DBus_Connection *conn, E_DBus_Signal_Handler *sh); - [ :e_dbus_signal_handler_del, [ :e_dbus_connection, :e_dbus_signal_handler ], :void ], - # EAPI DBusPendingCall *e_dbus_request_name(E_DBus_Connection *conn, const char *name, unsigned int flags, E_DBus_Method_Return_Cb cb_return, const void *data); - [ :e_dbus_request_name, [ :e_dbus_connection, :string, :uint, :e_dbus_method_return_cb, :pointer ], :pointer ], - # EAPI DBusPendingCall *e_dbus_release_name(E_DBus_Connection *conn, const char *name, E_DBus_Method_Return_Cb cb_return, const void *data); - [ :e_dbus_release_name, [ :e_dbus_connection, :string, :e_dbus_method_return_cb, :pointer ], :pointer ], - # EAPI DBusPendingCall *e_dbus_get_name_owner(E_DBus_Connection *conn, const char *name, E_DBus_Method_Return_Cb cb_return, const void *data); - [ :e_dbus_get_name_owner, [ :e_dbus_connection, :string, :e_dbus_method_return_cb, :pointer ], :pointer ], - # EAPI DBusPendingCall *e_dbus_list_names(E_DBus_Connection *conn, E_DBus_Method_Return_Cb cb_return, const void *data); - [ :e_dbus_list_names, [ :e_dbus_connection, :e_dbus_method_return_cb, :pointer ], :pointer ], - # EAPI DBusPendingCall *e_dbus_list_activatable_names(E_DBus_Connection *conn, E_DBus_Method_Return_Cb cb_return, const void *data); - [ :e_dbus_list_activatable_names, [ :e_dbus_connection, :e_dbus_method_return_cb, :pointer ], :pointer ], - # EAPI DBusPendingCall *e_dbus_name_has_owner(E_DBus_Connection *conn, const char *name, E_DBus_Method_Return_Cb cb_return, const void *data); - [ :e_dbus_name_has_owner, [ :e_dbus_connection, :string, :e_dbus_method_return_cb, :pointer ], :pointer ], - # EAPI DBusPendingCall *e_dbus_start_service_by_name(E_DBus_Connection *conn, const char *name, unsigned int flags, E_DBus_Method_Return_Cb cb_return, const void *data); - [ :e_dbus_start_service_by_name, [ :e_dbus_connection, :string, :uint, :e_dbus_method_return_cb, :pointer ], :pointer ], - # EAPI DBusPendingCall *e_dbus_introspect(E_DBus_Connection *conn, const char *bus, const char *object_path, E_DBus_Method_Return_Cb cb_return, const void *data); - [ :e_dbus_introspect, [ :e_dbus_connection, :string, :string, :e_dbus_method_return_cb, :pointer ], :pointer ], - # EAPI DBusPendingCall *e_dbus_peer_ping(E_DBus_Connection *conn, const char *destination, const char *path, E_DBus_Method_Return_Cb cb_return, const void *data); - [ :e_dbus_peer_ping, [ :e_dbus_connection, :string, :string, :e_dbus_method_return_cb, :pointer ], :pointer ], - # EAPI DBusPendingCall *e_dbus_peer_get_machine_id(E_DBus_Connection *conn, const char *destination, const char *path, E_DBus_Method_Return_Cb cb_return, const void *data); - [ :e_dbus_peer_get_machine_id, [ :e_dbus_connection, :string, :string, :e_dbus_method_return_cb, :pointer ], :pointer ], - # EAPI DBusPendingCall *e_dbus_properties_get_all(E_DBus_Connection *conn, const char *destination, const char *path, const char *interface, E_DBus_Method_Return_Cb cb_return, const void *data); - [ :e_dbus_properties_get_all, [ :e_dbus_connection, :string, :string, :string, :e_dbus_method_return_cb, :pointer ], :pointer ], - # EAPI DBusPendingCall *e_dbus_properties_get(E_DBus_Connection *conn, const char *destination, const char *path, const char *interface, const char *property, E_DBus_Method_Return_Cb cb_return, const void *data); - [ :e_dbus_properties_get, [ :e_dbus_connection, :string, :string, :string, :string, :e_dbus_method_return_cb, :pointer ], :pointer ], - # EAPI DBusPendingCall *e_dbus_properties_set(E_DBus_Connection *conn, const char *destination, const char *path, const char *interface, const char *property, int value_type, const void *value, E_DBus_Method_Return_Cb cb_return, const void *data); - [ :e_dbus_properties_set, [ :e_dbus_connection, :string, :string, :string, :string, :int, :pointer, :e_dbus_method_return_cb, :pointer ], - :pointer ], - # EAPI E_DBus_Callback *e_dbus_callback_new(E_DBus_Callback_Func cb_func, E_DBus_Unmarshal_Func unmarshal_func, E_DBus_Free_Func free_func, void *user_data); - [ :e_dbus_callback_new, [ :e_dbus_callback_func_cb, :e_dbus_unmarshal_func_cb, :e_dbus_free_func_cb, :pointer ], :e_dbus_callback ], - # EAPI void e_dbus_callback_free(E_DBus_Callback *callback); - [ :e_dbus_callback_free, [ :e_dbus_callback ], :void ], - # EAPI void e_dbus_callback_call(E_DBus_Callback *cb, void *data, DBusError *error); - [ :e_dbus_callback_call, [ :e_dbus_callback, :pointer, :pointer ], :void ], - # EAPI void *e_dbus_callback_unmarshal(E_DBus_Callback *cb, DBusMessage *msg, DBusError *err); - [ :e_dbus_callback_unmarshal, [ :e_dbus_callback, :pointer, :pointer ], :pointer ], - # EAPI void e_dbus_callback_return_free(E_DBus_Callback *callback, void *data); - [ :e_dbus_callback_return_free, [ :e_dbus_callback, :pointer ], :void ], - ] - # - attach_fcts fcts - # - end -end -# -# EOF diff --git a/lib/efl/native/ehal.rb b/lib/efl/native/ehal.rb deleted file mode 100644 index 6bab6c2..0000000 --- a/lib/efl/native/ehal.rb +++ /dev/null @@ -1,104 +0,0 @@ -#! /usr/bin/env ruby -# -*- coding: UTF-8 -*- -# -require 'efl/native' -require 'efl/native/edbus' -# -module Efl - # - module Ehal - # - FCT_PREFIX = 'e_hal_' unless const_defined? :FCT_PREFIX - # - def self.method_missing meth, *args, &block - sym = Efl::MethodResolver.resolve self, meth, FCT_PREFIX - self.send sym, *args, &block - end - # - end - # - module Native - # - ffi_lib 'ehal.so.1' - # - # ENUMS - # typedef enum {...} E_Hal_Property_Type; - 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, - :e_hal_property_type_double, :e_hal_property_type_strlist ] - # - # TYPEDEFS - # typedef struct E_Hal_Property E_Hal_Property; - typedef :pointer, :e_hal_property - # typedef struct E_Hal_Properties E_Hal_Properties; - typedef :pointer, :e_hal_properties - # typedef struct E_Hal_Properties E_Hal_Device_Get_All_Properties_Return; - typedef :pointer, :e_hal_device_get_all_properties_return - # typedef struct E_Hal_Property E_Hal_Device_Get_Property_Return; - typedef :pointer, :e_hal_device_get_property_return - # typedef struct E_Hal_Bool_Return E_Hal_Device_Query_Capability_Return; - typedef :pointer, :e_hal_device_query_capability_return - # typedef struct E_Hal_String_List_Return E_Hal_String_List_Return; - typedef :pointer, :e_hal_string_list_return - # typedef struct E_Hal_String_List_Return E_Hal_Manager_Get_All_Devices_Return; - typedef :pointer, :e_hal_manager_get_all_devices_return - # typedef struct E_Hal_Bool_Return E_Hal_Manager_Device_Exists_Return; - typedef :pointer, :e_hal_manager_device_exists_return - # typedef struct E_Hal_String_List_Return E_Hal_Manager_Find_Device_String_Match_Return; - typedef :pointer, :e_hal_manager_find_device_string_match_return - # typedef struct E_Hal_String_List_Return E_Hal_Manager_Find_Device_By_Capability_Return; - typedef :pointer, :e_hal_manager_find_device_by_capability_return - # typedef struct E_Hal_UDI_Return E_Hal_Manager_Device_Added; - typedef :pointer, :e_hal_manager_device_added - # typedef struct E_Hal_UDI_Return E_Hal_Manager_Device_Removed; - typedef :pointer, :e_hal_manager_device_removed - # typedef struct E_Hal_Capability E_Hal_Manager_New_Capability; - typedef :pointer, :e_hal_manager_new_capability - # - # FUNCTIONS - fcts = [ - # EAPI int e_hal_init(void); - [ :e_hal_init, [ ], :int ], - # EAPI int e_hal_shutdown(void); - [ :e_hal_shutdown, [ ], :int ], - # 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); - [ :e_hal_device_get_property, [ :e_dbus_connection, :string, :string, :e_dbus_callback_func_cb, :pointer ], :pointer ], - # EAPI DBusPendingCall *e_hal_device_get_all_properties(E_DBus_Connection *conn, const char *udi, E_DBus_Callback_Func cb_func, void *data); - [ :e_hal_device_get_all_properties, [ :e_dbus_connection, :string, :e_dbus_callback_func_cb, :pointer ], :pointer ], - # 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); - [ :e_hal_device_query_capability, [ :e_dbus_connection, :string, :string, :e_dbus_callback_func_cb, :pointer ], :pointer ], - # EAPI DBusPendingCall *e_hal_manager_get_all_devices(E_DBus_Connection *conn, E_DBus_Callback_Func cb_func, void *data); - [ :e_hal_manager_get_all_devices, [ :e_dbus_connection, :e_dbus_callback_func_cb, :pointer ], :pointer ], - # EAPI DBusPendingCall *e_hal_manager_device_exists(E_DBus_Connection *conn, const char *udi, E_DBus_Callback_Func cb_func, void *data); - [ :e_hal_manager_device_exists, [ :e_dbus_connection, :string, :e_dbus_callback_func_cb, :pointer ], :pointer ], - # 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); - [ :e_hal_manager_find_device_string_match, [ :e_dbus_connection, :string, :string, :e_dbus_callback_func_cb, :pointer ], :pointer ], - # EAPI DBusPendingCall *e_hal_manager_find_device_by_capability(E_DBus_Connection *conn, const char *capability, E_DBus_Callback_Func cb_func, void *data); - [ :e_hal_manager_find_device_by_capability, [ :e_dbus_connection, :string, :e_dbus_callback_func_cb, :pointer ], :pointer ], - # EAPI void e_hal_property_free(E_Hal_Property *prop); - [ :e_hal_property_free, [ :e_hal_property ], :void ], - # EAPI const char *e_hal_property_string_get(E_Hal_Properties *properties, const char *key, int *err); - [ :e_hal_property_string_get, [ :e_hal_properties, :string, :pointer ], :string ], - # EAPI Eina_Bool e_hal_property_bool_get(E_Hal_Properties *properties, const char *key, int *err); - [ :e_hal_property_bool_get, [ :e_hal_properties, :string, :pointer ], :bool ], - # EAPI int e_hal_property_int_get(E_Hal_Properties *properties, const char *key, int *err); - [ :e_hal_property_int_get, [ :e_hal_properties, :string, :pointer ], :int ], - # EAPI uint64_t e_hal_property_uint64_get(E_Hal_Properties *properties, const char *key, int *err); - [ :e_hal_property_uint64_get, [ :e_hal_properties, :string, :pointer ], :ulong_long ], - # EAPI double e_hal_property_double_get(E_Hal_Properties *properties, const char *key, int *err); - [ :e_hal_property_double_get, [ :e_hal_properties, :string, :pointer ], :double ], - # EAPI const Eina_List *e_hal_property_strlist_get(E_Hal_Properties *properties, const char *key, int *err); - [ :e_hal_property_strlist_get, [ :e_hal_properties, :string, :pointer ], :eina_list ], - # 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); - [ :e_hal_device_volume_mount, [ :e_dbus_connection, :string, :string, :string, :eina_list, :e_dbus_callback_func_cb, :pointer ], :pointer ], - # 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); - [ :e_hal_device_volume_unmount, [ :e_dbus_connection, :string, :eina_list, :e_dbus_callback_func_cb, :pointer ], :pointer ], - # 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); - [ :e_hal_device_volume_eject, [ :e_dbus_connection, :string, :eina_list, :e_dbus_callback_func_cb, :pointer ], :pointer ], - ] - # - attach_fcts fcts - # - end -end -# -# EOF diff --git a/lib/efl/native/enotification_daemon.rb b/lib/efl/native/enotification_daemon.rb deleted file mode 100644 index 8ab2cf3..0000000 --- a/lib/efl/native/enotification_daemon.rb +++ /dev/null @@ -1,66 +0,0 @@ -#! /usr/bin/env ruby -# -*- coding: UTF-8 -*- -# -require 'efl/native' -require 'efl/native/enotify' -# -module Efl - # - module EnotificationDaemon - # - FCT_PREFIX = 'e_notification_daemon_' unless const_defined? :FCT_PREFIX - # - def self.method_missing meth, *args, &block - sym = Efl::MethodResolver.resolve self, meth, FCT_PREFIX - self.send sym, *args, &block - end - # - end - # - module Native - # - ffi_lib 'enotify.so.1' - # - # TYPEDEFS - # typedef struct E_Notification_Daemon E_Notification_Daemon; - typedef :pointer, :e_notification_daemon - # typedef struct E_Notification_View E_Notification_View; - typedef :pointer, :e_notification_view - # - # CALLBACKS - # typedef int (*E_Notification_Daemon_Callback_Notify) (E_Notification_Daemon *daemon, E_Notification *notification); - callback :e_notification_daemon_callback_notify_cb, [ :e_notification_daemon, :e_notification ], :int - # typedef void (*E_Notification_Daemon_Callback_Close_Notification) (E_Notification_Daemon *daemon, unsigned int notification_id); - callback :e_notification_daemon_callback_close_notification_cb, [ :e_notification_daemon, :uint ], :void - # - # FUNCTIONS - fcts = [ - # EAPI int e_notification_daemon_init(void); - [ :e_notification_daemon_init, [ ], :int ], - # EAPI int e_notification_daemon_shutdown(void); - [ :e_notification_daemon_shutdown, [ ], :int ], - # EAPI E_Notification_Daemon *e_notification_daemon_add(const char *name, const char *vendor); - [ :e_notification_daemon_add, [ :string, :string ], :e_notification_daemon ], - # EAPI void e_notification_daemon_free(E_Notification_Daemon *d); - [ :e_notification_daemon_free, [ :e_notification_daemon ], :void ], - # EAPI void e_notification_daemon_data_set(E_Notification_Daemon *daemon, void *data); - [ :e_notification_daemon_data_set, [ :e_notification_daemon, :pointer ], :void ], - # EAPI void *e_notification_daemon_data_get(E_Notification_Daemon *daemon); - [ :e_notification_daemon_data_get, [ :e_notification_daemon ], :pointer ], - # EAPI void e_notification_daemon_callback_notify_set(E_Notification_Daemon *daemon, E_Notification_Daemon_Callback_Notify func); - [ :e_notification_daemon_callback_notify_set, [ :e_notification_daemon, :e_notification_daemon_callback_notify_cb ], :void ], - # EAPI void e_notification_daemon_callback_close_notification_set(E_Notification_Daemon *daemon, E_Notification_Daemon_Callback_Close_Notification func); - [ :e_notification_daemon_callback_close_notification_set, [ :e_notification_daemon, :e_notification_daemon_callback_close_notification_cb ], - :void ], - # EAPI void e_notification_daemon_signal_notification_closed(E_Notification_Daemon *daemon, unsigned int id, E_Notification_Closed_Reason reason); - [ :e_notification_daemon_signal_notification_closed, [ :e_notification_daemon, :uint, :e_notification_closed_reason ], :void ], - # EAPI void e_notification_daemon_signal_action_invoked(E_Notification_Daemon *daemon, unsigned int notification_id, const char *action_id); - [ :e_notification_daemon_signal_action_invoked, [ :e_notification_daemon, :uint, :string ], :void ], - ] - # - attach_fcts fcts - # - end -end -# -# EOF diff --git a/lib/efl/native/enotify.rb b/lib/efl/native/enotify.rb deleted file mode 100644 index d5f236d..0000000 --- a/lib/efl/native/enotify.rb +++ /dev/null @@ -1,170 +0,0 @@ -#! /usr/bin/env ruby -# -*- coding: UTF-8 -*- -# -require 'efl/native' -require 'efl/native/evas' -require 'efl/native/edbus' -# -module Efl - # - module Enotify - # - FCT_PREFIX = 'e_notification_' unless const_defined? :FCT_PREFIX - # - def self.method_missing meth, *args, &block - sym = Efl::MethodResolver.resolve self, meth, FCT_PREFIX - self.send sym, *args, &block - end - # - end - # - module Native - # - ffi_lib 'enotify.so.1' - # - # ENUMS - # typedef enum E_Notification_Urgency {...} E_Notification_Urgency; - enum :e_notification_urgency, [ :e_notification_urgency_low, 0, :e_notification_urgency_normal, 1, :e_notification_urgency_critical, 2 ] - # typedef enum E_Notification_Hint_Type {...} E_Notification_Hint_Type; - enum :e_notification_hint_type, [ :e_notification_hint_urgency, (1 << 0), :e_notification_hint_category, (1 << 1), :e_notification_hint_desktop, (1 << 2), - :e_notification_hint_sound_file, (1 << 3), :e_notification_hint_transient, (1 << 4), :e_notification_hint_resident, (1 << 5), - :e_notification_hint_action_icons, (1 << 6), :e_notification_hint_suppress_sound, 0x10, :e_notification_hint_xy, 0x20, :e_notification_hint_image_data, 0x40 ] - # typedef enum E_Closed_Reason {...} E_Closed_Reason; - enum :e_notification_closed_reason, [ :e_notification_closed_expired, 0, :e_notification_closed_dismissed, 1, :e_notification_closed_requested, 2, - :e_notification_closed_undefined, 3 ] - # TYPEDEFS - # typedef struct E_Notification_Image E_Notification_Image; - typedef :pointer, :e_notification_image - # typedef struct E_Notification E_Notification; - typedef :pointer, :e_notification - # typedef struct E_Notification_Action E_Notification_Action; - typedef :pointer, :e_notification_action - # typedef struct E_Notification_Return_Notify E_Notification_Return_Notify; - typedef :pointer, :e_notification_return_notify - # typedef struct E_Notification_Return_Get_Capabilities E_Notification_Return_Get_Capabilities; - typedef :pointer, :e_notification_return_get_capabilities - # typedef struct E_Notification_Return_Get_Server_Information E_Notification_Return_Get_Server_Information; - typedef :pointer, :e_notification_return_get_server_information - # typedef struct E_Notification_Event_Action_Invoked E_Notification_Event_Action_Invoked; - typedef :pointer, :e_notification_event_action_invoked - # typedef struct E_Notification_Event_Notification_Closed E_Notification_Event_Notification_Closed; - typedef :pointer, :e_notification_event_notification_closed - # - # FUNCTIONS - fcts = [ - # EAPI int e_notification_init(void); - [ :e_notification_init, [ ], :int ], - # EAPI int e_notification_shutdown(void); - [ :e_notification_shutdown, [ ], :int ], - # EAPI void e_notification_send(E_Notification *n, E_DBus_Callback_Func func, void *data); - [ :e_notification_send, [ :e_notification, :e_dbus_callback_func_cb, :pointer ], :void ], - # EAPI void e_notification_get_capabilities(E_DBus_Callback_Func func, void *data); - [ :e_notification_get_capabilities, [ :e_dbus_callback_func_cb, :pointer ], :void ], - # EAPI void e_notification_get_server_information(E_DBus_Callback_Func func, void *data); - [ :e_notification_get_server_information, [ :e_dbus_callback_func_cb, :pointer ], :void ], - # EAPI E_Notification *e_notification_new(void); - [ :e_notification_new, [ ], :e_notification ], - # EAPI void e_notification_ref(E_Notification *n); - [ :e_notification_ref, [ :e_notification ], :void ], - # EAPI void e_notification_unref(E_Notification *n); - [ :e_notification_unref, [ :e_notification ], :void ], - # EAPI void e_notification_free(E_Notification *n); - [ :e_notification_free, [ :e_notification ], :void ], - # 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); - [ :e_notification_full_new, [ :string, :uint, :string, :string, :string, :int ], :e_notification ], - # EAPI void e_notification_id_set(E_Notification *note, unsigned int id); - [ :e_notification_id_set, [ :e_notification, :uint ], :void ], - # EAPI void e_notification_app_name_set(E_Notification *n, const char *app_name); - [ :e_notification_app_name_set, [ :e_notification, :string ], :void ], - # EAPI void e_notification_app_icon_set(E_Notification *n, const char *app_icon); - [ :e_notification_app_icon_set, [ :e_notification, :string ], :void ], - # EAPI void e_notification_summary_set(E_Notification *n, const char *summary); - [ :e_notification_summary_set, [ :e_notification, :string ], :void ], - # EAPI void e_notification_body_set(E_Notification *n, const char *body); - [ :e_notification_body_set, [ :e_notification, :string ], :void ], - # EAPI void e_notification_replaces_id_set(E_Notification *n, int replaces_id); - [ :e_notification_replaces_id_set, [ :e_notification, :int ], :void ], - # EAPI void e_notification_timeout_set(E_Notification *n, int timeout); - [ :e_notification_timeout_set, [ :e_notification, :int ], :void ], - # EAPI void e_notification_closed_set(E_Notification *note, unsigned char closed); - [ :e_notification_closed_set, [ :e_notification, :uchar ], :void ], - # EAPI unsigned int e_notification_id_get(E_Notification *note); - [ :e_notification_id_get, [ :e_notification ], :uint ], - # EAPI const char *e_notification_app_name_get(E_Notification *n); - [ :e_notification_app_name_get, [ :e_notification ], :string ], - # EAPI const char *e_notification_app_icon_get(E_Notification *n); - [ :e_notification_app_icon_get, [ :e_notification ], :string ], - # EAPI const char *e_notification_summary_get(E_Notification *n); - [ :e_notification_summary_get, [ :e_notification ], :string ], - # EAPI const char *e_notification_body_get(E_Notification *n); - [ :e_notification_body_get, [ :e_notification ], :string ], - # EAPI int e_notification_replaces_id_get(E_Notification *note); - [ :e_notification_replaces_id_get, [ :e_notification ], :int ], - # EAPI int e_notification_timeout_get(E_Notification *note); - [ :e_notification_timeout_get, [ :e_notification ], :int ], - # EAPI unsigned char e_notification_closed_get(E_Notification *note); - [ :e_notification_closed_get, [ :e_notification ], :uchar ], - # EAPI void e_notification_action_add(E_Notification *n, const char *action_id, const char *action_name); - [ :e_notification_action_add, [ :e_notification, :string, :string ], :void ], - # EAPI Eina_List *e_notification_actions_get(E_Notification *n); - [ :e_notification_actions_get, [ :e_notification ], :eina_list ], - # EAPI const char *e_notification_action_id_get(E_Notification_Action *a); - [ :e_notification_action_id_get, [ :e_notification_action ], :string ], - # EAPI const char *e_notification_action_name_get(E_Notification_Action *a); - [ :e_notification_action_name_get, [ :e_notification_action ], :string ], - # EAPI void e_notification_hint_transient_set(E_Notification *n, Eina_Bool transient); - [ :e_notification_hint_transient_set, [ :e_notification, :bool ], :void ], - # EAPI void e_notification_hint_resident_set(E_Notification *n, Eina_Bool resident); - [ :e_notification_hint_resident_set, [ :e_notification, :bool ], :void ], - # EAPI void e_notification_hint_action_icons_set(E_Notification *n, Eina_Bool action_icons); - [ :e_notification_hint_action_icons_set, [ :e_notification, :bool ], :void ], - # EAPI void e_notification_hint_image_path_set(E_Notification *n, const char *path); - [ :e_notification_hint_image_path_set, [ :e_notification, :string ], :void ], - # EAPI void e_notification_hint_urgency_set(E_Notification *n, char urgency); - [ :e_notification_hint_urgency_set, [ :e_notification, :char ], :void ], - # EAPI void e_notification_hint_category_set(E_Notification *n, const char *category); - [ :e_notification_hint_category_set, [ :e_notification, :string ], :void ], - # EAPI void e_notification_hint_desktop_set(E_Notification *n, const char *desktop); - [ :e_notification_hint_desktop_set, [ :e_notification, :string ], :void ], - # EAPI void e_notification_hint_sound_file_set(E_Notification *n, const char *sound_file); - [ :e_notification_hint_sound_file_set, [ :e_notification, :string ], :void ], - # EAPI void e_notification_hint_suppress_sound_set(E_Notification *n, char suppress_sound); - [ :e_notification_hint_suppress_sound_set, [ :e_notification, :char ], :void ], - # EAPI void e_notification_hint_xy_set(E_Notification *n, int x, int y); - [ :e_notification_hint_xy_set, [ :e_notification, :int, :int ], :void ], - # EAPI void e_notification_hint_image_data_set(E_Notification *n, E_Notification_Image *image); - [ :e_notification_hint_image_data_set, [ :e_notification, :e_notification_image ], :void ], - # EAPI char e_notification_hint_urgency_get(E_Notification *n); - [ :e_notification_hint_urgency_get, [ :e_notification ], :char ], - # EAPI const char *e_notification_hint_category_get(E_Notification *n); - [ :e_notification_hint_category_get, [ :e_notification ], :string ], - # EAPI const char *e_notification_hint_desktop_get(E_Notification *n); - [ :e_notification_hint_desktop_get, [ :e_notification ], :string ], - # EAPI const char *e_notification_hint_sound_file_get(E_Notification *n); - [ :e_notification_hint_sound_file_get, [ :e_notification ], :string ], - # EAPI const char *e_notification_hint_image_path_get(E_Notification *n); - [ :e_notification_hint_image_path_get, [ :e_notification ], :string ], - # EAPI char e_notification_hint_suppress_sound_get(E_Notification *n); - [ :e_notification_hint_suppress_sound_get, [ :e_notification ], :char ], - # EAPI int e_notification_hint_xy_get(E_Notification *n, int *x, int *y); - [ :e_notification_hint_xy_get, [ :e_notification, :pointer, :pointer ], :int ], - # EAPI E_Notification_Image *e_notification_hint_image_data_get(E_Notification *n); - [ :e_notification_hint_image_data_get, [ :e_notification ], :e_notification_image ], - # EAPI E_Notification_Image *e_notification_hint_icon_data_get(E_Notification *n); - [ :e_notification_hint_icon_data_get, [ :e_notification ], :e_notification_image ], - # EAPI E_Notification_Image *e_notification_image_new(void); - [ :e_notification_image_new, [ ], :e_notification_image ], - # EAPI void e_notification_image_free(E_Notification_Image *img); - [ :e_notification_image_free, [ :e_notification_image ], :void ], - # EAPI Eina_Bool e_notification_image_init(E_Notification_Image *img, Evas_Object *obj); - [ :e_notification_image_init, [ :e_notification_image, :evas_object ], :bool ], - # EAPI Evas_Object *e_notification_image_evas_object_add(Evas *evas, E_Notification_Image *img); - [ :e_notification_image_evas_object_add, [ :evas, :e_notification_image ], :evas_object ], - ] - # - attach_fcts fcts - # - end -end -# -# EOF diff --git a/lib/efl/native/eofono.rb b/lib/efl/native/eofono.rb deleted file mode 100644 index 31fedc0..0000000 --- a/lib/efl/native/eofono.rb +++ /dev/null @@ -1,112 +0,0 @@ -#! /usr/bin/env ruby -# -*- coding: UTF-8 -*- -# -require 'efl/native' -require 'efl/native/edbus' -# -module Efl - # - module Eofono - # - FCT_PREFIX = 'e_ofono_' unless const_defined? :FCT_PREFIX - # - def self.method_missing meth, *args, &block - sym = Efl::MethodResolver.resolve self, meth, FCT_PREFIX - self.send sym, *args, &block - end - # - end - # - module Native - # - ffi_lib 'eofono.so.1' - # - # TYPEDEFS - # typedef struct _E_Ofono_Element E_Ofono_Element; - typedef :pointer, :e_ofono_element - # - # FUNCTIONS - fcts = [ - # EAPI unsigned int e_ofono_system_init(E_DBus_Connection *edbus_conn); - [ :e_ofono_system_init, [ :e_dbus_connection ], :uint ], - # EAPI unsigned int e_ofono_system_shutdown(void); - [ :e_ofono_system_shutdown, [ ], :uint ], - # EAPI E_Ofono_Element * e_ofono_manager_get(void); - [ :e_ofono_manager_get, [ ], :e_ofono_element ], - # EAPI Eina_Bool e_ofono_manager_modems_get(Eina_Array **array); - [ :e_ofono_manager_modems_get, [ :pointer ], :bool ], - # EAPI Eina_Bool e_ofono_modem_powered_get(const E_Ofono_Element *element, Eina_Bool *powered); - [ :e_ofono_modem_powered_get, [ :e_ofono_element, :pointer ], :bool ], - # EAPI Eina_Bool e_ofono_modem_powered_set(E_Ofono_Element *element, Eina_Bool powered, E_DBus_Method_Return_Cb cb, const void *data); - [ :e_ofono_modem_powered_set, [ :e_ofono_element, :bool, :e_dbus_method_return_cb, :pointer ], :bool ], - # EAPI Eina_Bool e_ofono_modem_name_get(const E_Ofono_Element *element, const char **name); - [ :e_ofono_modem_name_get, [ :e_ofono_element, :pointer ], :bool ], - # EAPI Eina_Bool e_ofono_netreg_mode_get(const E_Ofono_Element *element, const char **mode); - [ :e_ofono_netreg_mode_get, [ :e_ofono_element, :pointer ], :bool ], - # EAPI Eina_Bool e_ofono_netreg_status_get(const E_Ofono_Element *element, const char **status); - [ :e_ofono_netreg_status_get, [ :e_ofono_element, :pointer ], :bool ], - # EAPI Eina_Bool e_ofono_netreg_operator_get(const E_Ofono_Element *element, const char **op); - [ :e_ofono_netreg_operator_get, [ :e_ofono_element, :pointer ], :bool ], - # EAPI Eina_Bool e_ofono_netreg_strength_get(const E_Ofono_Element *element, uint8_t *strength); - [ :e_ofono_netreg_strength_get, [ :e_ofono_element, :pointer ], :bool ], - # EAPI Eina_Bool e_ofono_sms_sca_get(const E_Ofono_Element *element, const char **sca); - [ :e_ofono_sms_sca_get, [ :e_ofono_element, :pointer ], :bool ], - # EAPI Eina_Bool e_ofono_sms_sca_set(E_Ofono_Element *element, const char *sca, E_DBus_Method_Return_Cb cb, const void *data); - [ :e_ofono_sms_sca_set, [ :e_ofono_element, :string, :e_dbus_method_return_cb, :pointer ], :bool ], - # 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); - [ :e_ofono_sms_send_message, [ :e_ofono_element, :string, :string, :e_dbus_method_return_cb, :pointer ], :bool ], - # EAPI Eina_Bool e_ofono_manager_sync_elements(void); - [ :e_ofono_manager_sync_elements, [ ], :bool ], - # EAPI Eina_Bool e_ofono_elements_get_all(unsigned int *count, E_Ofono_Element ***p_elements); - [ :e_ofono_elements_get_all, [ :pointer, :e_ofono_element ], :bool ], - # EAPI Eina_Bool e_ofono_elements_get_all_type(const char *type, unsigned int *count, E_Ofono_Element ***p_elements); - [ :e_ofono_elements_get_all_type, [ :string, :pointer, :e_ofono_element ], :bool ], - # EAPI E_Ofono_Element * e_ofono_element_get(const char *path, const char *interface); - [ :e_ofono_element_get, [ :string, :string ], :e_ofono_element ], - # 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)); - [ :e_ofono_element_listener_add, [ :e_ofono_element, (callback [:pointer, :e_ofono_element], :void), :pointer, (callback [:pointer], :void) ], :void ], - # EAPI void e_ofono_element_listener_del(E_Ofono_Element *element, void (*cb)(void *data, const E_Ofono_Element *element), const void *data); - [ :e_ofono_element_listener_del, [ :e_ofono_element, (callback [:pointer, :e_ofono_element], :void), :pointer ], :void ], - # EAPI int e_ofono_element_ref(E_Ofono_Element *element); - [ :e_ofono_element_ref, [ :e_ofono_element ], :int ], - # EAPI int e_ofono_element_unref(E_Ofono_Element *element); - [ :e_ofono_element_unref, [ :e_ofono_element ], :int ], - # EAPI void e_ofono_element_print(FILE *fp, const E_Ofono_Element *element); - [ :e_ofono_element_print, [ :pointer, :e_ofono_element ], :void ], - # EAPI Eina_Bool e_ofono_element_properties_sync(E_Ofono_Element *element); - [ :e_ofono_element_properties_sync, [ :e_ofono_element ], :bool ], - # EAPI Eina_Bool e_ofono_element_properties_sync_full(E_Ofono_Element *element, E_DBus_Method_Return_Cb cb, const void *data); - [ :e_ofono_element_properties_sync_full, [ :e_ofono_element, :e_dbus_method_return_cb, :pointer ], :bool ], - # EAPI Eina_Bool e_ofono_element_property_set(E_Ofono_Element *element, const char *prop, int type, const void *value); - [ :e_ofono_element_property_set, [ :e_ofono_element, :string, :int, :pointer ], :bool ], - # 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); - [ :e_ofono_element_property_set_full, [ :e_ofono_element, :string, :int, :pointer, :e_dbus_method_return_cb, :pointer ], :bool ], - # 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); - [ :e_ofono_element_property_dict_set_full, [ :e_ofono_element, :string, :string, :int, :pointer, :e_dbus_method_return_cb, :pointer ], :bool - ], - # 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); - [ :e_ofono_element_properties_list, [ :e_ofono_element, (callback [:pointer, :e_ofono_element, :string, :int, :pointer], :bool), :pointer ], :void ], - # EAPI Eina_Bool e_ofono_element_property_type_get_stringshared(const E_Ofono_Element *element, const char *name, int *type); - [ :e_ofono_element_property_type_get_stringshared, [ :e_ofono_element, :string, :pointer ], :bool ], - # EAPI Eina_Bool e_ofono_element_property_type_get(const E_Ofono_Element *element, const char *name, int *type); - [ :e_ofono_element_property_type_get, [ :e_ofono_element, :string, :pointer ], :bool ], - # 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); - [ :e_ofono_element_property_dict_get_stringshared, [ :e_ofono_element, :string, :string, :pointer, :pointer ], :bool ], - # EAPI Eina_Bool e_ofono_element_property_get_stringshared(const E_Ofono_Element *element, const char *name, int *type, void *value); - [ :e_ofono_element_property_get_stringshared, [ :e_ofono_element, :string, :pointer, :pointer ], :bool ], - # EAPI Eina_Bool e_ofono_element_property_get(const E_Ofono_Element *element, const char *name, int *type, void *value); - [ :e_ofono_element_property_get, [ :e_ofono_element, :string, :pointer, :pointer ], :bool ], - # EAPI Eina_Bool e_ofono_element_is_manager(const E_Ofono_Element *element); - [ :e_ofono_element_is_manager, [ :e_ofono_element ], :bool ], - # EAPI Eina_Bool e_ofono_element_is_modem(const E_Ofono_Element *element); - [ :e_ofono_element_is_modem, [ :e_ofono_element ], :bool ], - # EAPI Eina_Bool e_ofono_element_is_netreg(const E_Ofono_Element *element); - [ :e_ofono_element_is_netreg, [ :e_ofono_element ], :bool ], - ] - # - attach_fcts fcts - # - end -end -# -# EOF diff --git a/lib/efl/native/eukit.rb b/lib/efl/native/eukit.rb deleted file mode 100644 index 7ff5431..0000000 --- a/lib/efl/native/eukit.rb +++ /dev/null @@ -1,115 +0,0 @@ -#! /usr/bin/env ruby -# -*- coding: UTF-8 -*- -# -require 'efl/native' -require 'efl/native/edbus' -# -module Efl - # - module Eukit - # - FCT_PREFIX = 'e_ukit_' unless const_defined? :FCT_PREFIX - # - def self.method_missing meth, *args, &block - sym = Efl::MethodResolver.resolve self, meth, FCT_PREFIX - self.send sym, *args, &block - end - # - end - # - module Native - # - ffi_lib 'eukit.so.1' - # - # ENUMS - # typedef enum {...} E_Ukit_Property_Type; - enum :e_ukit_property_type, [ :e_ukit_property_type_string, :e_ukit_property_type_int, :e_ukit_property_type_uint32, - :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 ] - # typedef enum {...} E_UPower_Battery_Type; - enum :e_upower_battery_type, [ :e_upower_battery_unknown, :e_upower_battery_lion, :e_upower_battery_lpolymer, :e_upower_battery_lironphos, - :e_upower_battery_lead, :e_upower_battery_nicad, :e_upower_battery_metalhydryde ] - # typedef enum {...} E_Upower_State; - enum :e_upower_state, [ :e_upower_state_unknown, :e_upower_state_charging, :e_upower_state_discharging, :e_upower_state_empty, - :e_upower_state_full, :e_upower_state_pendingcharge, :e_upower_state_pendingdischarge ] - # typedef enum {...} E_Upower_Source; - enum :e_upower_source, [ :e_upower_source_unknown, :e_upower_source_ac, :e_upower_source_battery, :e_upower_source_ups, - :e_upower_source_monitor, :e_upower_source_mouse, :e_upower_source_keyboard, :e_upower_source_pda, :e_upower_source_phone ] - # - # TYPEDEFS - # typedef struct E_Ukit_Property E_Ukit_Property; - typedef :pointer, :e_ukit_property - # typedef struct E_Ukit_Properties E_Ukit_Properties; - typedef :pointer, :e_ukit_properties - # typedef struct E_Ukit_Properties E_Ukit_Get_All_Properties_Return; - typedef :pointer, :e_ukit_get_all_properties_return - # typedef struct E_Ukit_Property E_Ukit_Get_Property_Return; - typedef :pointer, :e_ukit_get_property_return - # typedef struct E_Ukit_String_List_Return E_Ukit_String_List_Return; - typedef :pointer, :e_ukit_string_list_return - # typedef struct E_Ukit_String_List_Return E_Ukit_Get_All_Devices_Return; - typedef :pointer, :e_ukit_get_all_devices_return - # typedef struct E_Ukit_UDI_Return E_Ukit_Device_Added; - typedef :pointer, :e_ukit_device_added - # typedef struct E_Ukit_UDI_Return E_Ukit_Device_Removed; - typedef :pointer, :e_ukit_device_removed - # typedef struct E_Ukit_Capability E_Ukit_New_Capability; - typedef :pointer, :e_ukit_new_capability - # - # FUNCTIONS - fcts = [ - # EAPI int e_ukit_init(void); - [ :e_ukit_init, [ ], :int ], - # EAPI int e_ukit_shutdown(void); - [ :e_ukit_shutdown, [ ], :int ], - # EAPI DBusPendingCall *e_udisks_get_property(E_DBus_Connection *conn, const char *udi, const char *property, E_DBus_Callback_Func cb_func, void *data); - [ :e_udisks_get_property, [ :e_dbus_connection, :string, :string, :e_dbus_callback_func_cb, :pointer ], :pointer ], - # EAPI DBusPendingCall *e_udisks_get_all_properties(E_DBus_Connection *conn, const char *udi, E_DBus_Callback_Func cb_func, void *data); - [ :e_udisks_get_all_properties, [ :e_dbus_connection, :string, :e_dbus_callback_func_cb, :pointer ], :pointer ], - # EAPI DBusPendingCall *e_udisks_get_all_devices(E_DBus_Connection *conn, E_DBus_Callback_Func cb_func, void *data); - [ :e_udisks_get_all_devices, [ :e_dbus_connection, :e_dbus_callback_func_cb, :pointer ], :pointer ], - # EAPI DBusPendingCall *e_upower_get_property(E_DBus_Connection *conn, const char *udi, const char *property, E_DBus_Callback_Func cb_func, void *data); - [ :e_upower_get_property, [ :e_dbus_connection, :string, :string, :e_dbus_callback_func_cb, :pointer ], :pointer ], - # EAPI DBusPendingCall *e_upower_get_all_properties(E_DBus_Connection *conn, const char *udi, E_DBus_Callback_Func cb_func, void *data); - [ :e_upower_get_all_properties, [ :e_dbus_connection, :string, :e_dbus_callback_func_cb, :pointer ], :pointer ], - # EAPI DBusPendingCall *e_upower_get_all_devices(E_DBus_Connection *conn, E_DBus_Callback_Func cb_func, void *data); - [ :e_upower_get_all_devices, [ :e_dbus_connection, :e_dbus_callback_func_cb, :pointer ], :pointer ], - # EAPI DBusPendingCall * e_upower_suspend_allowed(E_DBus_Connection *conn, E_DBus_Callback_Func cb_func, void *data); - [ :e_upower_suspend_allowed, [ :e_dbus_connection, :e_dbus_callback_func_cb, :pointer ], :pointer ], - # EAPI DBusPendingCall * e_upower_suspend(E_DBus_Connection *conn, E_DBus_Callback_Func cb_func, void *data); - [ :e_upower_suspend, [ :e_dbus_connection, :e_dbus_callback_func_cb, :pointer ], :pointer ], - # EAPI DBusPendingCall * e_upower_hibernate(E_DBus_Connection *conn, E_DBus_Callback_Func cb_func, void *data); - [ :e_upower_hibernate, [ :e_dbus_connection, :e_dbus_callback_func_cb, :pointer ], :pointer ], - # EAPI DBusPendingCall * e_upower_hibernate_allowed(E_DBus_Connection *conn, E_DBus_Callback_Func cb_func, void *data); - [ :e_upower_hibernate_allowed, [ :e_dbus_connection, :e_dbus_callback_func_cb, :pointer ], :pointer ], - # EAPI void e_ukit_property_free(E_Ukit_Property *prop); - [ :e_ukit_property_free, [ :e_ukit_property ], :void ], - # EAPI const char *e_ukit_property_string_get(E_Ukit_Properties *properties, const char *key, int *err); - [ :e_ukit_property_string_get, [ :e_ukit_properties, :string, :pointer ], :string ], - # EAPI Eina_Bool e_ukit_property_bool_get(E_Ukit_Properties *properties, const char *key, int *err); - [ :e_ukit_property_bool_get, [ :e_ukit_properties, :string, :pointer ], :bool ], - # EAPI int e_ukit_property_int_get(E_Ukit_Properties *properties, const char *key, int *err); - [ :e_ukit_property_int_get, [ :e_ukit_properties, :string, :pointer ], :int ], - # EAPI uint32_t e_ukit_property_uint32_get(E_Ukit_Properties *properties, const char *key, int *err); - [ :e_ukit_property_uint32_get, [ :e_ukit_properties, :string, :pointer ], :uint ], - # EAPI uint64_t e_ukit_property_uint64_get(E_Ukit_Properties *properties, const char *key, int *err); - [ :e_ukit_property_uint64_get, [ :e_ukit_properties, :string, :pointer ], :ulong_long ], - # EAPI int64_t e_ukit_property_int64_get(E_Ukit_Properties *properties, const char *key, int *err); - [ :e_ukit_property_int64_get, [ :e_ukit_properties, :string, :pointer ], :long_long ], - # EAPI double e_ukit_property_double_get(E_Ukit_Properties *properties, const char *key, int *err); - [ :e_ukit_property_double_get, [ :e_ukit_properties, :string, :pointer ], :double ], - # EAPI const Eina_List *e_ukit_property_strlist_get(E_Ukit_Properties *properties, const char *key, int *err); - [ :e_ukit_property_strlist_get, [ :e_ukit_properties, :string, :pointer ], :eina_list ], - # EAPI DBusPendingCall *e_udisks_volume_mount(E_DBus_Connection *conn, const char *udi, const char *fstype, Eina_List *options); - [ :e_udisks_volume_mount, [ :e_dbus_connection, :string, :string, :eina_list ], :pointer ], - # EAPI DBusPendingCall *e_udisks_volume_unmount(E_DBus_Connection *conn, const char *udi, Eina_List *options); - [ :e_udisks_volume_unmount, [ :e_dbus_connection, :string, :eina_list ], :pointer ], - # EAPI DBusPendingCall *e_udisks_volume_eject(E_DBus_Connection *conn, const char *udi, Eina_List *options); - [ :e_udisks_volume_eject, [ :e_dbus_connection, :string, :eina_list ], :pointer ], - ] - # - attach_fcts fcts - # - end -end -# -# EOF |