diff options
Diffstat (limited to 'lib/efl/ecore')
-rw-r--r-- | lib/efl/ecore/ecore-ffi.rb | 380 | ||||
-rw-r--r-- | lib/efl/ecore/ecore_con-ffi.rb | 230 | ||||
-rw-r--r-- | lib/efl/ecore/ecore_evas-ffi.rb | 378 | ||||
-rw-r--r-- | lib/efl/ecore/ecore_fb-ffi.rb | 86 | ||||
-rw-r--r-- | lib/efl/ecore/ecore_file-ffi.rb | 138 | ||||
-rw-r--r-- | lib/efl/ecore/ecore_getopt-ffi.rb | 68 | ||||
-rw-r--r-- | lib/efl/ecore/ecore_input-ffi.rb | 78 |
7 files changed, 1358 insertions, 0 deletions
diff --git a/lib/efl/ecore/ecore-ffi.rb b/lib/efl/ecore/ecore-ffi.rb new file mode 100644 index 0000000..6db930b --- /dev/null +++ b/lib/efl/ecore/ecore-ffi.rb @@ -0,0 +1,380 @@ +#! /usr/bin/env ruby +# -*- coding: UTF-8 -*- +# +require 'efl/ffi' +# +module Efl + # + module Ecore + def self.method_missing m, *args, &block + return Efl::API.send 'ecore_'+m.to_s, *args, &block + end + end + # + module API + # + # + ffi_lib 'ecore' + # + # ENUMS + # + # TYPEDEFS + # typedef struct _Ecore_Version Ecore_Version; + typedef :pointer, :ecore_version + # typedef enum _Ecore_Fd_Handler_Flags Ecore_Fd_Handler_Flags; + typedef :pointer, :ecore_fd_handler_flags + # typedef enum _Ecore_Exe_Flags Ecore_Exe_Flags; + typedef :pointer, :ecore_exe_flags + # typedef enum _Ecore_Exe_Win32_Priority Ecore_Exe_Win32_Priority; + typedef :pointer, :ecore_exe_win32_priority + # typedef enum _Ecore_Poller_Type Ecore_Poller_Type; + typedef :pointer, :ecore_poller_type + # typedef struct _Ecore_Exe Ecore_Exe; + typedef :pointer, :ecore_exe + typedef :pointer, :ecore_exe_p + # typedef struct _Ecore_Timer Ecore_Timer; + typedef :pointer, :ecore_timer + typedef :pointer, :ecore_timer_p + # typedef struct _Ecore_Idler Ecore_Idler; + typedef :pointer, :ecore_idler + typedef :pointer, :ecore_idler_p + # typedef struct _Ecore_Idle_Enterer Ecore_Idle_Enterer; + typedef :pointer, :ecore_idle_enterer + typedef :pointer, :ecore_idle_enterer_p + # typedef struct _Ecore_Idle_Exiter Ecore_Idle_Exiter; + typedef :pointer, :ecore_idle_exiter + typedef :pointer, :ecore_idle_exiter_p + # typedef struct _Ecore_Fd_Handler Ecore_Fd_Handler; + typedef :pointer, :ecore_fd_handler + typedef :pointer, :ecore_fd_handler_p + # typedef struct _Ecore_Win32_Handler Ecore_Win32_Handler; + typedef :pointer, :ecore_win32_handler + typedef :pointer, :ecore_win32_handler_p + # typedef struct _Ecore_Event_Handler Ecore_Event_Handler; + typedef :pointer, :ecore_event_handler + typedef :pointer, :ecore_event_handler_p + # typedef struct _Ecore_Event_Filter Ecore_Event_Filter; + typedef :pointer, :ecore_event_filter + typedef :pointer, :ecore_event_filter_p + # typedef struct _Ecore_Event Ecore_Event; + typedef :pointer, :ecore_event + typedef :pointer, :ecore_event_p + # typedef struct _Ecore_Animator Ecore_Animator; + typedef :pointer, :ecore_animator + typedef :pointer, :ecore_animator_p + # typedef struct _Ecore_Pipe Ecore_Pipe; + typedef :pointer, :ecore_pipe + typedef :pointer, :ecore_pipe_p + # typedef struct _Ecore_Poller Ecore_Poller; + typedef :pointer, :ecore_poller + typedef :pointer, :ecore_poller_p + # typedef struct _Ecore_Event_Signal_User Ecore_Event_Signal_User; + typedef :pointer, :ecore_event_signal_user + # typedef struct _Ecore_Event_Signal_Hup Ecore_Event_Signal_Hup; + typedef :pointer, :ecore_event_signal_hup + # typedef struct _Ecore_Event_Signal_Exit Ecore_Event_Signal_Exit; + typedef :pointer, :ecore_event_signal_exit + # typedef struct _Ecore_Event_Signal_Power Ecore_Event_Signal_Power; + typedef :pointer, :ecore_event_signal_power + # typedef struct _Ecore_Event_Signal_Realtime Ecore_Event_Signal_Realtime; + typedef :pointer, :ecore_event_signal_realtime + # typedef struct _Ecore_Exe_Event_Add Ecore_Exe_Event_Add; + typedef :pointer, :ecore_exe_event_add + # typedef struct _Ecore_Exe_Event_Del Ecore_Exe_Event_Del; + typedef :pointer, :ecore_exe_event_del + # typedef struct _Ecore_Exe_Event_Data_Line Ecore_Exe_Event_Data_Line; + typedef :pointer, :ecore_exe_event_data_line + # typedef struct _Ecore_Exe_Event_Data Ecore_Exe_Event_Data; + typedef :pointer, :ecore_exe_event_data + typedef :pointer, :ecore_exe_event_data_p + # typedef struct _Ecore_Thread Ecore_Thread; + typedef :pointer, :ecore_thread + typedef :pointer, :ecore_thread_p + # typedef struct _Ecore_Job Ecore_Job; + typedef :pointer, :ecore_job + typedef :pointer, :ecore_job_p + # + # CALLBACKS + # typedef void *(*Ecore_Data_Cb) (void *data); + callback :ecore_data_cb, [ :void_p ], :void_p + # typedef Eina_Bool (*Ecore_Filter_Cb) (void *data, void *loop_data, int type, void *event); + callback :ecore_filter_cb, [ :void_p, :void_p, :int, :void_p ], :eina_bool + # typedef int (*Ecore_Select_Function) (int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout); + callback :ecore_select_function, [ :int, :pointer, :pointer, :pointer, :pointer ], :int + # typedef void (*Ecore_End_Cb) (void *user_data, void *func_data); + callback :ecore_end_cb, [ :void_p, :void_p ], :void + # typedef void (*Ecore_Pipe_Cb) (void *data, void *buffer, unsigned int nbyte); + callback :ecore_pipe_cb, [ :void_p, :void_p, :uint ], :void + # typedef void (*Ecore_Exe_Cb) (void *data, const Ecore_Exe *exe); + callback :ecore_exe_cb, [ :void_p, :ecore_exe_p ], :void + # typedef Eina_Bool (*Ecore_Event_Handler_Cb) (void *data, int type, void *event); + callback :ecore_event_handler_cb, [ :void_p, :int, :void_p ], :eina_bool + # typedef void (*Ecore_Thread_Cb) (void *data, Ecore_Thread *thread); + callback :ecore_thread_cb, [ :void_p, :ecore_thread_p ], :void + # typedef void (*Ecore_Thread_Notify_Cb) (void *data, Ecore_Thread *thread, void *msg_data); + callback :ecore_thread_notify_cb, [ :void_p, :ecore_thread_p, :void_p ], :void + # typedef Eina_Bool (*Ecore_Task_Cb) (void *data); + callback :ecore_task_cb, [ :void_p ], :eina_bool + # typedef void (*Ecore_Cb) (void *data); + callback :ecore_cb, [ :void_p ], :void + # typedef Eina_Bool (*Ecore_Fd_Cb) (void *data, Ecore_Fd_Handler *fd_handler); + callback :ecore_fd_cb, [ :void_p, :ecore_fd_handler_p ], :eina_bool + # typedef void (*Ecore_Fd_Prep_Cb) (void *data, Ecore_Fd_Handler *fd_handler); + callback :ecore_fd_prep_cb, [ :void_p, :ecore_fd_handler_p ], :void + # typedef Eina_Bool (*Ecore_Win32_Handle_Cb) (void *data, Ecore_Win32_Handler *wh); + callback :ecore_win32_handle_cb, [ :void_p, :ecore_win32_handler_p ], :eina_bool + # + # FUNCTIONS + fcts = [ + # EAPI extern Ecore_Version *ecore_version; + # FIXME + # EAPI extern int ECORE_EXE_EVENT_ADD; /**< A child process has been added */ EAPI extern int ECORE_EXE_EVENT_DEL; /**< A child process has been deleted (it exited, naming consistent with the rest of ecore). */ + # FIXME + # EAPI extern int ECORE_EXE_EVENT_DATA; /**< Data from a child process. */ EAPI extern int ECORE_EXE_EVENT_ERROR; /**< Errors from a child process. */ + # FIXME + # EAPI int ecore_init(void); + [ :ecore_init, [ ], :int ], + # EAPI int ecore_shutdown(void); + [ :ecore_shutdown, [ ], :int ], + # EAPI void ecore_app_args_set(int argc, const char **argv); + [ :ecore_app_args_set, [ :int, :string_array ], :void ], + # EAPI void ecore_app_args_get(int *argc, char ***argv); + [ :ecore_app_args_get, [ :int_p, :string_array_p ], :void ], + # EAPI void ecore_app_restart(void); + [ :ecore_app_restart, [ ], :void ], + # EAPI Ecore_Event_Handler *ecore_event_handler_add(int type, Ecore_Event_Handler_Cb func, const void *data); + [ :ecore_event_handler_add, [ :int, :ecore_event_handler_cb, :void_p ], :ecore_event_handler_p ], + # EAPI void *ecore_event_handler_del(Ecore_Event_Handler *event_handler); + [ :ecore_event_handler_del, [ :ecore_event_handler_p ], :void_p ], + # EAPI Ecore_Event *ecore_event_add(int type, void *ev, Ecore_End_Cb func_free, void *data); + [ :ecore_event_add, [ :int, :void_p, :ecore_end_cb, :void_p ], :ecore_event_p ], + # EAPI void *ecore_event_del(Ecore_Event *event); + [ :ecore_event_del, [ :ecore_event_p ], :void_p ], + # EAPI void *ecore_event_handler_data_get(Ecore_Event_Handler *eh); + [ :ecore_event_handler_data_get, [ :ecore_event_handler_p ], :void_p ], + # EAPI void *ecore_event_handler_data_set(Ecore_Event_Handler *eh, void *data); + [ :ecore_event_handler_data_set, [ :ecore_event_handler_p, :void_p ], :void_p ], + # EAPI int ecore_event_type_new(void); + [ :ecore_event_type_new, [ ], :int ], + # EAPI Ecore_Event_Filter *ecore_event_filter_add(Ecore_Data_Cb func_start, Ecore_Filter_Cb func_filter, Ecore_End_Cb func_end, const void *data); + [ :ecore_event_filter_add, [ :ecore_data_cb, :ecore_filter_cb, :ecore_end_cb, :void_p ], :ecore_event_filter_p ], + # EAPI void *ecore_event_filter_del(Ecore_Event_Filter *ef); + [ :ecore_event_filter_del, [ :ecore_event_filter_p ], :void_p ], + # EAPI int ecore_event_current_type_get(void); + [ :ecore_event_current_type_get, [ ], :int ], + # EAPI void *ecore_event_current_event_get(void); + [ :ecore_event_current_event_get, [ ], :void_p ], + # EAPI void ecore_exe_run_priority_set(int pri); + [ :ecore_exe_run_priority_set, [ :int ], :void ], + # EAPI int ecore_exe_run_priority_get(void); + [ :ecore_exe_run_priority_get, [ ], :int ], + # EAPI Ecore_Exe *ecore_exe_run(const char *exe_cmd, const void *data); + [ :ecore_exe_run, [ :string, :void_p ], :ecore_exe_p ], + # EAPI Ecore_Exe *ecore_exe_pipe_run(const char *exe_cmd, Ecore_Exe_Flags flags, const void *data); + [ :ecore_exe_pipe_run, [ :string, :ecore_exe_flags, :void_p ], :ecore_exe_p ], + # EAPI void ecore_exe_callback_pre_free_set(Ecore_Exe *exe, Ecore_Exe_Cb func); + [ :ecore_exe_callback_pre_free_set, [ :ecore_exe_p, :ecore_exe_cb ], :void ], + # EAPI Eina_Bool ecore_exe_send(Ecore_Exe *exe, const void *data, int size); + [ :ecore_exe_send, [ :ecore_exe_p, :void_p, :int ], :eina_bool ], + # EAPI void ecore_exe_close_stdin(Ecore_Exe *exe); + [ :ecore_exe_close_stdin, [ :ecore_exe_p ], :void ], + # EAPI void ecore_exe_auto_limits_set(Ecore_Exe *exe, int start_bytes, int end_bytes, int start_lines, int end_lines); + [ :ecore_exe_auto_limits_set, [ :ecore_exe_p, :int, :int, :int, :int ], :void ], + # EAPI Ecore_Exe_Event_Data *ecore_exe_event_data_get(Ecore_Exe *exe, Ecore_Exe_Flags flags); + [ :ecore_exe_event_data_get, [ :ecore_exe_p, :ecore_exe_flags ], :ecore_exe_event_data_p ], + # EAPI void ecore_exe_event_data_free(Ecore_Exe_Event_Data *data); + [ :ecore_exe_event_data_free, [ :ecore_exe_event_data_p ], :void ], + # EAPI void *ecore_exe_free(Ecore_Exe *exe); + [ :ecore_exe_free, [ :ecore_exe_p ], :void_p ], + # EAPI pid_t ecore_exe_pid_get(const Ecore_Exe *exe); + [ :ecore_exe_pid_get, [ :ecore_exe_p ], :ulong ], + # EAPI void ecore_exe_tag_set(Ecore_Exe *exe, const char *tag); + [ :ecore_exe_tag_set, [ :ecore_exe_p, :string ], :void ], + # EAPI const char *ecore_exe_tag_get(const Ecore_Exe *exe); + [ :ecore_exe_tag_get, [ :ecore_exe_p ], :string ], + # EAPI const char *ecore_exe_cmd_get(const Ecore_Exe *exe); + [ :ecore_exe_cmd_get, [ :ecore_exe_p ], :string ], + # EAPI void *ecore_exe_data_get(const Ecore_Exe *exe); + [ :ecore_exe_data_get, [ :ecore_exe_p ], :void_p ], + # EAPI Ecore_Exe_Flags ecore_exe_flags_get(const Ecore_Exe *exe); + [ :ecore_exe_flags_get, [ :ecore_exe_p ], :ecore_exe_flags ], + # EAPI void ecore_exe_pause(Ecore_Exe *exe); + [ :ecore_exe_pause, [ :ecore_exe_p ], :void ], + # EAPI void ecore_exe_continue(Ecore_Exe *exe); + [ :ecore_exe_continue, [ :ecore_exe_p ], :void ], + # EAPI void ecore_exe_interrupt(Ecore_Exe *exe); + [ :ecore_exe_interrupt, [ :ecore_exe_p ], :void ], + # EAPI void ecore_exe_quit(Ecore_Exe *exe); + [ :ecore_exe_quit, [ :ecore_exe_p ], :void ], + # EAPI void ecore_exe_terminate(Ecore_Exe *exe); + [ :ecore_exe_terminate, [ :ecore_exe_p ], :void ], + # EAPI void ecore_exe_kill(Ecore_Exe *exe); + [ :ecore_exe_kill, [ :ecore_exe_p ], :void ], + # EAPI void ecore_exe_signal(Ecore_Exe *exe, int num); + [ :ecore_exe_signal, [ :ecore_exe_p, :int ], :void ], + # EAPI void ecore_exe_hup(Ecore_Exe *exe); + [ :ecore_exe_hup, [ :ecore_exe_p ], :void ], + # EAPI Ecore_Idler *ecore_idler_add(Ecore_Task_Cb func, const void *data); + [ :ecore_idler_add, [ :ecore_task_cb, :void_p ], :ecore_idler_p ], + # EAPI void *ecore_idler_del(Ecore_Idler *idler); + [ :ecore_idler_del, [ :ecore_idler_p ], :void_p ], + # EAPI Ecore_Idle_Enterer *ecore_idle_enterer_add(Ecore_Task_Cb func, const void *data); + [ :ecore_idle_enterer_add, [ :ecore_task_cb, :void_p ], :ecore_idle_enterer_p ], + # EAPI Ecore_Idle_Enterer *ecore_idle_enterer_before_add(Ecore_Task_Cb func, const void *data); + [ :ecore_idle_enterer_before_add, [ :ecore_task_cb, :void_p ], :ecore_idle_enterer_p ], + # EAPI void *ecore_idle_enterer_del(Ecore_Idle_Enterer *idle_enterer); + [ :ecore_idle_enterer_del, [ :ecore_idle_enterer_p ], :void_p ], + # EAPI Ecore_Idle_Exiter *ecore_idle_exiter_add(Ecore_Task_Cb func, const void *data); + [ :ecore_idle_exiter_add, [ :ecore_task_cb, :void_p ], :ecore_idle_exiter_p ], + # EAPI void *ecore_idle_exiter_del(Ecore_Idle_Exiter *idle_exiter); + [ :ecore_idle_exiter_del, [ :ecore_idle_exiter_p ], :void_p ], + # EAPI void ecore_main_loop_iterate(void); + [ :ecore_main_loop_iterate, [ ], :void ], + # EAPI void ecore_main_loop_select_func_set(Ecore_Select_Function func); + [ :ecore_main_loop_select_func_set, [ :ecore_select_function ], :void ], + # EAPI Ecore_Select_Function ecore_main_loop_select_func_get(void); + [ :ecore_main_loop_select_func_get, [ ], :ecore_select_function ], + # EAPI Eina_Bool ecore_main_loop_glib_integrate(void); + [ :ecore_main_loop_glib_integrate, [ ], :eina_bool ], + # EAPI void ecore_main_loop_glib_always_integrate_disable(void); + [ :ecore_main_loop_glib_always_integrate_disable, [ ], :void ], + # EAPI void ecore_main_loop_begin(void); + [ :ecore_main_loop_begin, [ ], :void ], + # EAPI void ecore_main_loop_quit(void); + [ :ecore_main_loop_quit, [ ], :void ], + # EAPI Ecore_Fd_Handler *ecore_main_fd_handler_add(int fd, Ecore_Fd_Handler_Flags flags, Ecore_Fd_Cb func, const void *data, Ecore_Fd_Cb buf_func, const void *buf_data); + [ :ecore_main_fd_handler_add, [ :int, :ecore_fd_handler_flags, :ecore_fd_cb, :void_p, :ecore_fd_cb, :void_p ], :ecore_fd_handler_p ], + # EAPI void ecore_main_fd_handler_prepare_callback_set(Ecore_Fd_Handler *fd_handler, Ecore_Fd_Prep_Cb func, const void *data); + [ :ecore_main_fd_handler_prepare_callback_set, [ :ecore_fd_handler_p, :ecore_fd_prep_cb, :void_p ], :void ], + # EAPI void *ecore_main_fd_handler_del(Ecore_Fd_Handler *fd_handler); + [ :ecore_main_fd_handler_del, [ :ecore_fd_handler_p ], :void_p ], + # EAPI int ecore_main_fd_handler_fd_get(Ecore_Fd_Handler *fd_handler); + [ :ecore_main_fd_handler_fd_get, [ :ecore_fd_handler_p ], :int ], + # EAPI Eina_Bool ecore_main_fd_handler_active_get(Ecore_Fd_Handler *fd_handler, Ecore_Fd_Handler_Flags flags); + [ :ecore_main_fd_handler_active_get, [ :ecore_fd_handler_p, :ecore_fd_handler_flags ], :eina_bool ], + # EAPI void ecore_main_fd_handler_active_set(Ecore_Fd_Handler *fd_handler, Ecore_Fd_Handler_Flags flags); + [ :ecore_main_fd_handler_active_set, [ :ecore_fd_handler_p, :ecore_fd_handler_flags ], :void ], + # EAPI Ecore_Win32_Handler *ecore_main_win32_handler_add(void *h, Ecore_Win32_Handle_Cb func, const void *data); + [ :ecore_main_win32_handler_add, [ :void_p, :ecore_win32_handle_cb, :void_p ], :ecore_win32_handler_p ], + # EAPI void *ecore_main_win32_handler_del(Ecore_Win32_Handler *win32_handler); + [ :ecore_main_win32_handler_del, [ :ecore_win32_handler_p ], :void_p ], + # EAPI Ecore_Pipe *ecore_pipe_add(Ecore_Pipe_Cb handler, const void *data); + [ :ecore_pipe_add, [ :ecore_pipe_cb, :void_p ], :ecore_pipe_p ], + # EAPI void *ecore_pipe_del(Ecore_Pipe *p); + [ :ecore_pipe_del, [ :ecore_pipe_p ], :void_p ], + # EAPI Eina_Bool ecore_pipe_write(Ecore_Pipe *p, const void *buffer, unsigned int nbytes); + [ :ecore_pipe_write, [ :ecore_pipe_p, :void_p, :uint ], :eina_bool ], + # EAPI void ecore_pipe_write_close(Ecore_Pipe *p); + [ :ecore_pipe_write_close, [ :ecore_pipe_p ], :void ], + # EAPI void ecore_pipe_read_close(Ecore_Pipe *p); + [ :ecore_pipe_read_close, [ :ecore_pipe_p ], :void ], + # EAPI Ecore_Thread *ecore_thread_run(Ecore_Thread_Cb func_blocking, Ecore_Thread_Cb func_end, Ecore_Thread_Cb func_cancel, const void *data); + [ :ecore_thread_run, [ :ecore_thread_cb, :ecore_thread_cb, :ecore_thread_cb, :void_p ], :ecore_thread_p ], + # EAPI Ecore_Thread *ecore_thread_feedback_run(Ecore_Thread_Cb func_heavy, Ecore_Thread_Notify_Cb func_notify, Ecore_Thread_Cb func_end, Ecore_Thread_Cb func_cancel, const void *data, Eina_Bool try_no_queue); + [ :ecore_thread_feedback_run, [ :ecore_thread_cb, :ecore_thread_notify_cb, :ecore_thread_cb, :ecore_thread_cb, :void_p, :eina_bool ], + :ecore_thread_p ], + # EAPI Eina_Bool ecore_thread_cancel(Ecore_Thread *thread); + [ :ecore_thread_cancel, [ :ecore_thread_p ], :eina_bool ], + # EAPI Eina_Bool ecore_thread_check(Ecore_Thread *thread); + [ :ecore_thread_check, [ :ecore_thread_p ], :eina_bool ], + # EAPI Eina_Bool ecore_thread_feedback(Ecore_Thread *thread, const void *msg_data); + [ :ecore_thread_feedback, [ :ecore_thread_p, :void_p ], :eina_bool ], + # EAPI Eina_Bool ecore_thread_reschedule(Ecore_Thread *thread); + [ :ecore_thread_reschedule, [ :ecore_thread_p ], :eina_bool ], + # EAPI int ecore_thread_active_get(void); + [ :ecore_thread_active_get, [ ], :int ], + # EAPI int ecore_thread_pending_get(void); + [ :ecore_thread_pending_get, [ ], :int ], + # EAPI int ecore_thread_pending_feedback_get(void); + [ :ecore_thread_pending_feedback_get, [ ], :int ], + # EAPI int ecore_thread_pending_total_get(void); + [ :ecore_thread_pending_total_get, [ ], :int ], + # EAPI int ecore_thread_max_get(void); + [ :ecore_thread_max_get, [ ], :int ], + # EAPI void ecore_thread_max_set(int num); + [ :ecore_thread_max_set, [ :int ], :void ], + # EAPI void ecore_thread_max_reset(void); + [ :ecore_thread_max_reset, [ ], :void ], + # EAPI int ecore_thread_available_get(void); + [ :ecore_thread_available_get, [ ], :int ], + # EAPI Eina_Bool ecore_thread_local_data_add(Ecore_Thread *thread, const char *key, void *value, Eina_Free_Cb cb, Eina_Bool direct); + [ :ecore_thread_local_data_add, [ :ecore_thread_p, :string, :void_p, :eina_free_cb, :eina_bool ], :eina_bool ], + # EAPI void *ecore_thread_local_data_set(Ecore_Thread *thread, const char *key, void *value, Eina_Free_Cb cb); + [ :ecore_thread_local_data_set, [ :ecore_thread_p, :string, :void_p, :eina_free_cb ], :void_p ], + # EAPI void *ecore_thread_local_data_find(Ecore_Thread *thread, const char *key); + [ :ecore_thread_local_data_find, [ :ecore_thread_p, :string ], :void_p ], + # EAPI Eina_Bool ecore_thread_local_data_del(Ecore_Thread *thread, const char *key); + [ :ecore_thread_local_data_del, [ :ecore_thread_p, :string ], :eina_bool ], + # EAPI Eina_Bool ecore_thread_global_data_add(const char *key, void *value, Eina_Free_Cb cb, Eina_Bool direct); + [ :ecore_thread_global_data_add, [ :string, :void_p, :eina_free_cb, :eina_bool ], :eina_bool ], + # EAPI void *ecore_thread_global_data_set(const char *key, void *value, Eina_Free_Cb cb); + [ :ecore_thread_global_data_set, [ :string, :void_p, :eina_free_cb ], :void_p ], + # EAPI void *ecore_thread_global_data_find(const char *key); + [ :ecore_thread_global_data_find, [ :string ], :void_p ], + # EAPI Eina_Bool ecore_thread_global_data_del(const char *key); + [ :ecore_thread_global_data_del, [ :string ], :eina_bool ], + # EAPI void *ecore_thread_global_data_wait(const char *key, double seconds); + [ :ecore_thread_global_data_wait, [ :string, :double ], :void_p ], + # EAPI double ecore_time_get(void); + [ :ecore_time_get, [ ], :double ], + # EAPI double ecore_time_unix_get(void); + [ :ecore_time_unix_get, [ ], :double ], + # EAPI double ecore_loop_time_get(void); + [ :ecore_loop_time_get, [ ], :double ], + # EAPI Ecore_Timer *ecore_timer_add(double in, Ecore_Task_Cb func, const void *data); + [ :ecore_timer_add, [ :double, :ecore_task_cb, :void_p ], :ecore_timer_p ], + # EAPI Ecore_Timer *ecore_timer_loop_add(double in, Ecore_Task_Cb func, const void *data); + [ :ecore_timer_loop_add, [ :double, :ecore_task_cb, :void_p ], :ecore_timer_p ], + # EAPI void *ecore_timer_del(Ecore_Timer *timer); + [ :ecore_timer_del, [ :ecore_timer_p ], :void_p ], + # EAPI void ecore_timer_interval_set(Ecore_Timer *timer, double in); + [ :ecore_timer_interval_set, [ :ecore_timer_p, :double ], :void ], + # EAPI double ecore_timer_interval_get(Ecore_Timer *timer); + [ :ecore_timer_interval_get, [ :ecore_timer_p ], :double ], + # EAPI void ecore_timer_freeze(Ecore_Timer *timer); + [ :ecore_timer_freeze, [ :ecore_timer_p ], :void ], + # EAPI void ecore_timer_thaw(Ecore_Timer *timer); + [ :ecore_timer_thaw, [ :ecore_timer_p ], :void ], + # EAPI void ecore_timer_delay(Ecore_Timer *timer, double add); + [ :ecore_timer_delay, [ :ecore_timer_p, :double ], :void ], + # EAPI double ecore_timer_pending_get(Ecore_Timer *timer); + [ :ecore_timer_pending_get, [ :ecore_timer_p ], :double ], + # EAPI double ecore_timer_precision_get(void); + [ :ecore_timer_precision_get, [ ], :double ], + # EAPI void ecore_timer_precision_set(double precision); + [ :ecore_timer_precision_set, [ :double ], :void ], + # EAPI Ecore_Animator *ecore_animator_add(Ecore_Task_Cb func, const void *data); + [ :ecore_animator_add, [ :ecore_task_cb, :void_p ], :ecore_animator_p ], + # EAPI void *ecore_animator_del(Ecore_Animator *animator); + [ :ecore_animator_del, [ :ecore_animator_p ], :void_p ], + # EAPI void ecore_animator_freeze(Ecore_Animator *animator); + [ :ecore_animator_freeze, [ :ecore_animator_p ], :void ], + # EAPI void ecore_animator_thaw(Ecore_Animator *animator); + [ :ecore_animator_thaw, [ :ecore_animator_p ], :void ], + # EAPI void ecore_animator_frametime_set(double frametime); + [ :ecore_animator_frametime_set, [ :double ], :void ], + # EAPI double ecore_animator_frametime_get(void); + [ :ecore_animator_frametime_get, [ ], :double ], + # EAPI void ecore_poller_poll_interval_set(Ecore_Poller_Type type, double poll_time); + [ :ecore_poller_poll_interval_set, [ :ecore_poller_type, :double ], :void ], + # EAPI double ecore_poller_poll_interval_get(Ecore_Poller_Type type); + [ :ecore_poller_poll_interval_get, [ :ecore_poller_type ], :double ], + # EAPI Eina_Bool ecore_poller_poller_interval_set(Ecore_Poller *poller, int interval); + [ :ecore_poller_poller_interval_set, [ :ecore_poller_p, :int ], :eina_bool ], + # EAPI int ecore_poller_poller_interval_get(Ecore_Poller *poller); + [ :ecore_poller_poller_interval_get, [ :ecore_poller_p ], :int ], + # EAPI Ecore_Poller *ecore_poller_add(Ecore_Poller_Type type, int interval, Ecore_Task_Cb func, const void *data); + [ :ecore_poller_add, [ :ecore_poller_type, :int, :ecore_task_cb, :void_p ], :ecore_poller_p ], + # EAPI void *ecore_poller_del(Ecore_Poller *poller); + [ :ecore_poller_del, [ :ecore_poller_p ], :void_p ], + # EAPI Ecore_Job *ecore_job_add(Ecore_Cb func, const void *data); + [ :ecore_job_add, [ :ecore_cb, :void_p ], :ecore_job_p ], + # EAPI void *ecore_job_del(Ecore_Job *job); + [ :ecore_job_del, [ :ecore_job_p ], :void_p ], + ] + # + attach_fcts fcts + end +end +# +# EOF diff --git a/lib/efl/ecore/ecore_con-ffi.rb b/lib/efl/ecore/ecore_con-ffi.rb new file mode 100644 index 0000000..57dac52 --- /dev/null +++ b/lib/efl/ecore/ecore_con-ffi.rb @@ -0,0 +1,230 @@ +#! /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 new file mode 100644 index 0000000..0c33926 --- /dev/null +++ b/lib/efl/ecore/ecore_evas-ffi.rb @@ -0,0 +1,378 @@ +#! /usr/bin/env ruby +# -*- coding: UTF-8 -*- +# +require 'efl/ffi' +# +module Efl + # + module Ecoreevas + def self.method_missing m, *args, &block + return Efl::API.send 'ecore_evas_'+m.to_s, *args, &block + end + end + # + module API + # + # + ffi_lib 'ecore' + # + # ENUMS + # typedef enum _Ecore_Evas_Engine_Type {...} Ecore_Evas_Engine_Type; + enum :ecore_evas_engine_type, [ :ecore_evas_engine_software_buffer, :ecore_evas_engine_software_xlib, :ecore_evas_engine_xrender_x11, + :ecore_evas_engine_opengl_x11, :ecore_evas_engine_software_xcb, :ecore_evas_engine_xrender_xcb, :ecore_evas_engine_software_gdi, + :ecore_evas_engine_software_ddraw, :ecore_evas_engine_direct3d, :ecore_evas_engine_opengl_glew, :ecore_evas_engine_cocoa, + :ecore_evas_engine_software_sdl, :ecore_evas_engine_directfb, :ecore_evas_engine_software_fb, :ecore_evas_engine_software_8_x11, + :ecore_evas_engine_software_16_x11, :ecore_evas_engine_software_16_ddraw, :ecore_evas_engine_software_16_wince, :ecore_evas_engine_opengl_sdl ] + # typedef enum _Ecore_Evas_Avoid_Damage_Type {...} Ecore_Evas_Avoid_Damage_Type; + enum :ecore_evas_avoid_damage_type, [ :ecore_evas_avoid_damage_none, 0, :ecore_evas_avoid_damage_expose, 1, :ecore_evas_avoid_damage_built_in, + 2 ] + # typedef enum _Ecore_Evas_Object_Associate_Flags {...} Ecore_Evas_Object_Associate_Flags; + enum :ecore_evas_object_associate_flags, [ :ecore_evas_object_associate_base, 0, :ecore_evas_object_associate_stack, 1, + :ecore_evas_object_associate_layer, 1, :ecore_evas_object_associate_del, 1 ] + # + # TYPEDEFS + # typedef unsigned int Ecore_X_Window; + typedef :uint, :ecore_x_window + # typedef struct _Ecore_DirectFB_Window Ecore_DirectFB_Window; + typedef :pointer, :ecore_directfb_window + typedef :pointer, :ecore_directfb_window_p + # typedef struct _Ecore_Win32_Window Ecore_Win32_Window; + typedef :pointer, :ecore_win32_window + typedef :pointer, :ecore_win32_window_p + # typedef struct _Ecore_WinCE_Window Ecore_WinCE_Window; + typedef :pointer, :ecore_wince_window + typedef :pointer, :ecore_wince_window_p + # typedef struct _Ecore_Evas Ecore_Evas; + typedef :pointer, :ecore_evas + typedef :pointer, :ecore_evas_p + # + # CALLBACKS + # + # FUNCTIONS + fcts = [ + # EAPI int ecore_evas_engine_type_supported_get(Ecore_Evas_Engine_Type engine); + [ :ecore_evas_engine_type_supported_get, [ :ecore_evas_engine_type ], :int ], + # EAPI int ecore_evas_init(void); + [ :ecore_evas_init, [ ], :int ], + # EAPI int ecore_evas_shutdown(void); + [ :ecore_evas_shutdown, [ ], :int ], + # EAPI void ecore_evas_app_comp_sync_set(Eina_Bool do_sync); + [ :ecore_evas_app_comp_sync_set, [ :eina_bool ], :void ], + # EAPI Eina_Bool ecore_evas_app_comp_sync_get(void); + [ :ecore_evas_app_comp_sync_get, [ ], :eina_bool ], + # EAPI Eina_List *ecore_evas_engines_get(void); + [ :ecore_evas_engines_get, [ ], :eina_list_p ], + # EAPI void ecore_evas_engines_free(Eina_List *engines); + [ :ecore_evas_engines_free, [ :eina_list_p ], :void ], + # EAPI Ecore_Evas *ecore_evas_new(const char *engine_name, int x, int y, int w, int h, const char *extra_options); + [ :ecore_evas_new, [ :string, :int, :int, :int, :int, :string ], :ecore_evas_p ], + # EAPI Ecore_Evas *ecore_evas_software_x11_new(const char *disp_name, Ecore_X_Window parent, int x, int y, int w, int h); + [ :ecore_evas_software_x11_new, [ :string, :uint, :int, :int, :int, :int ], :ecore_evas_p ], + # EAPI Ecore_X_Window ecore_evas_software_x11_window_get(const Ecore_Evas *ee); + [ :ecore_evas_software_x11_window_get, [ :ecore_evas_p ], :uint ], + # EAPI void ecore_evas_software_x11_direct_resize_set(Ecore_Evas *ee, Eina_Bool on); + [ :ecore_evas_software_x11_direct_resize_set, [ :ecore_evas_p, :eina_bool ], :void ], + # EAPI Eina_Bool ecore_evas_software_x11_direct_resize_get(const Ecore_Evas *ee); + [ :ecore_evas_software_x11_direct_resize_get, [ :ecore_evas_p ], :eina_bool ], + # EAPI void ecore_evas_software_x11_extra_event_window_add(Ecore_Evas *ee, Ecore_X_Window win); + [ :ecore_evas_software_x11_extra_event_window_add, [ :ecore_evas_p, :uint ], :void ], + # EAPI Ecore_Evas *ecore_evas_gl_x11_new(const char *disp_name, Ecore_X_Window parent, int x, int y, int w, int h); + [ :ecore_evas_gl_x11_new, [ :string, :uint, :int, :int, :int, :int ], :ecore_evas_p ], + # EAPI Ecore_Evas *ecore_evas_gl_x11_options_new(const char *disp_name, Ecore_X_Window parent, int x, int y, int w, int h, const int *opt); + [ :ecore_evas_gl_x11_options_new, [ :string, :uint, :int, :int, :int, :int, :int_p ], :ecore_evas_p ], + # EAPI Ecore_X_Window ecore_evas_gl_x11_window_get(const Ecore_Evas *ee); + [ :ecore_evas_gl_x11_window_get, [ :ecore_evas_p ], :uint ], + # EAPI void ecore_evas_gl_x11_direct_resize_set(Ecore_Evas *ee, Eina_Bool on); + [ :ecore_evas_gl_x11_direct_resize_set, [ :ecore_evas_p, :eina_bool ], :void ], + # EAPI Eina_Bool ecore_evas_gl_x11_direct_resize_get(const Ecore_Evas *ee); + [ :ecore_evas_gl_x11_direct_resize_get, [ :ecore_evas_p ], :eina_bool ], + # EAPI void ecore_evas_gl_x11_extra_event_window_add(Ecore_Evas *ee, Ecore_X_Window win); + [ :ecore_evas_gl_x11_extra_event_window_add, [ :ecore_evas_p, :uint ], :void ], + # EAPI void ecore_evas_gl_x11_pre_post_swap_callback_set(const Ecore_Evas *ee, void *data, void (*pre_cb) (void *data, Evas *e), void (*post_cb) (void *data, Evas *e)); + # FIXME + # EAPI Ecore_Evas *ecore_evas_xrender_x11_new(const char *disp_name, Ecore_X_Window parent, int x, int y, int w, int h); + [ :ecore_evas_xrender_x11_new, [ :string, :uint, :int, :int, :int, :int ], :ecore_evas_p ], + # EAPI Ecore_X_Window ecore_evas_xrender_x11_window_get(const Ecore_Evas *ee); + [ :ecore_evas_xrender_x11_window_get, [ :ecore_evas_p ], :uint ], + # EAPI void ecore_evas_xrender_x11_direct_resize_set(Ecore_Evas *ee, Eina_Bool on); + [ :ecore_evas_xrender_x11_direct_resize_set, [ :ecore_evas_p, :eina_bool ], :void ], + # EAPI Eina_Bool ecore_evas_xrender_x11_direct_resize_get(const Ecore_Evas *ee); + [ :ecore_evas_xrender_x11_direct_resize_get, [ :ecore_evas_p ], :eina_bool ], + # EAPI void ecore_evas_xrender_x11_extra_event_window_add(Ecore_Evas *ee, Ecore_X_Window win); + [ :ecore_evas_xrender_x11_extra_event_window_add, [ :ecore_evas_p, :uint ], :void ], + # EAPI Ecore_Evas *ecore_evas_software_x11_8_new(const char *disp_name, Ecore_X_Window parent, int x, int y, int w, int h); + [ :ecore_evas_software_x11_8_new, [ :string, :uint, :int, :int, :int, :int ], :ecore_evas_p ], + # EAPI Ecore_X_Window ecore_evas_software_x11_8_window_get(const Ecore_Evas *ee); + [ :ecore_evas_software_x11_8_window_get, [ :ecore_evas_p ], :uint ], + # EAPI Ecore_X_Window ecore_evas_software_x11_8_subwindow_get(const Ecore_Evas *ee); + [ :ecore_evas_software_x11_8_subwindow_get, [ :ecore_evas_p ], :uint ], + # EAPI void ecore_evas_software_x11_8_direct_resize_set(Ecore_Evas *ee, Eina_Bool on); + [ :ecore_evas_software_x11_8_direct_resize_set, [ :ecore_evas_p, :eina_bool ], :void ], + # EAPI Eina_Bool ecore_evas_software_x11_8_direct_resize_get(const Ecore_Evas *ee); + [ :ecore_evas_software_x11_8_direct_resize_get, [ :ecore_evas_p ], :eina_bool ], + # EAPI void ecore_evas_software_x11_8_extra_event_window_add(Ecore_Evas *ee, Ecore_X_Window win); + [ :ecore_evas_software_x11_8_extra_event_window_add, [ :ecore_evas_p, :uint ], :void ], + # EAPI Ecore_Evas *ecore_evas_software_x11_16_new(const char *disp_name, Ecore_X_Window parent, int x, int y, int w, int h); + [ :ecore_evas_software_x11_16_new, [ :string, :uint, :int, :int, :int, :int ], :ecore_evas_p ], + # EAPI Ecore_X_Window ecore_evas_software_x11_16_window_get(const Ecore_Evas *ee); + [ :ecore_evas_software_x11_16_window_get, [ :ecore_evas_p ], :uint ], + # EAPI void ecore_evas_software_x11_16_direct_resize_set(Ecore_Evas *ee, Eina_Bool on); + [ :ecore_evas_software_x11_16_direct_resize_set, [ :ecore_evas_p, :eina_bool ], :void ], + # EAPI Eina_Bool ecore_evas_software_x11_16_direct_resize_get(const Ecore_Evas *ee); + [ :ecore_evas_software_x11_16_direct_resize_get, [ :ecore_evas_p ], :eina_bool ], + # EAPI void ecore_evas_software_x11_16_extra_event_window_add(Ecore_Evas *ee, Ecore_X_Window win); + [ :ecore_evas_software_x11_16_extra_event_window_add, [ :ecore_evas_p, :uint ], :void ], + # EAPI Ecore_Evas *ecore_evas_fb_new(const char *disp_name, int rotation, int w, int h); + [ :ecore_evas_fb_new, [ :string, :int, :int, :int ], :ecore_evas_p ], + # EAPI Ecore_Evas *ecore_evas_directfb_new(const char *disp_name, int windowed, int x, int y, int w, int h); + [ :ecore_evas_directfb_new, [ :string, :int, :int, :int, :int, :int ], :ecore_evas_p ], + # EAPI Ecore_DirectFB_Window *ecore_evas_directfb_window_get(const Ecore_Evas *ee); + [ :ecore_evas_directfb_window_get, [ :ecore_evas_p ], :ecore_directfb_window_p ], + # EAPI Ecore_Evas *ecore_evas_buffer_new(int w, int h); + [ :ecore_evas_buffer_new, [ :int, :int ], :ecore_evas_p ], + # EAPI Ecore_Evas *ecore_evas_buffer_allocfunc_new(int w, int h, void *(*alloc_func) (void *data, int size), void (*free_func) (void *data, void *pix), const void *data); + # FIXME + # EAPI const void *ecore_evas_buffer_pixels_get(Ecore_Evas *ee); + [ :ecore_evas_buffer_pixels_get, [ :ecore_evas_p ], :void_p ], + # EAPI Evas_Object *ecore_evas_object_image_new(Ecore_Evas *ee_target); + [ :ecore_evas_object_image_new, [ :ecore_evas_p ], :evas_object_p ], + # EAPI Ecore_Evas *ecore_evas_object_ecore_evas_get(Evas_Object *obj); + [ :ecore_evas_object_ecore_evas_get, [ :evas_object_p ], :ecore_evas_p ], + # EAPI Evas *ecore_evas_object_evas_get(Evas_Object *obj); + [ :ecore_evas_object_evas_get, [ :evas_object_p ], :evas_p ], + # EAPI Ecore_Evas *ecore_evas_software_gdi_new(Ecore_Win32_Window *parent, int x, int y, int width, int height); + [ :ecore_evas_software_gdi_new, [ :ecore_win32_window_p, :int, :int, :int, :int ], :ecore_evas_p ], + # EAPI Ecore_Evas *ecore_evas_software_ddraw_new(Ecore_Win32_Window *parent, int x, int y, int width, int height); + [ :ecore_evas_software_ddraw_new, [ :ecore_win32_window_p, :int, :int, :int, :int ], :ecore_evas_p ], + # EAPI Ecore_Evas *ecore_evas_software_16_ddraw_new(Ecore_Win32_Window *parent, int x, int y, int width, int height); + [ :ecore_evas_software_16_ddraw_new, [ :ecore_win32_window_p, :int, :int, :int, :int ], :ecore_evas_p ], + # EAPI Ecore_Evas *ecore_evas_direct3d_new(Ecore_Win32_Window *parent, int x, int y, int width, int height); + [ :ecore_evas_direct3d_new, [ :ecore_win32_window_p, :int, :int, :int, :int ], :ecore_evas_p ], + # EAPI Ecore_Evas *ecore_evas_gl_glew_new(Ecore_Win32_Window *parent, int x, int y, int width, int height); + [ :ecore_evas_gl_glew_new, [ :ecore_win32_window_p, :int, :int, :int, :int ], :ecore_evas_p ], + # EAPI Ecore_Win32_Window *ecore_evas_win32_window_get(const Ecore_Evas *ee); + [ :ecore_evas_win32_window_get, [ :ecore_evas_p ], :ecore_win32_window_p ], + # EAPI Ecore_Evas *ecore_evas_sdl_new(const char* name, int w, int h, int fullscreen, int hwsurface, int noframe, int alpha); + [ :ecore_evas_sdl_new, [ :string, :int, :int, :int, :int, :int, :int ], :ecore_evas_p ], + # EAPI Ecore_Evas *ecore_evas_sdl16_new(const char* name, int w, int h, int fullscreen, int hwsurface, int noframe, int alpha); + [ :ecore_evas_sdl16_new, [ :string, :int, :int, :int, :int, :int, :int ], :ecore_evas_p ], + # EAPI Ecore_Evas *ecore_evas_gl_sdl_new(const char* name, int w, int h, int fullscreen, int noframe); + [ :ecore_evas_gl_sdl_new, [ :string, :int, :int, :int, :int ], :ecore_evas_p ], + # EAPI Ecore_Evas *ecore_evas_software_wince_new(Ecore_WinCE_Window *parent, int x, int y, int width, int height); + [ :ecore_evas_software_wince_new, [ :ecore_wince_window_p, :int, :int, :int, :int ], :ecore_evas_p ], + # EAPI Ecore_Evas *ecore_evas_software_wince_fb_new(Ecore_WinCE_Window *parent, int x, int y, int width, int height); + [ :ecore_evas_software_wince_fb_new, [ :ecore_wince_window_p, :int, :int, :int, :int ], :ecore_evas_p ], + # EAPI Ecore_Evas *ecore_evas_software_wince_gapi_new(Ecore_WinCE_Window *parent, int x, int y, int width, int height); + [ :ecore_evas_software_wince_gapi_new, [ :ecore_wince_window_p, :int, :int, :int, :int ], :ecore_evas_p ], + # EAPI Ecore_Evas *ecore_evas_software_wince_ddraw_new(Ecore_WinCE_Window *parent, int x, int y, int width, int height); + [ :ecore_evas_software_wince_ddraw_new, [ :ecore_wince_window_p, :int, :int, :int, :int ], :ecore_evas_p ], + # EAPI Ecore_Evas *ecore_evas_software_wince_gdi_new(Ecore_WinCE_Window *parent, int x, int y, int width, int height); + [ :ecore_evas_software_wince_gdi_new, [ :ecore_wince_window_p, :int, :int, :int, :int ], :ecore_evas_p ], + # EAPI Ecore_WinCE_Window *ecore_evas_software_wince_window_get(const Ecore_Evas *ee); + [ :ecore_evas_software_wince_window_get, [ :ecore_evas_p ], :ecore_wince_window_p ], + # EAPI Ecore_Evas *ecore_evas_cocoa_new(const char* name, int w, int h); + [ :ecore_evas_cocoa_new, [ :string, :int, :int ], :ecore_evas_p ], + # EAPI const char *ecore_evas_engine_name_get(const Ecore_Evas *ee); + [ :ecore_evas_engine_name_get, [ :ecore_evas_p ], :string ], + # EAPI Ecore_Evas *ecore_evas_ecore_evas_get(const Evas *e); + [ :ecore_evas_ecore_evas_get, [ :evas_p ], :ecore_evas_p ], + # EAPI void ecore_evas_free(Ecore_Evas *ee); + [ :ecore_evas_free, [ :ecore_evas_p ], :void ], + # EAPI void *ecore_evas_data_get(const Ecore_Evas *ee, const char *key); + [ :ecore_evas_data_get, [ :ecore_evas_p, :string ], :void_p ], + # EAPI void ecore_evas_data_set(Ecore_Evas *ee, const char *key, const void *data); + [ :ecore_evas_data_set, [ :ecore_evas_p, :string, :void_p ], :void ], + # EAPI void ecore_evas_callback_resize_set(Ecore_Evas *ee, void (*func) (Ecore_Evas *ee)); + # FIXME + # EAPI void ecore_evas_callback_move_set(Ecore_Evas *ee, void (*func) (Ecore_Evas *ee)); + # FIXME + # EAPI void ecore_evas_callback_show_set(Ecore_Evas *ee, void (*func) (Ecore_Evas *ee)); + # FIXME + # EAPI void ecore_evas_callback_hide_set(Ecore_Evas *ee, void (*func) (Ecore_Evas *ee)); + # FIXME + # EAPI void ecore_evas_callback_delete_request_set(Ecore_Evas *ee, void (*func) (Ecore_Evas *ee)); + # FIXME + # EAPI void ecore_evas_callback_destroy_set(Ecore_Evas *ee, void (*func) (Ecore_Evas *ee)); + # FIXME + # EAPI void ecore_evas_callback_focus_in_set(Ecore_Evas *ee, void (*func) (Ecore_Evas *ee)); + # FIXME + # EAPI void ecore_evas_callback_focus_out_set(Ecore_Evas *ee, void (*func) (Ecore_Evas *ee)); + # FIXME + # EAPI void ecore_evas_callback_sticky_set(Ecore_Evas *ee, void (*func) (Ecore_Evas *ee)); + # FIXME + # EAPI void ecore_evas_callback_unsticky_set(Ecore_Evas *ee, void (*func) (Ecore_Evas *ee)); + # FIXME + # EAPI void ecore_evas_callback_mouse_in_set(Ecore_Evas *ee, void (*func) (Ecore_Evas *ee)); + # FIXME + # EAPI void ecore_evas_callback_mouse_out_set(Ecore_Evas *ee, void (*func) (Ecore_Evas *ee)); + # FIXME + # EAPI void ecore_evas_callback_pre_render_set(Ecore_Evas *ee, void (*func) (Ecore_Evas *ee)); + # FIXME + # EAPI void ecore_evas_callback_post_render_set(Ecore_Evas *ee, void (*func) (Ecore_Evas *ee)); + # FIXME + # EAPI void ecore_evas_callback_pre_free_set(Ecore_Evas *ee, void (*func) (Ecore_Evas *ee)); + # FIXME + # EAPI Evas *ecore_evas_get(const Ecore_Evas *ee); + [ :ecore_evas_get, [ :ecore_evas_p ], :evas_p ], + # EAPI void ecore_evas_move(Ecore_Evas *ee, int x, int y); + [ :ecore_evas_move, [ :ecore_evas_p, :int, :int ], :void ], + # EAPI void ecore_evas_managed_move(Ecore_Evas *ee, int x, int y); + [ :ecore_evas_managed_move, [ :ecore_evas_p, :int, :int ], :void ], + # EAPI void ecore_evas_resize(Ecore_Evas *ee, int w, int h); + [ :ecore_evas_resize, [ :ecore_evas_p, :int, :int ], :void ], + # EAPI void ecore_evas_move_resize(Ecore_Evas *ee, int x, int y, int w, int h); + [ :ecore_evas_move_resize, [ :ecore_evas_p, :int, :int, :int, :int ], :void ], + # EAPI void ecore_evas_geometry_get(const Ecore_Evas *ee, int *x, int *y, int *w, int *h); + [ :ecore_evas_geometry_get, [ :ecore_evas_p, :int_p, :int_p, :int_p, :int_p ], :void ], + # EAPI void ecore_evas_rotation_set(Ecore_Evas *ee, int rot); + [ :ecore_evas_rotation_set, [ :ecore_evas_p, :int ], :void ], + # EAPI void ecore_evas_rotation_with_resize_set(Ecore_Evas *ee, int rot); + [ :ecore_evas_rotation_with_resize_set, [ :ecore_evas_p, :int ], :void ], + # EAPI int ecore_evas_rotation_get(const Ecore_Evas *ee); + [ :ecore_evas_rotation_get, [ :ecore_evas_p ], :int ], + # EAPI void ecore_evas_shaped_set(Ecore_Evas *ee, Eina_Bool shaped); + [ :ecore_evas_shaped_set, [ :ecore_evas_p, :eina_bool ], :void ], + # EAPI Eina_Bool ecore_evas_shaped_get(const Ecore_Evas *ee); + [ :ecore_evas_shaped_get, [ :ecore_evas_p ], :eina_bool ], + # EAPI void ecore_evas_alpha_set(Ecore_Evas *ee, Eina_Bool alpha); + [ :ecore_evas_alpha_set, [ :ecore_evas_p, :eina_bool ], :void ], + # EAPI Eina_Bool ecore_evas_alpha_get(const Ecore_Evas *ee); + [ :ecore_evas_alpha_get, [ :ecore_evas_p ], :eina_bool ], + # EAPI void ecore_evas_transparent_set(Ecore_Evas *ee, Eina_Bool transparent); + [ :ecore_evas_transparent_set, [ :ecore_evas_p, :eina_bool ], :void ], + # EAPI Eina_Bool ecore_evas_transparent_get(const Ecore_Evas *ee); + [ :ecore_evas_transparent_get, [ :ecore_evas_p ], :eina_bool ], + # EAPI void ecore_evas_show(Ecore_Evas *ee); + [ :ecore_evas_show, [ :ecore_evas_p ], :void ], + # EAPI void ecore_evas_hide(Ecore_Evas *ee); + [ :ecore_evas_hide, [ :ecore_evas_p ], :void ], + # EAPI int ecore_evas_visibility_get(const Ecore_Evas *ee); + [ :ecore_evas_visibility_get, [ :ecore_evas_p ], :int ], + # EAPI void ecore_evas_raise(Ecore_Evas *ee); + [ :ecore_evas_raise, [ :ecore_evas_p ], :void ], + # EAPI void ecore_evas_lower(Ecore_Evas *ee); + [ :ecore_evas_lower, [ :ecore_evas_p ], :void ], + # EAPI void ecore_evas_activate(Ecore_Evas *ee); + [ :ecore_evas_activate, [ :ecore_evas_p ], :void ], + # EAPI void ecore_evas_title_set(Ecore_Evas *ee, const char *t); + [ :ecore_evas_title_set, [ :ecore_evas_p, :string ], :void ], + # EAPI const char *ecore_evas_title_get(const Ecore_Evas *ee); + [ :ecore_evas_title_get, [ :ecore_evas_p ], :string ], + # EAPI void ecore_evas_name_class_set(Ecore_Evas *ee, const char *n, const char *c); + [ :ecore_evas_name_class_set, [ :ecore_evas_p, :string, :string ], :void ], + # EAPI void ecore_evas_name_class_get(const Ecore_Evas *ee, const char **n, const char **c); + [ :ecore_evas_name_class_get, [ :ecore_evas_p, :string_array, :string_array ], :void ], + # EAPI void ecore_evas_size_min_set(Ecore_Evas *ee, int w, int h); + [ :ecore_evas_size_min_set, [ :ecore_evas_p, :int, :int ], :void ], + # EAPI void ecore_evas_size_min_get(const Ecore_Evas *ee, int *w, int *h); + [ :ecore_evas_size_min_get, [ :ecore_evas_p, :int_p, :int_p ], :void ], + # EAPI void ecore_evas_size_max_set(Ecore_Evas *ee, int w, int h); + [ :ecore_evas_size_max_set, [ :ecore_evas_p, :int, :int ], :void ], + # EAPI void ecore_evas_size_max_get(const Ecore_Evas *ee, int *w, int *h); + [ :ecore_evas_size_max_get, [ :ecore_evas_p, :int_p, :int_p ], :void ], + # EAPI void ecore_evas_size_base_set(Ecore_Evas *ee, int w, int h); + [ :ecore_evas_size_base_set, [ :ecore_evas_p, :int, :int ], :void ], + # EAPI void ecore_evas_size_base_get(const Ecore_Evas *ee, int *w, int *h); + [ :ecore_evas_size_base_get, [ :ecore_evas_p, :int_p, :int_p ], :void ], + # EAPI void ecore_evas_size_step_set(Ecore_Evas *ee, int w, int h); + [ :ecore_evas_size_step_set, [ :ecore_evas_p, :int, :int ], :void ], + # EAPI void ecore_evas_size_step_get(const Ecore_Evas *ee, int *w, int *h); + [ :ecore_evas_size_step_get, [ :ecore_evas_p, :int_p, :int_p ], :void ], + # EAPI void ecore_evas_cursor_set(Ecore_Evas *ee, const char *file, int layer, int hot_x, int hot_y); + [ :ecore_evas_cursor_set, [ :ecore_evas_p, :string, :int, :int, :int ], :void ], + # EAPI void ecore_evas_object_cursor_set(Ecore_Evas *ee, Evas_Object *obj, int layer, int hot_x, int hot_y); + [ :ecore_evas_object_cursor_set, [ :ecore_evas_p, :evas_object_p, :int, :int, :int ], :void ], + # EAPI void ecore_evas_cursor_get(const Ecore_Evas *ee, Evas_Object **obj, int *layer, int *hot_x, int *hot_y); + [ :ecore_evas_cursor_get, [ :ecore_evas_p, :evas_object_pp, :int_p, :int_p, :int_p ], :void ], + # EAPI void ecore_evas_layer_set(Ecore_Evas *ee, int layer); + [ :ecore_evas_layer_set, [ :ecore_evas_p, :int ], :void ], + # EAPI int ecore_evas_layer_get(const Ecore_Evas *ee); + [ :ecore_evas_layer_get, [ :ecore_evas_p ], :int ], + # EAPI void ecore_evas_focus_set(Ecore_Evas *ee, Eina_Bool on); + [ :ecore_evas_focus_set, [ :ecore_evas_p, :eina_bool ], :void ], + # EAPI Eina_Bool ecore_evas_focus_get(const Ecore_Evas *ee); + [ :ecore_evas_focus_get, [ :ecore_evas_p ], :eina_bool ], + # EAPI void ecore_evas_iconified_set(Ecore_Evas *ee, Eina_Bool on); + [ :ecore_evas_iconified_set, [ :ecore_evas_p, :eina_bool ], :void ], + # EAPI Eina_Bool ecore_evas_iconified_get(const Ecore_Evas *ee); + [ :ecore_evas_iconified_get, [ :ecore_evas_p ], :eina_bool ], + # EAPI void ecore_evas_borderless_set(Ecore_Evas *ee, Eina_Bool on); + [ :ecore_evas_borderless_set, [ :ecore_evas_p, :eina_bool ], :void ], + # EAPI Eina_Bool ecore_evas_borderless_get(const Ecore_Evas *ee); + [ :ecore_evas_borderless_get, [ :ecore_evas_p ], :eina_bool ], + # EAPI void ecore_evas_override_set(Ecore_Evas *ee, Eina_Bool on); + [ :ecore_evas_override_set, [ :ecore_evas_p, :eina_bool ], :void ], + # EAPI Eina_Bool ecore_evas_override_get(const Ecore_Evas *ee); + [ :ecore_evas_override_get, [ :ecore_evas_p ], :eina_bool ], + # EAPI void ecore_evas_maximized_set(Ecore_Evas *ee, Eina_Bool on); + [ :ecore_evas_maximized_set, [ :ecore_evas_p, :eina_bool ], :void ], + # EAPI Eina_Bool ecore_evas_maximized_get(const Ecore_Evas *ee); + [ :ecore_evas_maximized_get, [ :ecore_evas_p ], :eina_bool ], + # EAPI void ecore_evas_fullscreen_set(Ecore_Evas *ee, Eina_Bool on); + [ :ecore_evas_fullscreen_set, [ :ecore_evas_p, :eina_bool ], :void ], + # EAPI Eina_Bool ecore_evas_fullscreen_get(const Ecore_Evas *ee); + [ :ecore_evas_fullscreen_get, [ :ecore_evas_p ], :eina_bool ], + # EAPI void ecore_evas_avoid_damage_set(Ecore_Evas *ee, Ecore_Evas_Avoid_Damage_Type on); + [ :ecore_evas_avoid_damage_set, [ :ecore_evas_p, :ecore_evas_avoid_damage_type ], :void ], + # EAPI Ecore_Evas_Avoid_Damage_Type ecore_evas_avoid_damage_get(const Ecore_Evas *ee); + [ :ecore_evas_avoid_damage_get, [ :ecore_evas_p ], :ecore_evas_avoid_damage_type ], + # EAPI void ecore_evas_withdrawn_set(Ecore_Evas *ee, Eina_Bool withdrawn); + [ :ecore_evas_withdrawn_set, [ :ecore_evas_p, :eina_bool ], :void ], + # EAPI Eina_Bool ecore_evas_withdrawn_get(const Ecore_Evas *ee); + [ :ecore_evas_withdrawn_get, [ :ecore_evas_p ], :eina_bool ], + # EAPI void ecore_evas_sticky_set(Ecore_Evas *ee, Eina_Bool sticky); + [ :ecore_evas_sticky_set, [ :ecore_evas_p, :eina_bool ], :void ], + # EAPI Eina_Bool ecore_evas_sticky_get(const Ecore_Evas *ee); + [ :ecore_evas_sticky_get, [ :ecore_evas_p ], :eina_bool ], + # EAPI void ecore_evas_ignore_events_set(Ecore_Evas *ee, Eina_Bool ignore); + [ :ecore_evas_ignore_events_set, [ :ecore_evas_p, :eina_bool ], :void ], + # EAPI Eina_Bool ecore_evas_ignore_events_get(const Ecore_Evas *ee); + [ :ecore_evas_ignore_events_get, [ :ecore_evas_p ], :eina_bool ], + # EAPI void ecore_evas_manual_render_set(Ecore_Evas *ee, Eina_Bool manual_render); + [ :ecore_evas_manual_render_set, [ :ecore_evas_p, :eina_bool ], :void ], + # EAPI Eina_Bool ecore_evas_manual_render_get(const Ecore_Evas *ee); + [ :ecore_evas_manual_render_get, [ :ecore_evas_p ], :eina_bool ], + # EAPI void ecore_evas_manual_render(Ecore_Evas *ee); + [ :ecore_evas_manual_render, [ :ecore_evas_p ], :void ], + # EAPI void ecore_evas_comp_sync_set(Ecore_Evas *ee, Eina_Bool do_sync); + [ :ecore_evas_comp_sync_set, [ :ecore_evas_p, :eina_bool ], :void ], + # EAPI Eina_Bool ecore_evas_comp_sync_get(const Ecore_Evas *ee); + [ :ecore_evas_comp_sync_get, [ :ecore_evas_p ], :eina_bool ], + # EAPI Ecore_Window ecore_evas_window_get(const Ecore_Evas *ee); + [ :ecore_evas_window_get, [ :ecore_evas_p ], :uintptr_t ], + # EAPI Eina_Bool ecore_evas_object_associate(Ecore_Evas *ee, Evas_Object *obj, Ecore_Evas_Object_Associate_Flags flags); + [ :ecore_evas_object_associate, [ :ecore_evas_p, :evas_object_p, :ecore_evas_object_associate_flags ], :eina_bool ], + # EAPI Eina_Bool ecore_evas_object_dissociate(Ecore_Evas *ee, Evas_Object *obj); + [ :ecore_evas_object_dissociate, [ :ecore_evas_p, :evas_object_p ], :eina_bool ], + # EAPI Evas_Object *ecore_evas_object_associate_get(const Ecore_Evas *ee); + [ :ecore_evas_object_associate_get, [ :ecore_evas_p ], :evas_object_p ], + # EAPI unsigned char ecore_getopt_callback_ecore_evas_list_engines(const Ecore_Getopt *parser, const Ecore_Getopt_Desc *desc, const char *str, void *data, Ecore_Getopt_Value *storage); + [ :ecore_getopt_callback_ecore_evas_list_engines, [ :ecore_getopt_p, :ecore_getopt_desc_p, :string, :void_p, :ecore_getopt_value_p ], :uchar + ], + # EAPI Eina_List *ecore_evas_ecore_evas_list_get(void); + [ :ecore_evas_ecore_evas_list_get, [ ], :eina_list_p ], + # EAPI void ecore_evas_x11_leader_set(Ecore_Evas *ee, Ecore_X_Window win); + [ :ecore_evas_x11_leader_set, [ :ecore_evas_p, :uint ], :void ], + # EAPI Ecore_X_Window ecore_evas_x11_leader_get(Ecore_Evas *ee); + [ :ecore_evas_x11_leader_get, [ :ecore_evas_p ], :uint ], + # EAPI void ecore_evas_x11_leader_default_set(Ecore_Evas *ee); + [ :ecore_evas_x11_leader_default_set, [ :ecore_evas_p ], :void ], + # EAPI void ecore_evas_x11_shape_input_rectangle_set(Ecore_Evas *ee, int x, int y, int w, int h); + [ :ecore_evas_x11_shape_input_rectangle_set, [ :ecore_evas_p, :int, :int, :int, :int ], :void ], + # EAPI void ecore_evas_x11_shape_input_rectangle_add(Ecore_Evas *ee, int x, int y, int w, int h); + [ :ecore_evas_x11_shape_input_rectangle_add, [ :ecore_evas_p, :int, :int, :int, :int ], :void ], + # EAPI void ecore_evas_x11_shape_input_rectangle_subtract(Ecore_Evas *ee, int x, int y, int w, int h); + [ :ecore_evas_x11_shape_input_rectangle_subtract, [ :ecore_evas_p, :int, :int, :int, :int ], :void ], + # EAPI void ecore_evas_x11_shape_input_empty(Ecore_Evas *ee); + [ :ecore_evas_x11_shape_input_empty, [ :ecore_evas_p ], :void ], + # EAPI void ecore_evas_x11_shape_input_reset(Ecore_Evas *ee); + [ :ecore_evas_x11_shape_input_reset, [ :ecore_evas_p ], :void ], + # EAPI void ecore_evas_x11_shape_input_apply(Ecore_Evas *ee); + [ :ecore_evas_x11_shape_input_apply, [ :ecore_evas_p ], :void ], + ] + # + attach_fcts fcts + end +end +# +# EOF diff --git a/lib/efl/ecore/ecore_fb-ffi.rb b/lib/efl/ecore/ecore_fb-ffi.rb new file mode 100644 index 0000000..15cb840 --- /dev/null +++ b/lib/efl/ecore/ecore_fb-ffi.rb @@ -0,0 +1,86 @@ +#! /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 new file mode 100644 index 0000000..3b23b45 --- /dev/null +++ b/lib/efl/ecore/ecore_file-ffi.rb @@ -0,0 +1,138 @@ +#! /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 new file mode 100644 index 0000000..9834865 --- /dev/null +++ b/lib/efl/ecore/ecore_getopt-ffi.rb @@ -0,0 +1,68 @@ +#! /usr/bin/env ruby +# -*- coding: UTF-8 -*- +# +require 'efl/ffi' +# +module Efl + # + module Ecoregetopt + def self.method_missing m, *args, &block + return Efl::API.send 'ecore_getopt_'+m.to_s, *args, &block + end + end + # + module API + # + # + ffi_lib 'ecore' + # + # ENUMS + # typedef enum {...} Ecore_Getopt_Action; + enum :ecore_getopt_action, [ :ecore_getopt_action_store, :ecore_getopt_action_store_const, :ecore_getopt_action_store_true, + :ecore_getopt_action_store_false, :ecore_getopt_action_choice, :ecore_getopt_action_append, :ecore_getopt_action_count, :ecore_getopt_action_callback, + :ecore_getopt_action_help, :ecore_getopt_action_version, :ecore_getopt_action_copyright, :ecore_getopt_action_license ] + # typedef enum {...} Ecore_Getopt_Type; + enum :ecore_getopt_type, [ :ecore_getopt_type_str, :ecore_getopt_type_bool, :ecore_getopt_type_short, :ecore_getopt_type_int, + :ecore_getopt_type_long, :ecore_getopt_type_ushort, :ecore_getopt_type_uint, :ecore_getopt_type_ulong, :ecore_getopt_type_double ] + # typedef enum {...} Ecore_Getopt_Desc_Arg_Requirement; + enum :ecore_getopt_desc_arg_requirement, [ :ecore_getopt_desc_arg_requirement_no, 0, :ecore_getopt_desc_arg_requirement_yes, 1, + :ecore_getopt_desc_arg_requirement_optional, 3 ] + # + # TYPEDEFS + # typedef union _Ecore_Getopt_Value Ecore_Getopt_Value; + typedef :pointer, :ecore_getopt_value + typedef :pointer, :ecore_getopt_value_p + # typedef struct _Ecore_Getopt_Desc_Store Ecore_Getopt_Desc_Store; + typedef :pointer, :ecore_getopt_desc_store + # typedef struct _Ecore_Getopt_Desc_Callback Ecore_Getopt_Desc_Callback; + typedef :pointer, :ecore_getopt_desc_callback + # typedef struct _Ecore_Getopt_Desc Ecore_Getopt_Desc; + typedef :pointer, :ecore_getopt_desc + typedef :pointer, :ecore_getopt_desc_p + # typedef struct _Ecore_Getopt Ecore_Getopt; + typedef :pointer, :ecore_getopt + typedef :pointer, :ecore_getopt_p + # + # CALLBACKS + # + # FUNCTIONS + fcts = [ + # EAPI void ecore_getopt_help(FILE *fp, const Ecore_Getopt *info); + [ :ecore_getopt_help, [ :pointer, :ecore_getopt_p ], :void ], + # EAPI Eina_Bool ecore_getopt_parser_has_duplicates(const Ecore_Getopt *parser); + [ :ecore_getopt_parser_has_duplicates, [ :ecore_getopt_p ], :eina_bool ], + # EAPI int ecore_getopt_parse(const Ecore_Getopt *parser, Ecore_Getopt_Value *values, int argc, char **argv); + [ :ecore_getopt_parse, [ :ecore_getopt_p, :ecore_getopt_value_p, :int, :string_array ], :int ], + # EAPI Eina_List *ecore_getopt_list_free(Eina_List *list); + [ :ecore_getopt_list_free, [ :eina_list_p ], :eina_list_p ], + # EAPI Eina_Bool ecore_getopt_callback_geometry_parse(const Ecore_Getopt *parser, const Ecore_Getopt_Desc *desc, const char *str, void *data, Ecore_Getopt_Value *storage); + [ :ecore_getopt_callback_geometry_parse, [ :ecore_getopt_p, :ecore_getopt_desc_p, :string, :void_p, :ecore_getopt_value_p ], :eina_bool ], + # EAPI Eina_Bool ecore_getopt_callback_size_parse(const Ecore_Getopt *parser, const Ecore_Getopt_Desc *desc, const char *str, void *data, Ecore_Getopt_Value *storage); + [ :ecore_getopt_callback_size_parse, [ :ecore_getopt_p, :ecore_getopt_desc_p, :string, :void_p, :ecore_getopt_value_p ], :eina_bool ], + ] + # + attach_fcts fcts + end +end +# +# EOF diff --git a/lib/efl/ecore/ecore_input-ffi.rb b/lib/efl/ecore/ecore_input-ffi.rb new file mode 100644 index 0000000..dde4d2e --- /dev/null +++ b/lib/efl/ecore/ecore_input-ffi.rb @@ -0,0 +1,78 @@ +#! /usr/bin/env ruby +# -*- coding: UTF-8 -*- +# +require 'efl/ffi' +# +module Efl + # + module Ecoreinput + def self.method_missing m, *args, &block + return Efl::API.send 'ecore_input_'+m.to_s, *args, &block + end + end + # + module API + # + # + ffi_lib 'ecore' + # + # ENUMS + # typedef enum _Ecore_Event_Modifier {...} Ecore_Event_Modifier; + enum :ecore_event_modifier, [ :ecore_none, :ecore_shift, :ecore_ctrl, :ecore_alt, :ecore_win, :ecore_scroll, :ecore_caps, :ecore_last ] + # typedef enum _Ecore_Event_Press {...} Ecore_Event_Press; + enum :ecore_event_press, [ :ecore_down, :ecore_up ] + # typedef enum _Ecore_Event_IO {...} Ecore_Event_IO; + enum :ecore_event_io, [ :ecore_in, :ecore_out ] + # + # TYPEDEFS + # typedef uintptr_t Ecore_Window; + typedef :uintptr_t, :ecore_window + # typedef struct _Ecore_Event_Key Ecore_Event_Key; + typedef :pointer, :ecore_event_key + # typedef struct _Ecore_Event_Mouse_Button Ecore_Event_Mouse_Button; + typedef :pointer, :ecore_event_mouse_button + # typedef struct _Ecore_Event_Mouse_Wheel Ecore_Event_Mouse_Wheel; + typedef :pointer, :ecore_event_mouse_wheel + # typedef struct _Ecore_Event_Mouse_Move Ecore_Event_Mouse_Move; + typedef :pointer, :ecore_event_mouse_move + # typedef struct _Ecore_Event_Mouse_IO Ecore_Event_Mouse_IO; + typedef :pointer, :ecore_event_mouse_io + # typedef struct _Ecore_Event_Modifiers Ecore_Event_Modifiers; + typedef :pointer, :ecore_event_modifiers + typedef :pointer, :ecore_event_modifiers_p + # + # CALLBACKS + # + # FUNCTIONS + fcts = [ + # EAPI extern int ECORE_EVENT_KEY_DOWN; + # FIXME + # EAPI extern int ECORE_EVENT_KEY_UP; + # FIXME + # EAPI extern int ECORE_EVENT_MOUSE_BUTTON_DOWN; + # FIXME + # EAPI extern int ECORE_EVENT_MOUSE_BUTTON_UP; + # FIXME + # EAPI extern int ECORE_EVENT_MOUSE_MOVE; + # FIXME + # EAPI extern int ECORE_EVENT_MOUSE_WHEEL; + # FIXME + # EAPI extern int ECORE_EVENT_MOUSE_IN; + # FIXME + # EAPI extern int ECORE_EVENT_MOUSE_OUT; + # FIXME + # EAPI int ecore_event_init(void); + [ :ecore_event_init, [ ], :int ], + # EAPI int ecore_event_shutdown(void); + [ :ecore_event_shutdown, [ ], :int ], + # EAPI unsigned int ecore_event_modifier_mask(Ecore_Event_Modifier modifier); + [ :ecore_event_modifier_mask, [ :ecore_event_modifier ], :uint ], + # EAPI Ecore_Event_Modifier ecore_event_update_modifier(const char *key, Ecore_Event_Modifiers *modifiers, int inc); + [ :ecore_event_update_modifier, [ :string, :ecore_event_modifiers_p, :int ], :ecore_event_modifier ], + ] + # + attach_fcts fcts + end +end +# +# EOF |