diff options
Diffstat (limited to 'lib/efl/native/ecore.rb')
-rw-r--r-- | lib/efl/native/ecore.rb | 214 |
1 files changed, 118 insertions, 96 deletions
diff --git a/lib/efl/native/ecore.rb b/lib/efl/native/ecore.rb index 0ab99b1..a9301c3 100644 --- a/lib/efl/native/ecore.rb +++ b/lib/efl/native/ecore.rb @@ -21,6 +21,10 @@ module Efl ffi_lib 'ecore.so.1' # # ENUMS + # enum _Ecore_Memory_State {...} Ecore_Memory_State; + enum :ecore_memory_state, [ :ecore_memory_state_normal, :ecore_memory_state_low ] + # enum _Ecore_Power_State {...} Ecore_Power_State; + enum :ecore_power_state, [ :ecore_power_state_mains, :ecore_power_state_battery, :ecore_power_state_low ] # enum _Ecore_Exe_Flags {...} Ecore_Exe_Flags; enum :ecore_exe_flags, [ :ecore_exe_none, 0, :ecore_exe_pipe_read, 1, :ecore_exe_pipe_write, 2, :ecore_exe_pipe_error, 4, :ecore_exe_pipe_read_line_buffered, 8, :ecore_exe_pipe_error_line_buffered, 16, :ecore_exe_pipe_auto, 32, :ecore_exe_respawn, 64, :ecore_exe_use_sh, @@ -35,7 +39,7 @@ module Efl # enum _Ecore_Pos_Map {...} Ecore_Pos_Map; enum :ecore_pos_map, [ :ecore_pos_map_linear, :ecore_pos_map_accelerate, :ecore_pos_map_decelerate, :ecore_pos_map_sinusoidal, :ecore_pos_map_accelerate_factor, :ecore_pos_map_decelerate_factor, :ecore_pos_map_sinusoidal_factor, :ecore_pos_map_divisor_interp, - :ecore_pos_map_bounce, :ecore_pos_map_spring ] + :ecore_pos_map_bounce, :ecore_pos_map_spring, :ecore_pos_map_cubic_bezier ] # enum _Ecore_Animator_Source {...} Ecore_Animator_Source; enum :ecore_animator_source, [ :ecore_animator_source_timer, :ecore_animator_source_custom ] # @@ -72,23 +76,23 @@ module Efl typedef :pointer, :ecore_exe_event_data # typedef struct _Ecore_Fd_Handler Ecore_Fd_Handler; typedef :pointer, :ecore_fd_handler - # typedef struct _Ecore_Poller Ecore_Poller; + # typedef struct _Ecore_Thread Ecore_Thread; + typedef :pointer, :ecore_thread + # typedef struct _Ecore_Pipe Ecore_Pipe; + typedef :pointer, :ecore_pipe + # typedef Eo Ecore_Poller; typedef :pointer, :ecore_poller - # typedef struct _Ecore_Animator Ecore_Animator; + # typedef Eo Ecore_Animator; typedef :pointer, :ecore_animator - # typedef struct _Ecore_Timer Ecore_Timer; + # typedef Eo Ecore_Timer; typedef :pointer, :ecore_timer - # typedef struct _Ecore_Idler Ecore_Idler; + # typedef Eo Ecore_Idler; typedef :pointer, :ecore_idler - # typedef struct _Ecore_Idle_Enterer Ecore_Idle_Enterer; + # typedef Eo Ecore_Idle_Enterer; typedef :pointer, :ecore_idle_enterer - # typedef struct _Ecore_Idle_Exiter Ecore_Idle_Exiter; + # typedef Eo Ecore_Idle_Exiter; typedef :pointer, :ecore_idle_exiter - # typedef struct _Ecore_Thread Ecore_Thread; - typedef :pointer, :ecore_thread - # typedef struct _Ecore_Pipe Ecore_Pipe; - typedef :pointer, :ecore_pipe - # typedef struct _Ecore_Job Ecore_Job; + # typedef Eo Ecore_Job; typedef :pointer, :ecore_job # # CALLBACKS @@ -114,14 +118,14 @@ module Efl callback :ecore_fd_prep_cb, [ :pointer, :ecore_fd_handler ], :void # typedef Eina_Bool (*Ecore_Win32_Handle_Cb) (void *data, Ecore_Win32_Handler *wh); callback :ecore_win32_handle_cb, [ :pointer, :ecore_win32_handler ], :bool - # typedef Eina_Bool (*Ecore_Timeline_Cb) (void *data, double pos); - callback :ecore_timeline_cb, [ :pointer, :double ], :bool # typedef void (*Ecore_Thread_Cb) (void *data, Ecore_Thread *thread); callback :ecore_thread_cb, [ :pointer, :ecore_thread ], :void # typedef void (*Ecore_Thread_Notify_Cb) (void *data, Ecore_Thread *thread, void *msg_data); callback :ecore_thread_notify_cb, [ :pointer, :ecore_thread, :pointer ], :void # typedef void (*Ecore_Pipe_Cb) (void *data, void *buffer, unsigned int nbyte); callback :ecore_pipe_cb, [ :pointer, :pointer, :uint ], :void + # typedef Eina_Bool (*Ecore_Timeline_Cb) (void *data, double pos); + callback :ecore_timeline_cb, [ :pointer, :double ], :bool # # VARIABLES # EAPI extern Ecore_Version *ecore_version; @@ -191,6 +195,14 @@ module Efl [ :ecore_event_current_type_get, [ ], :int ], # EAPI void *ecore_event_current_event_get(void); [ :ecore_event_current_event_get, [ ], :pointer ], + # EAPI Ecore_Memory_State ecore_memory_state_get(void); + [ :ecore_memory_state_get, [ ], :ecore_memory_state ], + # EAPI void ecore_memory_state_set(Ecore_Memory_State state); + [ :ecore_memory_state_set, [ :ecore_memory_state ], :void ], + # EAPI Ecore_Power_State ecore_power_state_get(void); + [ :ecore_power_state_get, [ ], :ecore_power_state ], + # EAPI void ecore_power_state_set(Ecore_Power_State state); + [ :ecore_power_state_set, [ :ecore_power_state ], :void ], # EAPI void ecore_exe_run_priority_set(int pri); [ :ecore_exe_run_priority_set, [ :int ], :void ], # EAPI int ecore_exe_run_priority_get(void); @@ -261,90 +273,12 @@ module Efl [ :ecore_main_win32_handler_add, [ :pointer, :ecore_win32_handle_cb, :pointer ], :ecore_win32_handler ], # EAPI void *ecore_main_win32_handler_del(Ecore_Win32_Handler *win32_handler); [ :ecore_main_win32_handler_del, [ :ecore_win32_handler ], :pointer ], - # 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, :int ], :bool ], - # EAPI int ecore_poller_poller_interval_get(Ecore_Poller *poller); - [ :ecore_poller_poller_interval_get, [ :ecore_poller ], :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, :pointer ], :ecore_poller ], - # EAPI void *ecore_poller_del(Ecore_Poller *poller); - [ :ecore_poller_del, [ :ecore_poller ], :pointer ], - # EAPI Ecore_Animator *ecore_animator_add(Ecore_Task_Cb func, const void *data); - [ :ecore_animator_add, [ :ecore_task_cb, :pointer ], :ecore_animator ], - # EAPI Ecore_Animator *ecore_animator_timeline_add(double runtime, Ecore_Timeline_Cb func, const void *data); - [ :ecore_animator_timeline_add, [ :double, :ecore_timeline_cb, :pointer ], :ecore_animator ], - # EAPI void *ecore_animator_del(Ecore_Animator *animator); - [ :ecore_animator_del, [ :ecore_animator ], :pointer ], - # EAPI void ecore_animator_freeze(Ecore_Animator *animator); - [ :ecore_animator_freeze, [ :ecore_animator ], :void ], - # EAPI void ecore_animator_thaw(Ecore_Animator *animator); - [ :ecore_animator_thaw, [ :ecore_animator ], :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 double ecore_animator_pos_map(double pos, Ecore_Pos_Map map, double v1, double v2); - [ :ecore_animator_pos_map, [ :double, :ecore_pos_map, :double, :double ], :double ], - # EAPI void ecore_animator_source_set(Ecore_Animator_Source source); - [ :ecore_animator_source_set, [ :ecore_animator_source ], :void ], - # EAPI Ecore_Animator_Source ecore_animator_source_get(void); - [ :ecore_animator_source_get, [ ], :ecore_animator_source ], - # EAPI void ecore_animator_custom_source_tick_begin_callback_set(Ecore_Cb func, const void *data); - [ :ecore_animator_custom_source_tick_begin_callback_set, [ :ecore_cb, :pointer ], :void ], - # EAPI void ecore_animator_custom_source_tick_end_callback_set(Ecore_Cb func, const void *data); - [ :ecore_animator_custom_source_tick_end_callback_set, [ :ecore_cb, :pointer ], :void ], - # EAPI void ecore_animator_custom_tick(void); - [ :ecore_animator_custom_tick, [ ], :void ], # 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, :pointer ], :ecore_timer ], - # EAPI Ecore_Timer *ecore_timer_loop_add(double in, Ecore_Task_Cb func, const void *data); - [ :ecore_timer_loop_add, [ :double, :ecore_task_cb, :pointer ], :ecore_timer ], - # EAPI void *ecore_timer_del(Ecore_Timer *timer); - [ :ecore_timer_del, [ :ecore_timer ], :pointer ], - # EAPI void ecore_timer_interval_set(Ecore_Timer *timer, double in); - [ :ecore_timer_interval_set, [ :ecore_timer, :double ], :void ], - # EAPI double ecore_timer_interval_get(Ecore_Timer *timer); - [ :ecore_timer_interval_get, [ :ecore_timer ], :double ], - # EAPI void ecore_timer_freeze(Ecore_Timer *timer); - [ :ecore_timer_freeze, [ :ecore_timer ], :void ], - # EAPI void ecore_timer_thaw(Ecore_Timer *timer); - [ :ecore_timer_thaw, [ :ecore_timer ], :void ], - # EAPI void ecore_timer_delay(Ecore_Timer *timer, double add); - [ :ecore_timer_delay, [ :ecore_timer, :double ], :void ], - # EAPI void ecore_timer_reset(Ecore_Timer *timer); - [ :ecore_timer_reset, [ :ecore_timer ], :void ], - # EAPI double ecore_timer_pending_get(Ecore_Timer *timer); - [ :ecore_timer_pending_get, [ :ecore_timer ], :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 char *ecore_timer_dump(void); - [ :ecore_timer_dump, [ ], :string ], - # EAPI Ecore_Idler *ecore_idler_add(Ecore_Task_Cb func, const void *data); - [ :ecore_idler_add, [ :ecore_task_cb, :pointer ], :ecore_idler ], - # EAPI void *ecore_idler_del(Ecore_Idler *idler); - [ :ecore_idler_del, [ :ecore_idler ], :pointer ], - # EAPI Ecore_Idle_Enterer *ecore_idle_enterer_add(Ecore_Task_Cb func, const void *data); - [ :ecore_idle_enterer_add, [ :ecore_task_cb, :pointer ], :ecore_idle_enterer ], - # EAPI Ecore_Idle_Enterer *ecore_idle_enterer_before_add(Ecore_Task_Cb func, const void *data); - [ :ecore_idle_enterer_before_add, [ :ecore_task_cb, :pointer ], :ecore_idle_enterer ], - # EAPI void *ecore_idle_enterer_del(Ecore_Idle_Enterer *idle_enterer); - [ :ecore_idle_enterer_del, [ :ecore_idle_enterer ], :pointer ], - # EAPI Ecore_Idle_Exiter *ecore_idle_exiter_add(Ecore_Task_Cb func, const void *data); - [ :ecore_idle_exiter_add, [ :ecore_task_cb, :pointer ], :ecore_idle_exiter ], - # EAPI void *ecore_idle_exiter_del(Ecore_Idle_Exiter *idle_exiter); - [ :ecore_idle_exiter_del, [ :ecore_idle_exiter ], :pointer ], # 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, :pointer ], :ecore_thread ], # 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); @@ -394,6 +328,8 @@ module Efl [ :ecore_thread_global_data_wait, [ :string, :double ], :pointer ], # EAPI Ecore_Pipe *ecore_pipe_add(Ecore_Pipe_Cb handler, const void *data); [ :ecore_pipe_add, [ :ecore_pipe_cb, :pointer ], :ecore_pipe ], + # EAPI Ecore_Pipe *ecore_pipe_full_add(Ecore_Pipe_Cb handler, const void *data, int fd_read, int fd_write, Eina_Bool read_survive_fork, Eina_Bool write_survive_fork); + [ :ecore_pipe_full_add, [ :ecore_pipe_cb, :pointer, :int, :int, :bool, :bool ], :ecore_pipe ], # EAPI void *ecore_pipe_del(Ecore_Pipe *p); [ :ecore_pipe_del, [ :ecore_pipe ], :pointer ], # EAPI Eina_Bool ecore_pipe_write(Ecore_Pipe *p, const void *buffer, unsigned int nbytes); @@ -402,26 +338,112 @@ module Efl [ :ecore_pipe_write_close, [ :ecore_pipe ], :void ], # EAPI void ecore_pipe_read_close(Ecore_Pipe *p); [ :ecore_pipe_read_close, [ :ecore_pipe ], :void ], + # EAPI int ecore_pipe_read_fd(Ecore_Pipe *p); + [ :ecore_pipe_read_fd, [ :ecore_pipe ], :int ], + # EAPI int ecore_pipe_write_fd(Ecore_Pipe *p); + [ :ecore_pipe_write_fd, [ :ecore_pipe ], :int ], # EAPI void ecore_pipe_thaw(Ecore_Pipe *p); [ :ecore_pipe_thaw, [ :ecore_pipe ], :void ], # EAPI void ecore_pipe_freeze(Ecore_Pipe *p); [ :ecore_pipe_freeze, [ :ecore_pipe ], :void ], # EAPI int ecore_pipe_wait(Ecore_Pipe *p, int message_count, double wait); [ :ecore_pipe_wait, [ :ecore_pipe, :int, :double ], :int ], - # EAPI Ecore_Job *ecore_job_add(Ecore_Cb func, const void *data); - [ :ecore_job_add, [ :ecore_cb, :pointer ], :ecore_job ], - # EAPI void *ecore_job_del(Ecore_Job *job); - [ :ecore_job_del, [ :ecore_job ], :pointer ], # EAPI void ecore_app_args_set(int argc, const char **argv); [ :ecore_app_args_set, [ :int, :pointer ], :void ], # EAPI void ecore_app_args_get(int *argc, char ***argv); [ :ecore_app_args_get, [ :pointer, :pointer ], :void ], # EAPI void ecore_app_restart(void); [ :ecore_app_restart, [ ], :void ], + # EAPI void ecore_app_no_system_modules(void); + [ :ecore_app_no_system_modules, [ ], :void ], # EAPI void ecore_throttle_adjust(double amount); [ :ecore_throttle_adjust, [ :double ], :void ], # EAPI double ecore_throttle_get(void); [ :ecore_throttle_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 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 double ecore_animator_pos_map(double pos, Ecore_Pos_Map map, double v1, double v2); + [ :ecore_animator_pos_map, [ :double, :ecore_pos_map, :double, :double ], :double ], + # EAPI double ecore_animator_pos_map_n(double pos, Ecore_Pos_Map map, int v_size, double v[]); + # FIXME + # EAPI void ecore_animator_source_set(Ecore_Animator_Source source); + [ :ecore_animator_source_set, [ :ecore_animator_source ], :void ], + # EAPI Ecore_Animator_Source ecore_animator_source_get(void); + [ :ecore_animator_source_get, [ ], :ecore_animator_source ], + # EAPI void ecore_animator_custom_source_tick_begin_callback_set(Ecore_Cb func, const void *data); + [ :ecore_animator_custom_source_tick_begin_callback_set, [ :ecore_cb, :pointer ], :void ], + # EAPI void ecore_animator_custom_source_tick_end_callback_set(Ecore_Cb func, const void *data); + [ :ecore_animator_custom_source_tick_end_callback_set, [ :ecore_cb, :pointer ], :void ], + # EAPI void ecore_animator_custom_tick(void); + [ :ecore_animator_custom_tick, [ ], :void ], + # 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 char *ecore_timer_dump(void); + [ :ecore_timer_dump, [ ], :string ], + # EAPI Eina_Bool ecore_poller_poller_interval_set(Ecore_Poller *poller, int interval); + [ :ecore_poller_poller_interval_set, [ :pointer, :int ], :bool ], + # EAPI int ecore_poller_poller_interval_get(Ecore_Poller *poller); + [ :ecore_poller_poller_interval_get, [ :pointer ], :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, :pointer ], :pointer ], + # EAPI void *ecore_poller_del(Ecore_Poller *poller); + [ :ecore_poller_del, [ :pointer ], :pointer ], + # EAPI Ecore_Animator *ecore_animator_add(Ecore_Task_Cb func, const void *data); + [ :ecore_animator_add, [ :ecore_task_cb, :pointer ], :pointer ], + # EAPI Ecore_Animator *ecore_animator_timeline_add(double runtime, Ecore_Timeline_Cb func, const void *data); + [ :ecore_animator_timeline_add, [ :double, :ecore_timeline_cb, :pointer ], :pointer ], + # EAPI void *ecore_animator_del(Ecore_Animator *animator); + [ :ecore_animator_del, [ :pointer ], :pointer ], + # EAPI void ecore_animator_freeze(Ecore_Animator *animator); + [ :ecore_animator_freeze, [ :pointer ], :void ], + # EAPI void ecore_animator_thaw(Ecore_Animator *animator); + [ :ecore_animator_thaw, [ :pointer ], :void ], + # EAPI Ecore_Timer *ecore_timer_add(double in, Ecore_Task_Cb func, const void *data); + [ :ecore_timer_add, [ :double, :ecore_task_cb, :pointer ], :pointer ], + # EAPI Ecore_Timer *ecore_timer_loop_add(double in, Ecore_Task_Cb func, const void *data); + [ :ecore_timer_loop_add, [ :double, :ecore_task_cb, :pointer ], :pointer ], + # EAPI void *ecore_timer_del(Ecore_Timer *timer); + [ :ecore_timer_del, [ :pointer ], :pointer ], + # EAPI void ecore_timer_interval_set(Ecore_Timer *timer, double in); + [ :ecore_timer_interval_set, [ :pointer, :double ], :void ], + # EAPI double ecore_timer_interval_get(Ecore_Timer *timer); + [ :ecore_timer_interval_get, [ :pointer ], :double ], + # EAPI void ecore_timer_freeze(Ecore_Timer *timer); + [ :ecore_timer_freeze, [ :pointer ], :void ], + # EAPI void ecore_timer_thaw(Ecore_Timer *timer); + [ :ecore_timer_thaw, [ :pointer ], :void ], + # EAPI void ecore_timer_delay(Ecore_Timer *timer, double add); + [ :ecore_timer_delay, [ :pointer, :double ], :void ], + # EAPI void ecore_timer_reset(Ecore_Timer *timer); + [ :ecore_timer_reset, [ :pointer ], :void ], + # EAPI double ecore_timer_pending_get(Ecore_Timer *timer); + [ :ecore_timer_pending_get, [ :pointer ], :double ], + # EAPI Ecore_Idler *ecore_idler_add(Ecore_Task_Cb func, const void *data); + [ :ecore_idler_add, [ :ecore_task_cb, :pointer ], :pointer ], + # EAPI void *ecore_idler_del(Ecore_Idler *idler); + [ :ecore_idler_del, [ :pointer ], :pointer ], + # EAPI Ecore_Idle_Enterer *ecore_idle_enterer_add(Ecore_Task_Cb func, const void *data); + [ :ecore_idle_enterer_add, [ :ecore_task_cb, :pointer ], :pointer ], + # EAPI Ecore_Idle_Enterer *ecore_idle_enterer_before_add(Ecore_Task_Cb func, const void *data); + [ :ecore_idle_enterer_before_add, [ :ecore_task_cb, :pointer ], :pointer ], + # EAPI void *ecore_idle_enterer_del(Ecore_Idle_Enterer *idle_enterer); + [ :ecore_idle_enterer_del, [ :pointer ], :pointer ], + # EAPI Ecore_Idle_Exiter *ecore_idle_exiter_add(Ecore_Task_Cb func, const void *data); + [ :ecore_idle_exiter_add, [ :ecore_task_cb, :pointer ], :pointer ], + # EAPI void *ecore_idle_exiter_del(Ecore_Idle_Exiter *idle_exiter); + [ :ecore_idle_exiter_del, [ :pointer ], :pointer ], + # EAPI Ecore_Job *ecore_job_add(Ecore_Cb func, const void *data); + [ :ecore_job_add, [ :ecore_cb, :pointer ], :pointer ], + # EAPI void *ecore_job_del(Ecore_Job *obj); + [ :ecore_job_del, [ :pointer ], :pointer ], ] # attach_fcts fcts |