From d37c4333c4eb1a7d659fd45c05b7fa02ee7c0172 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Wed, 20 Apr 2011 16:49:36 +0200 Subject: regenerate bindings --- lib/efl/ecore/ecore_con-ffi.rb | 230 -------------------------------------- lib/efl/ecore/ecore_evas-ffi.rb | 2 +- lib/efl/ecore/ecore_fb-ffi.rb | 86 -------------- lib/efl/ecore/ecore_file-ffi.rb | 138 ----------------------- lib/efl/ecore/ecore_getopt-ffi.rb | 2 +- lib/efl/ecore/ecore_input-ffi.rb | 2 +- lib/efl/evas/evas_gl-ffi.rb | 72 ------------ 7 files changed, 3 insertions(+), 529 deletions(-) delete mode 100644 lib/efl/ecore/ecore_con-ffi.rb delete mode 100644 lib/efl/ecore/ecore_fb-ffi.rb delete mode 100644 lib/efl/ecore/ecore_file-ffi.rb delete mode 100644 lib/efl/evas/evas_gl-ffi.rb diff --git a/lib/efl/ecore/ecore_con-ffi.rb b/lib/efl/ecore/ecore_con-ffi.rb deleted file mode 100644 index 57dac52..0000000 --- a/lib/efl/ecore/ecore_con-ffi.rb +++ /dev/null @@ -1,230 +0,0 @@ -#! /usr/bin/env ruby -# -*- coding: UTF-8 -*- -# -require 'efl/ffi' -# -module Efl - # - module Ecorecon - def self.method_missing m, *args, &block - return Efl::API.send 'ecore_con_'+m.to_s, *args, &block - end - end - # - module API - # - # - ffi_lib 'ecore' - # - # ENUMS - # typedef enum _Ecore_Con_Type {...} Ecore_Con_Type; - enum :ecore_con_type, [ :ecore_con_local_user, 0, :ecore_con_local_system, 1, :ecore_con_local_abstract, 2, :ecore_con_remote_tcp, 3, - :ecore_con_remote_mcast, 4, :ecore_con_remote_udp, 5, :ecore_con_remote_broadcast, 6, :ecore_con_remote_nodelay, 7, :ecore_con_use_ssl2, - :ecore_con_use_ssl3, :ecore_con_use_tls, :ecore_con_use_mixed, :ecore_con_load_cert ] - # typedef enum _Ecore_Con_Url_Time {...} Ecore_Con_Url_Time; - enum :ecore_con_url_time, [ :ecore_con_url_time_none, 0, :ecore_con_url_time_ifmodsince, :ecore_con_url_time_ifunmodsince ] - # - # TYPEDEFS - # typedef struct _Ecore_Con_Server Ecore_Con_Server; - typedef :pointer, :ecore_con_server - typedef :pointer, :ecore_con_server_p - # typedef struct _Ecore_Con_Client Ecore_Con_Client; - typedef :pointer, :ecore_con_client - typedef :pointer, :ecore_con_client_p - # typedef struct _Ecore_Con_Url Ecore_Con_Url; - typedef :pointer, :ecore_con_url - typedef :pointer, :ecore_con_url_p - # typedef struct _Ecore_Con_Event_Client_Add Ecore_Con_Event_Client_Add; - typedef :pointer, :ecore_con_event_client_add - # typedef struct _Ecore_Con_Event_Client_Del Ecore_Con_Event_Client_Del; - typedef :pointer, :ecore_con_event_client_del - # typedef struct _Ecore_Con_Event_Client_Error Ecore_Con_Event_Client_Error; - typedef :pointer, :ecore_con_event_client_error - # typedef struct _Ecore_Con_Event_Server_Add Ecore_Con_Event_Server_Add; - typedef :pointer, :ecore_con_event_server_add - # typedef struct _Ecore_Con_Event_Server_Del Ecore_Con_Event_Server_Del; - typedef :pointer, :ecore_con_event_server_del - # typedef struct _Ecore_Con_Event_Server_Error Ecore_Con_Event_Server_Error; - typedef :pointer, :ecore_con_event_server_error - # typedef struct _Ecore_Con_Event_Client_Data Ecore_Con_Event_Client_Data; - typedef :pointer, :ecore_con_event_client_data - # typedef struct _Ecore_Con_Event_Server_Data Ecore_Con_Event_Server_Data; - typedef :pointer, :ecore_con_event_server_data - # typedef struct _Ecore_Con_Event_Url_Data Ecore_Con_Event_Url_Data; - typedef :pointer, :ecore_con_event_url_data - # typedef struct _Ecore_Con_Event_Url_Complete Ecore_Con_Event_Url_Complete; - typedef :pointer, :ecore_con_event_url_complete - # typedef struct _Ecore_Con_Event_Url_Progress Ecore_Con_Event_Url_Progress; - typedef :pointer, :ecore_con_event_url_progress - # - # CALLBACKS - # typedef void (*Ecore_Con_Dns_Cb) (const char *canonname, const char *ip, struct sockaddr *addr, int addrlen, void *data); - callback :ecore_con_dns_cb, [ :string, :string, :pointer, :int, :void_p ], :void - # - # FUNCTIONS - fcts = [ - # EAPI extern int ECORE_CON_EVENT_CLIENT_ADD; - # FIXME - # EAPI extern int ECORE_CON_EVENT_CLIENT_DEL; - # FIXME - # EAPI extern int ECORE_CON_EVENT_CLIENT_ERROR; - # FIXME - # EAPI extern int ECORE_CON_EVENT_SERVER_ADD; - # FIXME - # EAPI extern int ECORE_CON_EVENT_SERVER_DEL; - # FIXME - # EAPI extern int ECORE_CON_EVENT_SERVER_ERROR; - # FIXME - # EAPI extern int ECORE_CON_EVENT_CLIENT_DATA; - # FIXME - # EAPI extern int ECORE_CON_EVENT_SERVER_DATA; - # FIXME - # EAPI extern int ECORE_CON_EVENT_URL_DATA; - # FIXME - # EAPI extern int ECORE_CON_EVENT_URL_COMPLETE; - # FIXME - # EAPI extern int ECORE_CON_EVENT_URL_PROGRESS; - # FIXME - # EAPI int ecore_con_init(void); - [ :ecore_con_init, [ ], :int ], - # EAPI int ecore_con_shutdown(void); - [ :ecore_con_shutdown, [ ], :int ], - # EAPI Eina_Bool ecore_con_lookup(const char *name, Ecore_Con_Dns_Cb done_cb, const void *data); - [ :ecore_con_lookup, [ :string, :ecore_con_dns_cb, :void_p ], :eina_bool ], - # EAPI int ecore_con_ssl_available_get(void); - [ :ecore_con_ssl_available_get, [ ], :int ], - # EAPI Eina_Bool ecore_con_ssl_server_cert_add(Ecore_Con_Server *svr, const char *cert); - [ :ecore_con_ssl_server_cert_add, [ :ecore_con_server_p, :string ], :eina_bool ], - # EAPI Eina_Bool ecore_con_ssl_server_privkey_add(Ecore_Con_Server *svr, const char *key_file); - [ :ecore_con_ssl_server_privkey_add, [ :ecore_con_server_p, :string ], :eina_bool ], - # EAPI Eina_Bool ecore_con_ssl_server_crl_add(Ecore_Con_Server *svr, const char *crl_file); - [ :ecore_con_ssl_server_crl_add, [ :ecore_con_server_p, :string ], :eina_bool ], - # EAPI Eina_Bool ecore_con_ssl_server_cafile_add(Ecore_Con_Server *svr, const char *ca_file); - [ :ecore_con_ssl_server_cafile_add, [ :ecore_con_server_p, :string ], :eina_bool ], - # EAPI void ecore_con_ssl_server_verify(Ecore_Con_Server *svr); - [ :ecore_con_ssl_server_verify, [ :ecore_con_server_p ], :void ], - # EAPI Ecore_Con_Server *ecore_con_server_add(Ecore_Con_Type type, const char *name, int port, const void *data); - [ :ecore_con_server_add, [ :ecore_con_type, :string, :int, :void_p ], :ecore_con_server_p ], - # EAPI Ecore_Con_Server *ecore_con_server_connect(Ecore_Con_Type type, const char *name, int port, const void *data); - [ :ecore_con_server_connect, [ :ecore_con_type, :string, :int, :void_p ], :ecore_con_server_p ], - # EAPI void * ecore_con_server_del(Ecore_Con_Server *svr); - [ :ecore_con_server_del, [ :ecore_con_server_p ], :void_p ], - # EAPI void * ecore_con_server_data_get(Ecore_Con_Server *svr); - [ :ecore_con_server_data_get, [ :ecore_con_server_p ], :void_p ], - # EAPI void * ecore_con_server_data_set(Ecore_Con_Server *svr, void *data); - [ :ecore_con_server_data_set, [ :ecore_con_server_p, :void_p ], :void_p ], - # EAPI Eina_Bool ecore_con_server_connected_get(Ecore_Con_Server *svr); - [ :ecore_con_server_connected_get, [ :ecore_con_server_p ], :eina_bool ], - # EAPI Eina_List * ecore_con_server_clients_get(Ecore_Con_Server *svr); - [ :ecore_con_server_clients_get, [ :ecore_con_server_p ], :eina_list_p ], - # EAPI const char * ecore_con_server_name_get(Ecore_Con_Server *svr); - [ :ecore_con_server_name_get, [ :ecore_con_server_p ], :string ], - # EAPI int ecore_con_server_port_get(Ecore_Con_Server *svr); - [ :ecore_con_server_port_get, [ :ecore_con_server_p ], :int ], - # EAPI double ecore_con_server_uptime_get(Ecore_Con_Server *svr); - [ :ecore_con_server_uptime_get, [ :ecore_con_server_p ], :double ], - # EAPI int ecore_con_server_send(Ecore_Con_Server *svr, const void *data, int size); - [ :ecore_con_server_send, [ :ecore_con_server_p, :void_p, :int ], :int ], - # EAPI void ecore_con_server_client_limit_set(Ecore_Con_Server *svr, int client_limit, char reject_excess_clients); - [ :ecore_con_server_client_limit_set, [ :ecore_con_server_p, :int, :char ], :void ], - # EAPI const char * ecore_con_server_ip_get(Ecore_Con_Server *svr); - [ :ecore_con_server_ip_get, [ :ecore_con_server_p ], :string ], - # EAPI void ecore_con_server_flush(Ecore_Con_Server *svr); - [ :ecore_con_server_flush, [ :ecore_con_server_p ], :void ], - # EAPI void ecore_con_server_timeout_set(Ecore_Con_Server *svr, double timeout); - [ :ecore_con_server_timeout_set, [ :ecore_con_server_p, :double ], :void ], - # EAPI double ecore_con_server_timeout_get(Ecore_Con_Server *svr); - [ :ecore_con_server_timeout_get, [ :ecore_con_server_p ], :double ], - # EAPI int ecore_con_client_send(Ecore_Con_Client *cl, const void *data, int size); - [ :ecore_con_client_send, [ :ecore_con_client_p, :void_p, :int ], :int ], - # EAPI Ecore_Con_Server *ecore_con_client_server_get(Ecore_Con_Client *cl); - [ :ecore_con_client_server_get, [ :ecore_con_client_p ], :ecore_con_server_p ], - # EAPI void * ecore_con_client_del(Ecore_Con_Client *cl); - [ :ecore_con_client_del, [ :ecore_con_client_p ], :void_p ], - # EAPI void ecore_con_client_data_set(Ecore_Con_Client *cl, const void *data); - [ :ecore_con_client_data_set, [ :ecore_con_client_p, :void_p ], :void ], - # EAPI void * ecore_con_client_data_get(Ecore_Con_Client *cl); - [ :ecore_con_client_data_get, [ :ecore_con_client_p ], :void_p ], - # EAPI const char * ecore_con_client_ip_get(Ecore_Con_Client *cl); - [ :ecore_con_client_ip_get, [ :ecore_con_client_p ], :string ], - # EAPI void ecore_con_client_flush(Ecore_Con_Client *cl); - [ :ecore_con_client_flush, [ :ecore_con_client_p ], :void ], - # EAPI double ecore_con_client_uptime_get(Ecore_Con_Client *cl); - [ :ecore_con_client_uptime_get, [ :ecore_con_client_p ], :double ], - # EAPI double ecore_con_client_timeout_get(Ecore_Con_Client *cl); - [ :ecore_con_client_timeout_get, [ :ecore_con_client_p ], :double ], - # EAPI void ecore_con_client_timeout_set(Ecore_Con_Client *cl, double timeout); - [ :ecore_con_client_timeout_set, [ :ecore_con_client_p, :double ], :void ], - # EAPI Eina_Bool ecore_con_client_connected_get(Ecore_Con_Client *cl); - [ :ecore_con_client_connected_get, [ :ecore_con_client_p ], :eina_bool ], - # EAPI int ecore_con_client_port_get(Ecore_Con_Client *cl); - [ :ecore_con_client_port_get, [ :ecore_con_client_p ], :int ], - # EAPI int ecore_con_url_init(void); - [ :ecore_con_url_init, [ ], :int ], - # EAPI int ecore_con_url_shutdown(void); - [ :ecore_con_url_shutdown, [ ], :int ], - # EAPI void ecore_con_url_pipeline_set(Eina_Bool enable); - [ :ecore_con_url_pipeline_set, [ :eina_bool ], :void ], - # EAPI Eina_Bool ecore_con_url_pipeline_get(void); - [ :ecore_con_url_pipeline_get, [ ], :eina_bool ], - # EAPI Ecore_Con_Url * ecore_con_url_new(const char *url); - [ :ecore_con_url_new, [ :string ], :ecore_con_url_p ], - # EAPI Ecore_Con_Url * ecore_con_url_custom_new(const char *url, const char *custom_request); - [ :ecore_con_url_custom_new, [ :string, :string ], :ecore_con_url_p ], - # EAPI void ecore_con_url_free(Ecore_Con_Url *url_con); - [ :ecore_con_url_free, [ :ecore_con_url_p ], :void ], - # EAPI Eina_Bool ecore_con_url_url_set(Ecore_Con_Url *url_con, const char *url); - [ :ecore_con_url_url_set, [ :ecore_con_url_p, :string ], :eina_bool ], - # EAPI void ecore_con_url_data_set(Ecore_Con_Url *url_con, void *data); - [ :ecore_con_url_data_set, [ :ecore_con_url_p, :void_p ], :void ], - # EAPI void * ecore_con_url_data_get(Ecore_Con_Url *url_con); - [ :ecore_con_url_data_get, [ :ecore_con_url_p ], :void_p ], - # EAPI void ecore_con_url_additional_header_add(Ecore_Con_Url *url_con, const char *key, const char *value); - [ :ecore_con_url_additional_header_add, [ :ecore_con_url_p, :string, :string ], :void ], - # EAPI void ecore_con_url_additional_headers_clear(Ecore_Con_Url *url_con); - [ :ecore_con_url_additional_headers_clear, [ :ecore_con_url_p ], :void ], - # EAPI const Eina_List * ecore_con_url_response_headers_get(Ecore_Con_Url *url_con); - [ :ecore_con_url_response_headers_get, [ :ecore_con_url_p ], :eina_list_p ], - # EAPI void ecore_con_url_fd_set(Ecore_Con_Url *url_con, int fd); - [ :ecore_con_url_fd_set, [ :ecore_con_url_p, :int ], :void ], - # EAPI int ecore_con_url_received_bytes_get(Ecore_Con_Url *url_con); - [ :ecore_con_url_received_bytes_get, [ :ecore_con_url_p ], :int ], - # EAPI Eina_Bool ecore_con_url_httpauth_set(Ecore_Con_Url *url_con, const char *username, const char *password, Eina_Bool safe); - [ :ecore_con_url_httpauth_set, [ :ecore_con_url_p, :string, :string, :eina_bool ], :eina_bool ], - # EAPI Eina_Bool ecore_con_url_get(Ecore_Con_Url *url_con); - [ :ecore_con_url_get, [ :ecore_con_url_p ], :eina_bool ], - # EAPI Eina_Bool ecore_con_url_post(Ecore_Con_Url *url_con, const void *data, long length, const char *content_type); - [ :ecore_con_url_post, [ :ecore_con_url_p, :void_p, :long, :string ], :eina_bool ], - # EAPI void ecore_con_url_time(Ecore_Con_Url *url_con, Ecore_Con_Url_Time time_condition, double timestamp); - [ :ecore_con_url_time, [ :ecore_con_url_p, :ecore_con_url_time, :double ], :void ], - # EAPI Eina_Bool ecore_con_url_ftp_upload(Ecore_Con_Url *url_con, const char *filename, const char *user, const char *pass, const char *upload_dir); - [ :ecore_con_url_ftp_upload, [ :ecore_con_url_p, :string, :string, :string, :string ], :eina_bool ], - # EAPI void ecore_con_url_verbose_set(Ecore_Con_Url *url_con, Eina_Bool verbose); - [ :ecore_con_url_verbose_set, [ :ecore_con_url_p, :eina_bool ], :void ], - # EAPI void ecore_con_url_ftp_use_epsv_set(Ecore_Con_Url *url_con, Eina_Bool use_epsv); - [ :ecore_con_url_ftp_use_epsv_set, [ :ecore_con_url_p, :eina_bool ], :void ], - # EAPI void ecore_con_url_cookies_init(Ecore_Con_Url *url_con); - [ :ecore_con_url_cookies_init, [ :ecore_con_url_p ], :void ], - # EAPI void ecore_con_url_cookies_ignore_old_session_set(Ecore_Con_Url *url_con, Eina_Bool ignore); - [ :ecore_con_url_cookies_ignore_old_session_set, [ :ecore_con_url_p, :eina_bool ], :void ], - # EAPI void ecore_con_url_cookies_clear(Ecore_Con_Url *url_con); - [ :ecore_con_url_cookies_clear, [ :ecore_con_url_p ], :void ], - # EAPI void ecore_con_url_cookies_session_clear(Ecore_Con_Url *url_con); - [ :ecore_con_url_cookies_session_clear, [ :ecore_con_url_p ], :void ], - # EAPI void ecore_con_url_cookies_file_add(Ecore_Con_Url *url_con, const char * const file_name); - [ :ecore_con_url_cookies_file_add, [ :ecore_con_url_p, :string ], :void ], - # EAPI Eina_Bool ecore_con_url_cookies_jar_file_set(Ecore_Con_Url *url_con, const char * const cookiejar_file); - [ :ecore_con_url_cookies_jar_file_set, [ :ecore_con_url_p, :string ], :eina_bool ], - # EAPI void ecore_con_url_cookies_jar_write(Ecore_Con_Url *url_con); - [ :ecore_con_url_cookies_jar_write, [ :ecore_con_url_p ], :void ], - # EAPI void ecore_con_url_ssl_verify_peer_set(Ecore_Con_Url *url_con, Eina_Bool verify); - [ :ecore_con_url_ssl_verify_peer_set, [ :ecore_con_url_p, :eina_bool ], :void ], - # EAPI int ecore_con_url_ssl_ca_set(Ecore_Con_Url *url_con, const char *ca_path); - [ :ecore_con_url_ssl_ca_set, [ :ecore_con_url_p, :string ], :int ], - ] - # - attach_fcts fcts - end -end -# -# EOF diff --git a/lib/efl/ecore/ecore_evas-ffi.rb b/lib/efl/ecore/ecore_evas-ffi.rb index 0c33926..83adb55 100644 --- a/lib/efl/ecore/ecore_evas-ffi.rb +++ b/lib/efl/ecore/ecore_evas-ffi.rb @@ -5,7 +5,7 @@ require 'efl/ffi' # module Efl # - module Ecoreevas + module Ecore_evas def self.method_missing m, *args, &block return Efl::API.send 'ecore_evas_'+m.to_s, *args, &block end diff --git a/lib/efl/ecore/ecore_fb-ffi.rb b/lib/efl/ecore/ecore_fb-ffi.rb deleted file mode 100644 index 15cb840..0000000 --- a/lib/efl/ecore/ecore_fb-ffi.rb +++ /dev/null @@ -1,86 +0,0 @@ -#! /usr/bin/env ruby -# -*- coding: UTF-8 -*- -# -require 'efl/ffi' -# -module Efl - # - module Ecorefb - def self.method_missing m, *args, &block - return Efl::API.send 'ecore_fb_'+m.to_s, *args, &block - end - end - # - module API - # - # - ffi_lib 'ecore' - # - # ENUMS - # - # TYPEDEFS - # typedef struct _Ecore_Fb_Input_Device Ecore_Fb_Input_Device; - typedef :pointer, :ecore_fb_input_device - typedef :pointer, :ecore_fb_input_device_p - # typedef enum _Ecore_Fb_Input_Device_Cap Ecore_Fb_Input_Device_Cap; - typedef :pointer, :ecore_fb_input_device_cap - # typedef struct _Ecore_Fb_Event_Key_Down Ecore_Fb_Event_Key_Down; - typedef :pointer, :ecore_fb_event_key_down - # typedef struct _Ecore_Fb_Event_Key_Up Ecore_Fb_Event_Key_Up; - typedef :pointer, :ecore_fb_event_key_up - # typedef struct _Ecore_Fb_Event_Mouse_Button_Down Ecore_Fb_Event_Mouse_Button_Down; - typedef :pointer, :ecore_fb_event_mouse_button_down - # typedef struct _Ecore_Fb_Event_Mouse_Button_Up Ecore_Fb_Event_Mouse_Button_Up; - typedef :pointer, :ecore_fb_event_mouse_button_up - # typedef struct _Ecore_Fb_Event_Mouse_Move Ecore_Fb_Event_Mouse_Move; - typedef :pointer, :ecore_fb_event_mouse_move - # typedef struct _Ecore_Fb_Event_Mouse_Wheel Ecore_Fb_Event_Mouse_Wheel; - typedef :pointer, :ecore_fb_event_mouse_wheel - # - # CALLBACKS - # - # FUNCTIONS - fcts = [ - # EAPI extern int ECORE_FB_EVENT_KEY_DOWN; /**< FB Key Down event */ EAPI extern int ECORE_FB_EVENT_KEY_UP; /**< FB Key Up event */ - # FIXME - # EAPI extern int ECORE_FB_EVENT_MOUSE_BUTTON_DOWN; /**< FB Mouse Down event */ EAPI extern int ECORE_FB_EVENT_MOUSE_BUTTON_UP; /**< FB Mouse Up event */ - # FIXME - # EAPI extern int ECORE_FB_EVENT_MOUSE_MOVE; /**< FB Mouse Move event */ EAPI extern int ECORE_FB_EVENT_MOUSE_WHEEL; /**< FB Mouse Wheel event */ - # FIXME - # EAPI void ecore_fb_callback_gain_set(void (*func) (void *data), void *data); - # FIXME - # EAPI void ecore_fb_callback_lose_set(void (*func) (void *data), void *data); - # FIXME - # EAPI Ecore_Fb_Input_Device *ecore_fb_input_device_open(const char *dev); - [ :ecore_fb_input_device_open, [ :string ], :ecore_fb_input_device_p ], - # EAPI void ecore_fb_input_device_close(Ecore_Fb_Input_Device *dev); - [ :ecore_fb_input_device_close, [ :ecore_fb_input_device_p ], :void ], - # EAPI void ecore_fb_input_device_listen(Ecore_Fb_Input_Device *dev, Eina_Bool listen); - [ :ecore_fb_input_device_listen, [ :ecore_fb_input_device_p, :eina_bool ], :void ], - # EAPI const char *ecore_fb_input_device_name_get(Ecore_Fb_Input_Device *dev); - [ :ecore_fb_input_device_name_get, [ :ecore_fb_input_device_p ], :string ], - # EAPI Ecore_Fb_Input_Device_Cap ecore_fb_input_device_cap_get(Ecore_Fb_Input_Device *dev); - [ :ecore_fb_input_device_cap_get, [ :ecore_fb_input_device_p ], :ecore_fb_input_device_cap ], - # EAPI void ecore_fb_input_device_axis_size_set(Ecore_Fb_Input_Device *dev, int w, int h); - [ :ecore_fb_input_device_axis_size_set, [ :ecore_fb_input_device_p, :int, :int ], :void ], - # EAPI void ecore_fb_input_threshold_click_set(Ecore_Fb_Input_Device *dev, double threshold); - [ :ecore_fb_input_threshold_click_set, [ :ecore_fb_input_device_p, :double ], :void ], - # EAPI double ecore_fb_input_threshold_click_get(Ecore_Fb_Input_Device *dev); - [ :ecore_fb_input_threshold_click_get, [ :ecore_fb_input_device_p ], :double ], - # EAPI int ecore_fb_init(const char *name); - [ :ecore_fb_init, [ :string ], :int ], - # EAPI int ecore_fb_shutdown(void); - [ :ecore_fb_shutdown, [ ], :int ], - # EAPI void ecore_fb_size_get(int *w, int *h); - [ :ecore_fb_size_get, [ :int_p, :int_p ], :void ], - # EAPI void ecore_fb_touch_screen_calibrate_set(int xscale, int xtrans, int yscale, int ytrans, int xyswap); - [ :ecore_fb_touch_screen_calibrate_set, [ :int, :int, :int, :int, :int ], :void ], - # EAPI void ecore_fb_touch_screen_calibrate_get(int *xscale, int *xtrans, int *yscale, int *ytrans, int *xyswap); - [ :ecore_fb_touch_screen_calibrate_get, [ :int_p, :int_p, :int_p, :int_p, :int_p ], :void ], - ] - # - attach_fcts fcts - end -end -# -# EOF diff --git a/lib/efl/ecore/ecore_file-ffi.rb b/lib/efl/ecore/ecore_file-ffi.rb deleted file mode 100644 index 3b23b45..0000000 --- a/lib/efl/ecore/ecore_file-ffi.rb +++ /dev/null @@ -1,138 +0,0 @@ -#! /usr/bin/env ruby -# -*- coding: UTF-8 -*- -# -require 'efl/ffi' -# -module Efl - # - module Ecorefile - def self.method_missing m, *args, &block - return Efl::API.send 'ecore_file_'+m.to_s, *args, &block - end - end - # - module API - # - # - ffi_lib 'ecore' - # - # ENUMS - # typedef enum _Ecore_File_Event {...} Ecore_File_Event; - enum :ecore_file_event, [ :ecore_file_event_none, :ecore_file_event_created_file, :ecore_file_event_created_directory, - :ecore_file_event_deleted_file, :ecore_file_event_deleted_directory, :ecore_file_event_deleted_self, :ecore_file_event_modified, - :ecore_file_event_closed ] - # typedef enum _Ecore_File_Progress_Return {...} Ecore_File_Progress_Return; - enum :ecore_file_progress_return, [ :ecore_file_progress_continue, 0, :ecore_file_progress_abort, 1 ] - # - # TYPEDEFS - # typedef struct _Ecore_File_Monitor Ecore_File_Monitor; - typedef :pointer, :ecore_file_monitor - typedef :pointer, :ecore_file_monitor_p - # typedef struct _Ecore_File_Download_Job Ecore_File_Download_Job; - typedef :pointer, :ecore_file_download_job - typedef :pointer, :ecore_file_download_job_p - typedef :pointer, :ecore_file_download_job_pp - # - # CALLBACKS - # typedef void (*Ecore_File_Monitor_Cb) (void *data, Ecore_File_Monitor *em, Ecore_File_Event event, const char *path); - callback :ecore_file_monitor_cb, [ :void_p, :ecore_file_monitor_p, :ecore_file_event, :string ], :void - # typedef void (*Ecore_File_Download_Completion_Cb) (void *data, const char *file, int status); - callback :ecore_file_download_completion_cb, [ :void_p, :string, :int ], :void - # typedef int (*Ecore_File_Download_Progress_Cb) (void *data, const char *file, long int dltotal, long int dlnow, long int ultotal, long int ulnow); - callback :ecore_file_download_progress_cb, [ :void_p, :string, :long, :long, :long, :long ], :int - # - # FUNCTIONS - fcts = [ - # EAPI int ecore_file_init (void); - [ :ecore_file_init, [ ], :int ], - # EAPI int ecore_file_shutdown (void); - [ :ecore_file_shutdown, [ ], :int ], - # EAPI long long ecore_file_mod_time (const char *file); - [ :ecore_file_mod_time, [ :string ], :long_long ], - # EAPI long long ecore_file_size (const char *file); - [ :ecore_file_size, [ :string ], :long_long ], - # EAPI Eina_Bool ecore_file_exists (const char *file); - [ :ecore_file_exists, [ :string ], :eina_bool ], - # EAPI Eina_Bool ecore_file_is_dir (const char *file); - [ :ecore_file_is_dir, [ :string ], :eina_bool ], - # EAPI Eina_Bool ecore_file_mkdir (const char *dir); - [ :ecore_file_mkdir, [ :string ], :eina_bool ], - # EAPI int ecore_file_mkdirs (const char **dirs); - [ :ecore_file_mkdirs, [ :string_array ], :int ], - # EAPI int ecore_file_mksubdirs (const char *base, const char **subdirs); - [ :ecore_file_mksubdirs, [ :string, :string_array ], :int ], - # EAPI Eina_Bool ecore_file_rmdir (const char *dir); - [ :ecore_file_rmdir, [ :string ], :eina_bool ], - # EAPI Eina_Bool ecore_file_recursive_rm (const char *dir); - [ :ecore_file_recursive_rm, [ :string ], :eina_bool ], - # EAPI Eina_Bool ecore_file_mkpath (const char *path); - [ :ecore_file_mkpath, [ :string ], :eina_bool ], - # EAPI int ecore_file_mkpaths (const char **paths); - [ :ecore_file_mkpaths, [ :string_array ], :int ], - # EAPI Eina_Bool ecore_file_cp (const char *src, const char *dst); - [ :ecore_file_cp, [ :string, :string ], :eina_bool ], - # EAPI Eina_Bool ecore_file_mv (const char *src, const char *dst); - [ :ecore_file_mv, [ :string, :string ], :eina_bool ], - # EAPI Eina_Bool ecore_file_symlink (const char *src, const char *dest); - [ :ecore_file_symlink, [ :string, :string ], :eina_bool ], - # EAPI char *ecore_file_realpath (const char *file); - [ :ecore_file_realpath, [ :string ], :string ], - # EAPI Eina_Bool ecore_file_unlink (const char *file); - [ :ecore_file_unlink, [ :string ], :eina_bool ], - # EAPI Eina_Bool ecore_file_remove (const char *file); - [ :ecore_file_remove, [ :string ], :eina_bool ], - # EAPI const char *ecore_file_file_get (const char *path); - [ :ecore_file_file_get, [ :string ], :string ], - # EAPI char *ecore_file_dir_get (const char *path); - [ :ecore_file_dir_get, [ :string ], :string ], - # EAPI Eina_Bool ecore_file_can_read (const char *file); - [ :ecore_file_can_read, [ :string ], :eina_bool ], - # EAPI Eina_Bool ecore_file_can_write (const char *file); - [ :ecore_file_can_write, [ :string ], :eina_bool ], - # EAPI Eina_Bool ecore_file_can_exec (const char *file); - [ :ecore_file_can_exec, [ :string ], :eina_bool ], - # EAPI char *ecore_file_readlink (const char *link); - [ :ecore_file_readlink, [ :string ], :string ], - # EAPI Eina_List *ecore_file_ls (const char *dir); - [ :ecore_file_ls, [ :string ], :eina_list_p ], - # EAPI Eina_Iterator *ecore_file_ls_iterator (const char *dir); - [ :ecore_file_ls_iterator, [ :string ], :eina_iterator_p ], - # EAPI char *ecore_file_app_exe_get (const char *app); - [ :ecore_file_app_exe_get, [ :string ], :string ], - # EAPI char *ecore_file_escape_name (const char *filename); - [ :ecore_file_escape_name, [ :string ], :string ], - # EAPI char *ecore_file_strip_ext (const char *file); - [ :ecore_file_strip_ext, [ :string ], :string ], - # EAPI int ecore_file_dir_is_empty (const char *dir); - [ :ecore_file_dir_is_empty, [ :string ], :int ], - # EAPI Ecore_File_Monitor *ecore_file_monitor_add(const char *path, Ecore_File_Monitor_Cb func, void *data); - [ :ecore_file_monitor_add, [ :string, :ecore_file_monitor_cb, :void_p ], :ecore_file_monitor_p ], - # EAPI void ecore_file_monitor_del(Ecore_File_Monitor *ecore_file_monitor); - [ :ecore_file_monitor_del, [ :ecore_file_monitor_p ], :void ], - # EAPI const char *ecore_file_monitor_path_get(Ecore_File_Monitor *ecore_file_monitor); - [ :ecore_file_monitor_path_get, [ :ecore_file_monitor_p ], :string ], - # EAPI Eina_Bool ecore_file_path_dir_exists(const char *in_dir); - [ :ecore_file_path_dir_exists, [ :string ], :eina_bool ], - # EAPI Eina_Bool ecore_file_app_installed(const char *exe); - [ :ecore_file_app_installed, [ :string ], :eina_bool ], - # EAPI Eina_List *ecore_file_app_list(void); - [ :ecore_file_app_list, [ ], :eina_list_p ], - # EAPI Eina_Bool ecore_file_download(const char *url, const char *dst, Ecore_File_Download_Completion_Cb completion_cb, Ecore_File_Download_Progress_Cb progress_cb, void *data, Ecore_File_Download_Job **job_ret); - [ :ecore_file_download, [ :string, :string, :ecore_file_download_completion_cb, :ecore_file_download_progress_cb, :void_p, - :ecore_file_download_job_pp ], :eina_bool ], - # EAPI Eina_Bool ecore_file_download_full(const char *url, const char *dst, Ecore_File_Download_Completion_Cb completion_cb, Ecore_File_Download_Progress_Cb progress_cb, void *data, Ecore_File_Download_Job **job_ret, Eina_Hash *headers); - [ :ecore_file_download_full, [ :string, :string, :ecore_file_download_completion_cb, :ecore_file_download_progress_cb, :void_p, - :ecore_file_download_job_pp, :eina_hash_p ], :eina_bool ], - # EAPI void ecore_file_download_abort_all(void); - [ :ecore_file_download_abort_all, [ ], :void ], - # EAPI void ecore_file_download_abort(Ecore_File_Download_Job *job); - [ :ecore_file_download_abort, [ :ecore_file_download_job_p ], :void ], - # EAPI Eina_Bool ecore_file_download_protocol_available(const char *protocol); - [ :ecore_file_download_protocol_available, [ :string ], :eina_bool ], - ] - # - attach_fcts fcts - end -end -# -# EOF diff --git a/lib/efl/ecore/ecore_getopt-ffi.rb b/lib/efl/ecore/ecore_getopt-ffi.rb index 9834865..c66312d 100644 --- a/lib/efl/ecore/ecore_getopt-ffi.rb +++ b/lib/efl/ecore/ecore_getopt-ffi.rb @@ -5,7 +5,7 @@ require 'efl/ffi' # module Efl # - module Ecoregetopt + module EcoreGetopt def self.method_missing m, *args, &block return Efl::API.send 'ecore_getopt_'+m.to_s, *args, &block end diff --git a/lib/efl/ecore/ecore_input-ffi.rb b/lib/efl/ecore/ecore_input-ffi.rb index dde4d2e..e80db89 100644 --- a/lib/efl/ecore/ecore_input-ffi.rb +++ b/lib/efl/ecore/ecore_input-ffi.rb @@ -5,7 +5,7 @@ require 'efl/ffi' # module Efl # - module Ecoreinput + module EcoreInput def self.method_missing m, *args, &block return Efl::API.send 'ecore_input_'+m.to_s, *args, &block end diff --git a/lib/efl/evas/evas_gl-ffi.rb b/lib/efl/evas/evas_gl-ffi.rb deleted file mode 100644 index fce7814..0000000 --- a/lib/efl/evas/evas_gl-ffi.rb +++ /dev/null @@ -1,72 +0,0 @@ -#! /usr/bin/env ruby -# -*- coding: UTF-8 -*- -# -require 'efl/ffi' -# -module Efl - # - module Evasgl - def self.method_missing m, *args, &block - return Efl::API.send 'evas_gl_'+m.to_s, *args, &block - end - end - # - module API - # - # - ffi_lib 'evas' - # - # ENUMS - # typedef enum _Evas_GL_Color_Format {...} Evas_GL_Color_Format; - enum :evas_gl_color_format, [ :evas_gl_rgb_8, :evas_gl_rgba_8, :evas_gl_rgb_32, :evas_gl_rgba_32 ] - # typedef enum _Evas_GL_Depth_Bits {...} Evas_GL_Depth_Bits; - enum :evas_gl_depth_bits, [ :evas_gl_depth_bit_8, :evas_gl_depth_bit_16, :evas_gl_depth_bit_24, :evas_gl_depth_bit_32, :evas_gl_depth_none ] - # typedef enum _Evas_GL_Stencil_Bits {...} Evas_GL_Stencil_Bits; - enum :evas_gl_stencil_bits, [ :evas_gl_stencil_bit_1, :evas_gl_stencil_bit_2, :evas_gl_stencil_bit_4, :evas_gl_stencil_bit_8, - :evas_gl_stencil_bit_16, :evas_gl_stencil_none ] - # - # TYPEDEFS - # typedef struct _Evas_GL Evas_GL; - typedef :pointer, :evas_gl - typedef :pointer, :evas_gl_p - # typedef struct _Evas_GL_Surface Evas_GL_Surface; - typedef :pointer, :evas_gl_surface - typedef :pointer, :evas_gl_surface_p - # typedef struct _Evas_GL_Context Evas_GL_Context; - typedef :pointer, :evas_gl_context - typedef :pointer, :evas_gl_context_p - # typedef struct _Evas_GL_Config Evas_GL_Config; - typedef :pointer, :evas_gl_config - typedef :pointer, :evas_gl_config_p - # typedef void* Evas_GL_Func; - typedef :void*, :evas_gl_func - # - # CALLBACKS - # - # FUNCTIONS - fcts = [ - # EAPI Evas_GL *evas_gl_new (Evas *e) EINA_WARN_UNUSED_RESULT; - [ :evas_gl_new, [ :evas_p ], :evas_gl_p ], - # EAPI void evas_gl_free (Evas_GL *evas_gl); - [ :evas_gl_free, [ :evas_gl_p ], :void ], - # EAPI Evas_GL_Surface *evas_gl_surface_create (Evas_GL *evas_gl, Evas_GL_Config *cfg, int w, int h) EINA_WARN_UNUSED_RESULT; - [ :evas_gl_surface_create, [ :evas_gl_p, :evas_gl_config_p, :int, :int ], :evas_gl_surface_p ], - # EAPI void evas_gl_surface_destroy (Evas_GL *evas_gl, Evas_GL_Surface *surf); - [ :evas_gl_surface_destroy, [ :evas_gl_p, :evas_gl_surface_p ], :void ], - # EAPI Evas_GL_Context *evas_gl_context_create (Evas_GL *evas_gl, Evas_GL_Context *share_ctx) EINA_WARN_UNUSED_RESULT; - [ :evas_gl_context_create, [ :evas_gl_p, :evas_gl_context_p ], :evas_gl_context_p ], - # EAPI void evas_gl_context_destroy (Evas_GL *evas_gl, Evas_GL_Context *ctx); - [ :evas_gl_context_destroy, [ :evas_gl_p, :evas_gl_context_p ], :void ], - # EAPI Eina_Bool evas_gl_make_current (Evas_GL *evas_gl, Evas_GL_Surface *surf, Evas_GL_Context *ctx); - [ :evas_gl_make_current, [ :evas_gl_p, :evas_gl_surface_p, :evas_gl_context_p ], :eina_bool ], - # EAPI Evas_GL_Func evas_gl_proc_address_get (Evas_GL *evas_gl, const char *name) EINA_WARN_UNUSED_RESULT; - [ :evas_gl_proc_address_get, [ :evas_gl_p, :string ], :void* ], - # EAPI Eina_Bool evas_gl_native_surface_get (Evas_GL *evas_gl, Evas_GL_Surface *surf, Evas_Native_Surface *ns); - [ :evas_gl_native_surface_get, [ :evas_gl_p, :evas_gl_surface_p, :evas_native_surface_p ], :eina_bool ], - ] - # - attach_fcts fcts - end -end -# -# EOF -- cgit v1.1-2-g2b99