ffi-efl 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
data/lib/efl/ffi.rb CHANGED
@@ -68,6 +68,7 @@ module Efl
68
68
  mod.typedef :pointer, :evas_p
69
69
  mod.typedef :pointer, :evas_object_p
70
70
  mod.typedef :pointer, :evas_object_pp
71
+ mod.typedef :pointer, :evas_gl_api_p
71
72
  mod.typedef :pointer, :ecore_getopt_p
72
73
  mod.typedef :pointer, :ecore_getopt_desc_p
73
74
  mod.typedef :pointer, :ecore_getopt_value_p
@@ -80,6 +81,36 @@ module Efl
80
81
  #
81
82
  end
82
83
  #
84
+ module ModuleHelper
85
+ def find_function m, prefix
86
+ m_s = m.to_s
87
+ if m_s =~/^(.*)=$/
88
+ m_s = $1+'_set'
89
+ args_s = '*args[0]'
90
+ elsif m_s =~/^(.*)\?$/
91
+ m_s = $1+'_get'
92
+ args_s = '*args'
93
+ else
94
+ args_s = '*args'
95
+ end
96
+ sym = (
97
+ if Efl::Native.respond_to? prefix+m_s
98
+ prefix+m_s
99
+ elsif Efl::Native.respond_to? m_s
100
+ m_s
101
+ elsif Efl::Native.respond_to? prefix+m_s+'_get'
102
+ prefix+m_s+'_get'
103
+ elsif Efl::Native.respond_to? m_s+'_get'
104
+ m_s+'_get'
105
+ else
106
+ raise NameError.new "#{self.name}.#{m_s} (#{m})"
107
+ end
108
+ )
109
+ [sym, args_s]
110
+ end
111
+ module_function :find_function
112
+ end
113
+ #
83
114
  module ClassHelper
84
115
  def to_a; [self] end
85
116
  def to_ary; [self] end
@@ -117,8 +148,8 @@ module Efl
117
148
  meth = (
118
149
  if Efl::Native.respond_to? sym
119
150
  sym
120
- elsif Efl::Native.respond_to? m
121
- m
151
+ elsif Efl::Native.respond_to? m_s
152
+ m_s
122
153
  elsif Efl::Native.respond_to? sym+'_get'
123
154
  sym+'_get'
124
155
  elsif Efl::Native.respond_to? m_s+'_get'
@@ -6,11 +6,12 @@ require 'efl/ffi'
6
6
  module Efl
7
7
  #
8
8
  module Ecore
9
+ #
10
+ FCT_PREFIX = 'ecore_'
9
11
  #
10
12
  def self.method_missing m, *args, &block
11
- sym = 'ecore_'+m.to_s
12
- raise NameError.new "#{self.name}.#{sym} (#{m})" if not Efl::Native.respond_to? sym
13
- self.module_eval "def self.#{m} *args, █ r=Efl::Native.#{sym}(*args); yield r if block_given?; r; end"
13
+ sym, args_s = ModuleHelper.find_function m, FCT_PREFIX
14
+ self.module_eval "def self.#{m} *args, █ r=Efl::Native.#{sym}(#{args_s}); yield r if block_given?; r; end"
14
15
  self.send m, *args, &block
15
16
  end
16
17
  #
@@ -23,39 +24,23 @@ module Efl
23
24
  ffi_lib 'ecore'
24
25
  #
25
26
  # ENUMS
27
+ # typedef 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 = 128, ECORE_EXE_NOT_LEADER = 256 } Ecore_Exe_Flags
28
+ # FIXME
29
+ # typedef enum _Ecore_Exe_Win32_Priority { ECORE_EXE_WIN32_PRIORITY_IDLE, ECORE_EXE_WIN32_PRIORITY_BELOW_NORMAL, ECORE_EXE_WIN32_PRIORITY_NORMAL, ECORE_EXE_WIN32_PRIORITY_ABOVE_NORMAL, ECORE_EXE_WIN32_PRIORITY_HIGH, ECORE_EXE_WIN32_PRIORITY_REALTIME } Ecore_Exe_Win32_Priority
30
+ # FIXME
31
+ # typedef enum _Ecore_Fd_Handler_Flags { ECORE_FD_READ = 1, ECORE_FD_WRITE = 2, ECORE_FD_ERROR = 4 } Ecore_Fd_Handler_Flags
32
+ # FIXME
33
+ # typedef enum _Ecore_Poller_Type { ECORE_POLLER_CORE = 0 } Ecore_Poller_Type
34
+ # FIXME
35
+ # typedef 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
36
+ # FIXME
37
+ # typedef enum _Ecore_Animator_Source { ECORE_ANIMATOR_SOURCE_TIMER, ECORE_ANIMATOR_SOURCE_CUSTOM } Ecore_Animator_Source
38
+ # FIXME
26
39
  #
27
40
  # TYPEDEFS
28
41
  # typedef struct _Ecore_Version Ecore_Version;
29
42
  typedef :pointer, :ecore_version
30
43
  typedef :pointer, :ecore_version_p
31
- # typedef enum _Ecore_Fd_Handler_Flags Ecore_Fd_Handler_Flags;
32
- typedef :pointer, :ecore_fd_handler_flags
33
- # typedef enum _Ecore_Exe_Flags Ecore_Exe_Flags;
34
- typedef :pointer, :ecore_exe_flags
35
- # typedef enum _Ecore_Exe_Win32_Priority Ecore_Exe_Win32_Priority;
36
- typedef :pointer, :ecore_exe_win32_priority
37
- # typedef enum _Ecore_Poller_Type Ecore_Poller_Type;
38
- typedef :pointer, :ecore_poller_type
39
- # typedef enum _Ecore_Pos_Map Ecore_Pos_Map;
40
- typedef :pointer, :ecore_pos_map
41
- # typedef struct _Ecore_Exe Ecore_Exe;
42
- typedef :pointer, :ecore_exe
43
- typedef :pointer, :ecore_exe_p
44
- # typedef struct _Ecore_Timer Ecore_Timer;
45
- typedef :pointer, :ecore_timer
46
- typedef :pointer, :ecore_timer_p
47
- # typedef struct _Ecore_Idler Ecore_Idler;
48
- typedef :pointer, :ecore_idler
49
- typedef :pointer, :ecore_idler_p
50
- # typedef struct _Ecore_Idle_Enterer Ecore_Idle_Enterer;
51
- typedef :pointer, :ecore_idle_enterer
52
- typedef :pointer, :ecore_idle_enterer_p
53
- # typedef struct _Ecore_Idle_Exiter Ecore_Idle_Exiter;
54
- typedef :pointer, :ecore_idle_exiter
55
- typedef :pointer, :ecore_idle_exiter_p
56
- # typedef struct _Ecore_Fd_Handler Ecore_Fd_Handler;
57
- typedef :pointer, :ecore_fd_handler
58
- typedef :pointer, :ecore_fd_handler_p
59
44
  # typedef struct _Ecore_Win32_Handler Ecore_Win32_Handler;
60
45
  typedef :pointer, :ecore_win32_handler
61
46
  typedef :pointer, :ecore_win32_handler_p
@@ -68,15 +53,6 @@ module Efl
68
53
  # typedef struct _Ecore_Event Ecore_Event;
69
54
  typedef :pointer, :ecore_event
70
55
  typedef :pointer, :ecore_event_p
71
- # typedef struct _Ecore_Animator Ecore_Animator;
72
- typedef :pointer, :ecore_animator
73
- typedef :pointer, :ecore_animator_p
74
- # typedef struct _Ecore_Pipe Ecore_Pipe;
75
- typedef :pointer, :ecore_pipe
76
- typedef :pointer, :ecore_pipe_p
77
- # typedef struct _Ecore_Poller Ecore_Poller;
78
- typedef :pointer, :ecore_poller
79
- typedef :pointer, :ecore_poller_p
80
56
  # typedef struct _Ecore_Event_Signal_User Ecore_Event_Signal_User;
81
57
  typedef :pointer, :ecore_event_signal_user
82
58
  # typedef struct _Ecore_Event_Signal_Hup Ecore_Event_Signal_Hup;
@@ -87,6 +63,13 @@ module Efl
87
63
  typedef :pointer, :ecore_event_signal_power
88
64
  # typedef struct _Ecore_Event_Signal_Realtime Ecore_Event_Signal_Realtime;
89
65
  typedef :pointer, :ecore_event_signal_realtime
66
+ # typedef enum _Ecore_Exe_Flags Ecore_Exe_Flags;
67
+ typedef :pointer, :ecore_exe_flags
68
+ # typedef enum _Ecore_Exe_Win32_Priority Ecore_Exe_Win32_Priority;
69
+ typedef :pointer, :ecore_exe_win32_priority
70
+ # typedef struct _Ecore_Exe Ecore_Exe;
71
+ typedef :pointer, :ecore_exe
72
+ typedef :pointer, :ecore_exe_p
90
73
  # typedef struct _Ecore_Exe_Event_Add Ecore_Exe_Event_Add;
91
74
  typedef :pointer, :ecore_exe_event_add
92
75
  # typedef struct _Ecore_Exe_Event_Del Ecore_Exe_Event_Del;
@@ -96,44 +79,76 @@ module Efl
96
79
  # typedef struct _Ecore_Exe_Event_Data Ecore_Exe_Event_Data;
97
80
  typedef :pointer, :ecore_exe_event_data
98
81
  typedef :pointer, :ecore_exe_event_data_p
82
+ # typedef struct _Ecore_Fd_Handler Ecore_Fd_Handler;
83
+ typedef :pointer, :ecore_fd_handler
84
+ typedef :pointer, :ecore_fd_handler_p
85
+ # typedef enum _Ecore_Fd_Handler_Flags Ecore_Fd_Handler_Flags;
86
+ typedef :pointer, :ecore_fd_handler_flags
87
+ # typedef enum _Ecore_Poller_Type Ecore_Poller_Type;
88
+ typedef :pointer, :ecore_poller_type
89
+ # typedef struct _Ecore_Poller Ecore_Poller;
90
+ typedef :pointer, :ecore_poller
91
+ typedef :pointer, :ecore_poller_p
92
+ # typedef struct _Ecore_Animator Ecore_Animator;
93
+ typedef :pointer, :ecore_animator
94
+ typedef :pointer, :ecore_animator_p
95
+ # typedef enum _Ecore_Pos_Map Ecore_Pos_Map;
96
+ typedef :pointer, :ecore_pos_map
97
+ # typedef enum _Ecore_Animator_Source Ecore_Animator_Source;
98
+ typedef :pointer, :ecore_animator_source
99
+ # typedef struct _Ecore_Timer Ecore_Timer;
100
+ typedef :pointer, :ecore_timer
101
+ typedef :pointer, :ecore_timer_p
102
+ # typedef struct _Ecore_Idler Ecore_Idler;
103
+ typedef :pointer, :ecore_idler
104
+ typedef :pointer, :ecore_idler_p
105
+ # typedef struct _Ecore_Idle_Enterer Ecore_Idle_Enterer;
106
+ typedef :pointer, :ecore_idle_enterer
107
+ typedef :pointer, :ecore_idle_enterer_p
108
+ # typedef struct _Ecore_Idle_Exiter Ecore_Idle_Exiter;
109
+ typedef :pointer, :ecore_idle_exiter
110
+ typedef :pointer, :ecore_idle_exiter_p
99
111
  # typedef struct _Ecore_Thread Ecore_Thread;
100
112
  typedef :pointer, :ecore_thread
101
113
  typedef :pointer, :ecore_thread_p
114
+ # typedef struct _Ecore_Pipe Ecore_Pipe;
115
+ typedef :pointer, :ecore_pipe
116
+ typedef :pointer, :ecore_pipe_p
102
117
  # typedef struct _Ecore_Job Ecore_Job;
103
118
  typedef :pointer, :ecore_job
104
119
  typedef :pointer, :ecore_job_p
105
120
  #
106
121
  # CALLBACKS
122
+ # typedef Eina_Bool (*Ecore_Task_Cb) (void *data);
123
+ callback :ecore_task_cb, [ :void_p ], :eina_bool
124
+ # typedef int (*Ecore_Select_Function) (int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout);
125
+ callback :ecore_select_function, [ :int, :pointer, :pointer, :pointer, :pointer ], :int
126
+ # typedef void (*Ecore_Cb) (void *data);
127
+ callback :ecore_cb, [ :void_p ], :void
107
128
  # typedef void *(*Ecore_Data_Cb) (void *data);
108
129
  callback :ecore_data_cb, [ :void_p ], :void_p
109
130
  # typedef Eina_Bool (*Ecore_Filter_Cb) (void *data, void *loop_data, int type, void *event);
110
131
  callback :ecore_filter_cb, [ :void_p, :void_p, :int, :void_p ], :eina_bool
111
- # typedef int (*Ecore_Select_Function) (int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout);
112
- callback :ecore_select_function, [ :int, :pointer, :pointer, :pointer, :pointer ], :int
113
132
  # typedef void (*Ecore_End_Cb) (void *user_data, void *func_data);
114
133
  callback :ecore_end_cb, [ :void_p, :void_p ], :void
115
- # typedef void (*Ecore_Pipe_Cb) (void *data, void *buffer, unsigned int nbyte);
116
- callback :ecore_pipe_cb, [ :void_p, :void_p, :uint ], :void
117
- # typedef void (*Ecore_Exe_Cb) (void *data, const Ecore_Exe *exe);
118
- callback :ecore_exe_cb, [ :void_p, :ecore_exe_p ], :void
119
134
  # typedef Eina_Bool (*Ecore_Event_Handler_Cb) (void *data, int type, void *event);
120
135
  callback :ecore_event_handler_cb, [ :void_p, :int, :void_p ], :eina_bool
121
- # typedef void (*Ecore_Thread_Cb) (void *data, Ecore_Thread *thread);
122
- callback :ecore_thread_cb, [ :void_p, :ecore_thread_p ], :void
123
- # typedef void (*Ecore_Thread_Notify_Cb) (void *data, Ecore_Thread *thread, void *msg_data);
124
- callback :ecore_thread_notify_cb, [ :void_p, :ecore_thread_p, :void_p ], :void
125
- # typedef Eina_Bool (*Ecore_Task_Cb) (void *data);
126
- callback :ecore_task_cb, [ :void_p ], :eina_bool
127
- # typedef Eina_Bool (*Ecore_Timeline_Cb) (void *data, double pos);
128
- callback :ecore_timeline_cb, [ :void_p, :double ], :eina_bool
129
- # typedef void (*Ecore_Cb) (void *data);
130
- callback :ecore_cb, [ :void_p ], :void
136
+ # typedef void (*Ecore_Exe_Cb) (void *data, const Ecore_Exe *exe);
137
+ callback :ecore_exe_cb, [ :void_p, :ecore_exe_p ], :void
131
138
  # typedef Eina_Bool (*Ecore_Fd_Cb) (void *data, Ecore_Fd_Handler *fd_handler);
132
139
  callback :ecore_fd_cb, [ :void_p, :ecore_fd_handler_p ], :eina_bool
133
140
  # typedef void (*Ecore_Fd_Prep_Cb) (void *data, Ecore_Fd_Handler *fd_handler);
134
141
  callback :ecore_fd_prep_cb, [ :void_p, :ecore_fd_handler_p ], :void
135
142
  # typedef Eina_Bool (*Ecore_Win32_Handle_Cb) (void *data, Ecore_Win32_Handler *wh);
136
143
  callback :ecore_win32_handle_cb, [ :void_p, :ecore_win32_handler_p ], :eina_bool
144
+ # typedef Eina_Bool (*Ecore_Timeline_Cb) (void *data, double pos);
145
+ callback :ecore_timeline_cb, [ :void_p, :double ], :eina_bool
146
+ # typedef void (*Ecore_Thread_Cb) (void *data, Ecore_Thread *thread);
147
+ callback :ecore_thread_cb, [ :void_p, :ecore_thread_p ], :void
148
+ # typedef void (*Ecore_Thread_Notify_Cb) (void *data, Ecore_Thread *thread, void *msg_data);
149
+ callback :ecore_thread_notify_cb, [ :void_p, :ecore_thread_p, :void_p ], :void
150
+ # typedef void (*Ecore_Pipe_Cb) (void *data, void *buffer, unsigned int nbyte);
151
+ callback :ecore_pipe_cb, [ :void_p, :void_p, :uint ], :void
137
152
  #
138
153
  # VARIABLES
139
154
  # EAPI extern Ecore_Version *ecore_version;
@@ -153,12 +168,28 @@ module Efl
153
168
  [ :ecore_init, [ ], :int ],
154
169
  # EAPI int ecore_shutdown(void);
155
170
  [ :ecore_shutdown, [ ], :int ],
156
- # EAPI void ecore_app_args_set(int argc, const char **argv);
157
- [ :ecore_app_args_set, [ :int, :string_array ], :void ],
158
- # EAPI void ecore_app_args_get(int *argc, char ***argv);
159
- [ :ecore_app_args_get, [ :int_p, :string_array_p ], :void ],
160
- # EAPI void ecore_app_restart(void);
161
- [ :ecore_app_restart, [ ], :void ],
171
+ # EAPI void ecore_main_loop_iterate(void);
172
+ [ :ecore_main_loop_iterate, [ ], :void ],
173
+ # EAPI void ecore_main_loop_select_func_set(Ecore_Select_Function func);
174
+ [ :ecore_main_loop_select_func_set, [ :ecore_select_function ], :void ],
175
+ # EAPI Ecore_Select_Function ecore_main_loop_select_func_get(void);
176
+ [ :ecore_main_loop_select_func_get, [ ], :ecore_select_function ],
177
+ # EAPI Eina_Bool ecore_main_loop_glib_integrate(void);
178
+ [ :ecore_main_loop_glib_integrate, [ ], :eina_bool ],
179
+ # EAPI void ecore_main_loop_glib_always_integrate_disable(void);
180
+ [ :ecore_main_loop_glib_always_integrate_disable, [ ], :void ],
181
+ # EAPI void ecore_main_loop_begin(void);
182
+ [ :ecore_main_loop_begin, [ ], :void ],
183
+ # EAPI void ecore_main_loop_quit(void);
184
+ [ :ecore_main_loop_quit, [ ], :void ],
185
+ # EAPI void ecore_main_loop_thread_safe_call_async(Ecore_Cb callback, void *data);
186
+ [ :ecore_main_loop_thread_safe_call_async, [ :ecore_cb, :void_p ], :void ],
187
+ # EAPI void *ecore_main_loop_thread_safe_call_sync(Ecore_Data_Cb callback, void *data);
188
+ [ :ecore_main_loop_thread_safe_call_sync, [ :ecore_data_cb, :void_p ], :void_p ],
189
+ # EAPI Eina_Bool ecore_thread_main_loop_begin(void);
190
+ [ :ecore_thread_main_loop_begin, [ ], :eina_bool ],
191
+ # EAPI void ecore_thread_main_loop_end(void);
192
+ [ :ecore_thread_main_loop_end, [ ], :void ],
162
193
  # EAPI Ecore_Event_Handler *ecore_event_handler_add(int type, Ecore_Event_Handler_Cb func, const void *data);
163
194
  [ :ecore_event_handler_add, [ :int, :ecore_event_handler_cb, :void_p ], :ecore_event_handler_p ],
164
195
  # EAPI void *ecore_event_handler_del(Ecore_Event_Handler *event_handler);
@@ -169,7 +200,7 @@ module Efl
169
200
  [ :ecore_event_del, [ :ecore_event_p ], :void_p ],
170
201
  # EAPI void *ecore_event_handler_data_get(Ecore_Event_Handler *eh);
171
202
  [ :ecore_event_handler_data_get, [ :ecore_event_handler_p ], :void_p ],
172
- # EAPI void *ecore_event_handler_data_set(Ecore_Event_Handler *eh, void *data);
203
+ # EAPI void *ecore_event_handler_data_set(Ecore_Event_Handler *eh, const void *data);
173
204
  [ :ecore_event_handler_data_set, [ :ecore_event_handler_p, :void_p ], :void_p ],
174
205
  # EAPI int ecore_event_type_new(void);
175
206
  [ :ecore_event_type_new, [ ], :int ],
@@ -233,34 +264,6 @@ module Efl
233
264
  [ :ecore_exe_signal, [ :ecore_exe_p, :int ], :void ],
234
265
  # EAPI void ecore_exe_hup(Ecore_Exe *exe);
235
266
  [ :ecore_exe_hup, [ :ecore_exe_p ], :void ],
236
- # EAPI Ecore_Idler *ecore_idler_add(Ecore_Task_Cb func, const void *data);
237
- [ :ecore_idler_add, [ :ecore_task_cb, :void_p ], :ecore_idler_p ],
238
- # EAPI void *ecore_idler_del(Ecore_Idler *idler);
239
- [ :ecore_idler_del, [ :ecore_idler_p ], :void_p ],
240
- # EAPI Ecore_Idle_Enterer *ecore_idle_enterer_add(Ecore_Task_Cb func, const void *data);
241
- [ :ecore_idle_enterer_add, [ :ecore_task_cb, :void_p ], :ecore_idle_enterer_p ],
242
- # EAPI Ecore_Idle_Enterer *ecore_idle_enterer_before_add(Ecore_Task_Cb func, const void *data);
243
- [ :ecore_idle_enterer_before_add, [ :ecore_task_cb, :void_p ], :ecore_idle_enterer_p ],
244
- # EAPI void *ecore_idle_enterer_del(Ecore_Idle_Enterer *idle_enterer);
245
- [ :ecore_idle_enterer_del, [ :ecore_idle_enterer_p ], :void_p ],
246
- # EAPI Ecore_Idle_Exiter *ecore_idle_exiter_add(Ecore_Task_Cb func, const void *data);
247
- [ :ecore_idle_exiter_add, [ :ecore_task_cb, :void_p ], :ecore_idle_exiter_p ],
248
- # EAPI void *ecore_idle_exiter_del(Ecore_Idle_Exiter *idle_exiter);
249
- [ :ecore_idle_exiter_del, [ :ecore_idle_exiter_p ], :void_p ],
250
- # EAPI void ecore_main_loop_iterate(void);
251
- [ :ecore_main_loop_iterate, [ ], :void ],
252
- # EAPI void ecore_main_loop_select_func_set(Ecore_Select_Function func);
253
- [ :ecore_main_loop_select_func_set, [ :ecore_select_function ], :void ],
254
- # EAPI Ecore_Select_Function ecore_main_loop_select_func_get(void);
255
- [ :ecore_main_loop_select_func_get, [ ], :ecore_select_function ],
256
- # EAPI Eina_Bool ecore_main_loop_glib_integrate(void);
257
- [ :ecore_main_loop_glib_integrate, [ ], :eina_bool ],
258
- # EAPI void ecore_main_loop_glib_always_integrate_disable(void);
259
- [ :ecore_main_loop_glib_always_integrate_disable, [ ], :void ],
260
- # EAPI void ecore_main_loop_begin(void);
261
- [ :ecore_main_loop_begin, [ ], :void ],
262
- # EAPI void ecore_main_loop_quit(void);
263
- [ :ecore_main_loop_quit, [ ], :void ],
264
267
  # 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);
265
268
  [ :ecore_main_fd_handler_add, [ :int, :ecore_fd_handler_flags, :ecore_fd_cb, :void_p, :ecore_fd_cb, :void_p ], :ecore_fd_handler_p ],
266
269
  # EAPI void ecore_main_fd_handler_prepare_callback_set(Ecore_Fd_Handler *fd_handler, Ecore_Fd_Prep_Cb func, const void *data);
@@ -277,16 +280,88 @@ module Efl
277
280
  [ :ecore_main_win32_handler_add, [ :void_p, :ecore_win32_handle_cb, :void_p ], :ecore_win32_handler_p ],
278
281
  # EAPI void *ecore_main_win32_handler_del(Ecore_Win32_Handler *win32_handler);
279
282
  [ :ecore_main_win32_handler_del, [ :ecore_win32_handler_p ], :void_p ],
280
- # EAPI Ecore_Pipe *ecore_pipe_add(Ecore_Pipe_Cb handler, const void *data);
281
- [ :ecore_pipe_add, [ :ecore_pipe_cb, :void_p ], :ecore_pipe_p ],
282
- # EAPI void *ecore_pipe_del(Ecore_Pipe *p);
283
- [ :ecore_pipe_del, [ :ecore_pipe_p ], :void_p ],
284
- # EAPI Eina_Bool ecore_pipe_write(Ecore_Pipe *p, const void *buffer, unsigned int nbytes);
285
- [ :ecore_pipe_write, [ :ecore_pipe_p, :void_p, :uint ], :eina_bool ],
286
- # EAPI void ecore_pipe_write_close(Ecore_Pipe *p);
287
- [ :ecore_pipe_write_close, [ :ecore_pipe_p ], :void ],
288
- # EAPI void ecore_pipe_read_close(Ecore_Pipe *p);
289
- [ :ecore_pipe_read_close, [ :ecore_pipe_p ], :void ],
283
+ # EAPI void ecore_poller_poll_interval_set(Ecore_Poller_Type type, double poll_time);
284
+ [ :ecore_poller_poll_interval_set, [ :ecore_poller_type, :double ], :void ],
285
+ # EAPI double ecore_poller_poll_interval_get(Ecore_Poller_Type type);
286
+ [ :ecore_poller_poll_interval_get, [ :ecore_poller_type ], :double ],
287
+ # EAPI Eina_Bool ecore_poller_poller_interval_set(Ecore_Poller *poller, int interval);
288
+ [ :ecore_poller_poller_interval_set, [ :ecore_poller_p, :int ], :eina_bool ],
289
+ # EAPI int ecore_poller_poller_interval_get(Ecore_Poller *poller);
290
+ [ :ecore_poller_poller_interval_get, [ :ecore_poller_p ], :int ],
291
+ # EAPI Ecore_Poller *ecore_poller_add(Ecore_Poller_Type type, int interval, Ecore_Task_Cb func, const void *data);
292
+ [ :ecore_poller_add, [ :ecore_poller_type, :int, :ecore_task_cb, :void_p ], :ecore_poller_p ],
293
+ # EAPI void *ecore_poller_del(Ecore_Poller *poller);
294
+ [ :ecore_poller_del, [ :ecore_poller_p ], :void_p ],
295
+ # EAPI Ecore_Animator *ecore_animator_add(Ecore_Task_Cb func, const void *data);
296
+ [ :ecore_animator_add, [ :ecore_task_cb, :void_p ], :ecore_animator_p ],
297
+ # EAPI Ecore_Animator *ecore_animator_timeline_add(double runtime, Ecore_Timeline_Cb func, const void *data);
298
+ [ :ecore_animator_timeline_add, [ :double, :ecore_timeline_cb, :void_p ], :ecore_animator_p ],
299
+ # EAPI void *ecore_animator_del(Ecore_Animator *animator);
300
+ [ :ecore_animator_del, [ :ecore_animator_p ], :void_p ],
301
+ # EAPI void ecore_animator_freeze(Ecore_Animator *animator);
302
+ [ :ecore_animator_freeze, [ :ecore_animator_p ], :void ],
303
+ # EAPI void ecore_animator_thaw(Ecore_Animator *animator);
304
+ [ :ecore_animator_thaw, [ :ecore_animator_p ], :void ],
305
+ # EAPI void ecore_animator_frametime_set(double frametime);
306
+ [ :ecore_animator_frametime_set, [ :double ], :void ],
307
+ # EAPI double ecore_animator_frametime_get(void);
308
+ [ :ecore_animator_frametime_get, [ ], :double ],
309
+ # EAPI double ecore_animator_pos_map(double pos, Ecore_Pos_Map map, double v1, double v2);
310
+ [ :ecore_animator_pos_map, [ :double, :ecore_pos_map, :double, :double ], :double ],
311
+ # EAPI void ecore_animator_source_set(Ecore_Animator_Source source);
312
+ [ :ecore_animator_source_set, [ :ecore_animator_source ], :void ],
313
+ # EAPI Ecore_Animator_Source ecore_animator_source_get(void);
314
+ [ :ecore_animator_source_get, [ ], :ecore_animator_source ],
315
+ # EAPI void ecore_animator_custom_source_tick_begin_callback_set(Ecore_Cb func, const void *data);
316
+ [ :ecore_animator_custom_source_tick_begin_callback_set, [ :ecore_cb, :void_p ], :void ],
317
+ # EAPI void ecore_animator_custom_source_tick_end_callback_set(Ecore_Cb func, const void *data);
318
+ [ :ecore_animator_custom_source_tick_end_callback_set, [ :ecore_cb, :void_p ], :void ],
319
+ # EAPI void ecore_animator_custom_tick(void);
320
+ [ :ecore_animator_custom_tick, [ ], :void ],
321
+ # EAPI double ecore_time_get(void);
322
+ [ :ecore_time_get, [ ], :double ],
323
+ # EAPI double ecore_time_unix_get(void);
324
+ [ :ecore_time_unix_get, [ ], :double ],
325
+ # EAPI double ecore_loop_time_get(void);
326
+ [ :ecore_loop_time_get, [ ], :double ],
327
+ # EAPI Ecore_Timer *ecore_timer_add(double in, Ecore_Task_Cb func, const void *data);
328
+ [ :ecore_timer_add, [ :double, :ecore_task_cb, :void_p ], :ecore_timer_p ],
329
+ # EAPI Ecore_Timer *ecore_timer_loop_add(double in, Ecore_Task_Cb func, const void *data);
330
+ [ :ecore_timer_loop_add, [ :double, :ecore_task_cb, :void_p ], :ecore_timer_p ],
331
+ # EAPI void *ecore_timer_del(Ecore_Timer *timer);
332
+ [ :ecore_timer_del, [ :ecore_timer_p ], :void_p ],
333
+ # EAPI void ecore_timer_interval_set(Ecore_Timer *timer, double in);
334
+ [ :ecore_timer_interval_set, [ :ecore_timer_p, :double ], :void ],
335
+ # EAPI double ecore_timer_interval_get(Ecore_Timer *timer);
336
+ [ :ecore_timer_interval_get, [ :ecore_timer_p ], :double ],
337
+ # EAPI void ecore_timer_freeze(Ecore_Timer *timer);
338
+ [ :ecore_timer_freeze, [ :ecore_timer_p ], :void ],
339
+ # EAPI void ecore_timer_thaw(Ecore_Timer *timer);
340
+ [ :ecore_timer_thaw, [ :ecore_timer_p ], :void ],
341
+ # EAPI void ecore_timer_delay(Ecore_Timer *timer, double add);
342
+ [ :ecore_timer_delay, [ :ecore_timer_p, :double ], :void ],
343
+ # EAPI double ecore_timer_pending_get(Ecore_Timer *timer);
344
+ [ :ecore_timer_pending_get, [ :ecore_timer_p ], :double ],
345
+ # EAPI double ecore_timer_precision_get(void);
346
+ [ :ecore_timer_precision_get, [ ], :double ],
347
+ # EAPI void ecore_timer_precision_set(double precision);
348
+ [ :ecore_timer_precision_set, [ :double ], :void ],
349
+ # EAPI char *ecore_timer_dump(void);
350
+ [ :ecore_timer_dump, [ ], :string ],
351
+ # EAPI Ecore_Idler *ecore_idler_add(Ecore_Task_Cb func, const void *data);
352
+ [ :ecore_idler_add, [ :ecore_task_cb, :void_p ], :ecore_idler_p ],
353
+ # EAPI void *ecore_idler_del(Ecore_Idler *idler);
354
+ [ :ecore_idler_del, [ :ecore_idler_p ], :void_p ],
355
+ # EAPI Ecore_Idle_Enterer *ecore_idle_enterer_add(Ecore_Task_Cb func, const void *data);
356
+ [ :ecore_idle_enterer_add, [ :ecore_task_cb, :void_p ], :ecore_idle_enterer_p ],
357
+ # EAPI Ecore_Idle_Enterer *ecore_idle_enterer_before_add(Ecore_Task_Cb func, const void *data);
358
+ [ :ecore_idle_enterer_before_add, [ :ecore_task_cb, :void_p ], :ecore_idle_enterer_p ],
359
+ # EAPI void *ecore_idle_enterer_del(Ecore_Idle_Enterer *idle_enterer);
360
+ [ :ecore_idle_enterer_del, [ :ecore_idle_enterer_p ], :void_p ],
361
+ # EAPI Ecore_Idle_Exiter *ecore_idle_exiter_add(Ecore_Task_Cb func, const void *data);
362
+ [ :ecore_idle_exiter_add, [ :ecore_task_cb, :void_p ], :ecore_idle_exiter_p ],
363
+ # EAPI void *ecore_idle_exiter_del(Ecore_Idle_Exiter *idle_exiter);
364
+ [ :ecore_idle_exiter_del, [ :ecore_idle_exiter_p ], :void_p ],
290
365
  # EAPI Ecore_Thread *ecore_thread_run(Ecore_Thread_Cb func_blocking, Ecore_Thread_Cb func_end, Ecore_Thread_Cb func_cancel, const void *data);
291
366
  [ :ecore_thread_run, [ :ecore_thread_cb, :ecore_thread_cb, :ecore_thread_cb, :void_p ], :ecore_thread_p ],
292
367
  # 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);
@@ -333,66 +408,36 @@ module Efl
333
408
  [ :ecore_thread_global_data_del, [ :string ], :eina_bool ],
334
409
  # EAPI void *ecore_thread_global_data_wait(const char *key, double seconds);
335
410
  [ :ecore_thread_global_data_wait, [ :string, :double ], :void_p ],
336
- # EAPI double ecore_time_get(void);
337
- [ :ecore_time_get, [ ], :double ],
338
- # EAPI double ecore_time_unix_get(void);
339
- [ :ecore_time_unix_get, [ ], :double ],
340
- # EAPI double ecore_loop_time_get(void);
341
- [ :ecore_loop_time_get, [ ], :double ],
342
- # EAPI Ecore_Timer *ecore_timer_add(double in, Ecore_Task_Cb func, const void *data);
343
- [ :ecore_timer_add, [ :double, :ecore_task_cb, :void_p ], :ecore_timer_p ],
344
- # EAPI Ecore_Timer *ecore_timer_loop_add(double in, Ecore_Task_Cb func, const void *data);
345
- [ :ecore_timer_loop_add, [ :double, :ecore_task_cb, :void_p ], :ecore_timer_p ],
346
- # EAPI void *ecore_timer_del(Ecore_Timer *timer);
347
- [ :ecore_timer_del, [ :ecore_timer_p ], :void_p ],
348
- # EAPI void ecore_timer_interval_set(Ecore_Timer *timer, double in);
349
- [ :ecore_timer_interval_set, [ :ecore_timer_p, :double ], :void ],
350
- # EAPI double ecore_timer_interval_get(Ecore_Timer *timer);
351
- [ :ecore_timer_interval_get, [ :ecore_timer_p ], :double ],
352
- # EAPI void ecore_timer_freeze(Ecore_Timer *timer);
353
- [ :ecore_timer_freeze, [ :ecore_timer_p ], :void ],
354
- # EAPI void ecore_timer_thaw(Ecore_Timer *timer);
355
- [ :ecore_timer_thaw, [ :ecore_timer_p ], :void ],
356
- # EAPI void ecore_timer_delay(Ecore_Timer *timer, double add);
357
- [ :ecore_timer_delay, [ :ecore_timer_p, :double ], :void ],
358
- # EAPI double ecore_timer_pending_get(Ecore_Timer *timer);
359
- [ :ecore_timer_pending_get, [ :ecore_timer_p ], :double ],
360
- # EAPI double ecore_timer_precision_get(void);
361
- [ :ecore_timer_precision_get, [ ], :double ],
362
- # EAPI void ecore_timer_precision_set(double precision);
363
- [ :ecore_timer_precision_set, [ :double ], :void ],
364
- # EAPI Ecore_Animator *ecore_animator_add(Ecore_Task_Cb func, const void *data);
365
- [ :ecore_animator_add, [ :ecore_task_cb, :void_p ], :ecore_animator_p ],
366
- # EAPI Ecore_Animator *ecore_animator_timeline_add(double runtime, Ecore_Timeline_Cb func, const void *data);
367
- [ :ecore_animator_timeline_add, [ :double, :ecore_timeline_cb, :void_p ], :ecore_animator_p ],
368
- # EAPI void *ecore_animator_del(Ecore_Animator *animator);
369
- [ :ecore_animator_del, [ :ecore_animator_p ], :void_p ],
370
- # EAPI void ecore_animator_freeze(Ecore_Animator *animator);
371
- [ :ecore_animator_freeze, [ :ecore_animator_p ], :void ],
372
- # EAPI void ecore_animator_thaw(Ecore_Animator *animator);
373
- [ :ecore_animator_thaw, [ :ecore_animator_p ], :void ],
374
- # EAPI void ecore_animator_frametime_set(double frametime);
375
- [ :ecore_animator_frametime_set, [ :double ], :void ],
376
- # EAPI double ecore_animator_frametime_get(void);
377
- [ :ecore_animator_frametime_get, [ ], :double ],
378
- # EAPI double ecore_animator_pos_map(double pos, Ecore_Pos_Map map, double v1, double v2);
379
- [ :ecore_animator_pos_map, [ :double, :ecore_pos_map, :double, :double ], :double ],
380
- # EAPI void ecore_poller_poll_interval_set(Ecore_Poller_Type type, double poll_time);
381
- [ :ecore_poller_poll_interval_set, [ :ecore_poller_type, :double ], :void ],
382
- # EAPI double ecore_poller_poll_interval_get(Ecore_Poller_Type type);
383
- [ :ecore_poller_poll_interval_get, [ :ecore_poller_type ], :double ],
384
- # EAPI Eina_Bool ecore_poller_poller_interval_set(Ecore_Poller *poller, int interval);
385
- [ :ecore_poller_poller_interval_set, [ :ecore_poller_p, :int ], :eina_bool ],
386
- # EAPI int ecore_poller_poller_interval_get(Ecore_Poller *poller);
387
- [ :ecore_poller_poller_interval_get, [ :ecore_poller_p ], :int ],
388
- # EAPI Ecore_Poller *ecore_poller_add(Ecore_Poller_Type type, int interval, Ecore_Task_Cb func, const void *data);
389
- [ :ecore_poller_add, [ :ecore_poller_type, :int, :ecore_task_cb, :void_p ], :ecore_poller_p ],
390
- # EAPI void *ecore_poller_del(Ecore_Poller *poller);
391
- [ :ecore_poller_del, [ :ecore_poller_p ], :void_p ],
411
+ # EAPI Ecore_Pipe *ecore_pipe_add(Ecore_Pipe_Cb handler, const void *data);
412
+ [ :ecore_pipe_add, [ :ecore_pipe_cb, :void_p ], :ecore_pipe_p ],
413
+ # EAPI void *ecore_pipe_del(Ecore_Pipe *p);
414
+ [ :ecore_pipe_del, [ :ecore_pipe_p ], :void_p ],
415
+ # EAPI Eina_Bool ecore_pipe_write(Ecore_Pipe *p, const void *buffer, unsigned int nbytes);
416
+ [ :ecore_pipe_write, [ :ecore_pipe_p, :void_p, :uint ], :eina_bool ],
417
+ # EAPI void ecore_pipe_write_close(Ecore_Pipe *p);
418
+ [ :ecore_pipe_write_close, [ :ecore_pipe_p ], :void ],
419
+ # EAPI void ecore_pipe_read_close(Ecore_Pipe *p);
420
+ [ :ecore_pipe_read_close, [ :ecore_pipe_p ], :void ],
421
+ # EAPI void ecore_pipe_thaw(Ecore_Pipe *p);
422
+ [ :ecore_pipe_thaw, [ :ecore_pipe_p ], :void ],
423
+ # EAPI void ecore_pipe_freeze(Ecore_Pipe *p);
424
+ [ :ecore_pipe_freeze, [ :ecore_pipe_p ], :void ],
425
+ # EAPI int ecore_pipe_wait(Ecore_Pipe *p, int message_count, double wait);
426
+ [ :ecore_pipe_wait, [ :ecore_pipe_p, :int, :double ], :int ],
392
427
  # EAPI Ecore_Job *ecore_job_add(Ecore_Cb func, const void *data);
393
428
  [ :ecore_job_add, [ :ecore_cb, :void_p ], :ecore_job_p ],
394
429
  # EAPI void *ecore_job_del(Ecore_Job *job);
395
430
  [ :ecore_job_del, [ :ecore_job_p ], :void_p ],
431
+ # EAPI void ecore_app_args_set(int argc, const char **argv);
432
+ [ :ecore_app_args_set, [ :int, :string_array ], :void ],
433
+ # EAPI void ecore_app_args_get(int *argc, char ***argv);
434
+ [ :ecore_app_args_get, [ :int_p, :string_array_p ], :void ],
435
+ # EAPI void ecore_app_restart(void);
436
+ [ :ecore_app_restart, [ ], :void ],
437
+ # EAPI void ecore_throttle_adjust(double amount );
438
+ [ :ecore_throttle_adjust, [ :double ], :void ],
439
+ # EAPI double ecore_throttle_get(void);
440
+ [ :ecore_throttle_get, [ ], :double ],
396
441
  ]
397
442
  #
398
443
  attach_fcts fcts