summaryrefslogtreecommitdiff
path: root/include/efl.ecore.pxd
diff options
context:
space:
mode:
authorKai Huuhko <kai.huuhko@gmail.com>2014-04-05 03:13:15 +0300
committerKai Huuhko <kai.huuhko@gmail.com>2014-04-05 03:13:15 +0300
commitadf70fa26fcae845b0bc55c6eebcaeafadc4d1c7 (patch)
treec5bf8953e6b6081bb6542eb5372295875151df02 /include/efl.ecore.pxd
parent1149c6ed91a5dcb6e23998ba112d9e3d20a5ceb9 (diff)
Remove const hacks
They were a workaround for limitations in Cython <0.18
Diffstat (limited to 'include/efl.ecore.pxd')
-rw-r--r--include/efl.ecore.pxd31
1 files changed, 15 insertions, 16 deletions
diff --git a/include/efl.ecore.pxd b/include/efl.ecore.pxd
index d014926..cd8a357 100644
--- a/include/efl.ecore.pxd
+++ b/include/efl.ecore.pxd
@@ -72,7 +72,6 @@ cdef extern from "Ecore.h":
72 72
73 ctypedef struct Ecore_Fd_Handler 73 ctypedef struct Ecore_Fd_Handler
74 ctypedef struct Ecore_Exe 74 ctypedef struct Ecore_Exe
75 ctypedef Ecore_Exe const_Ecore_Exe "const Ecore_Exe"
76 75
77 #################################################################### 76 ####################################################################
78 # Other typedefs 77 # Other typedefs
@@ -83,7 +82,7 @@ cdef extern from "Ecore.h":
83 ctypedef void (*Ecore_Fd_Prep_Cb)(void *data, Ecore_Fd_Handler *fd_handler) 82 ctypedef void (*Ecore_Fd_Prep_Cb)(void *data, Ecore_Fd_Handler *fd_handler)
84 ctypedef Eina_Bool (*Ecore_Event_Handler_Cb)(void *data, int type, void *event) 83 ctypedef Eina_Bool (*Ecore_Event_Handler_Cb)(void *data, int type, void *event)
85 ctypedef void (*Ecore_End_Cb)(void *user_data, void *func_data) 84 ctypedef void (*Ecore_End_Cb)(void *user_data, void *func_data)
86 ctypedef void (*Ecore_Exe_Cb)(void *data, const_Ecore_Exe *exe) 85 ctypedef void (*Ecore_Exe_Cb)(void *data, const Ecore_Exe *exe)
87 ctypedef Eina_Bool (*Ecore_Timeline_Cb)(void *data, double pos) 86 ctypedef Eina_Bool (*Ecore_Timeline_Cb)(void *data, double pos)
88 87
89 #################################################################### 88 ####################################################################
@@ -108,7 +107,7 @@ cdef extern from "Ecore.h":
108 void ecore_animator_frametime_set(double frametime) 107 void ecore_animator_frametime_set(double frametime)
109 double ecore_animator_frametime_get() 108 double ecore_animator_frametime_get()
110 109
111 Ecore_Poller *ecore_poller_add(Ecore_Poller_Type type, int interval, Ecore_Task_Cb func, const_void *data) 110 Ecore_Poller *ecore_poller_add(Ecore_Poller_Type type, int interval, Ecore_Task_Cb func, const void *data)
112 void *ecore_poller_del(Ecore_Poller *poller) 111 void *ecore_poller_del(Ecore_Poller *poller)
113 Eina_Bool ecore_poller_poller_interval_set(Ecore_Poller *poller, int interval) 112 Eina_Bool ecore_poller_poller_interval_set(Ecore_Poller *poller, int interval)
114 int ecore_poller_poller_interval_get(Ecore_Poller *poller) 113 int ecore_poller_poller_interval_get(Ecore_Poller *poller)
@@ -149,7 +148,7 @@ cdef extern from "Ecore.h":
149 int ecore_exe_run_priority_get() 148 int ecore_exe_run_priority_get()
150 Ecore_Exe *ecore_exe_pipe_run(char *exe_cmd, Ecore_Exe_Flags flags, void *data) 149 Ecore_Exe *ecore_exe_pipe_run(char *exe_cmd, Ecore_Exe_Flags flags, void *data)
151 void ecore_exe_callback_pre_free_set(Ecore_Exe *exe, Ecore_Exe_Cb func) 150 void ecore_exe_callback_pre_free_set(Ecore_Exe *exe, Ecore_Exe_Cb func)
152 int ecore_exe_send(Ecore_Exe *exe, const_void *data, int size) 151 int ecore_exe_send(Ecore_Exe *exe, const void *data, int size)
153 void ecore_exe_close_stdin(Ecore_Exe *exe) 152 void ecore_exe_close_stdin(Ecore_Exe *exe)
154 void ecore_exe_auto_limits_set(Ecore_Exe *exe, int start_bytes, int end_bytes, int start_lines, int end_lines) 153 void ecore_exe_auto_limits_set(Ecore_Exe *exe, int start_bytes, int end_bytes, int start_lines, int end_lines)
155 Ecore_Exe_Event_Data *ecore_exe_event_data_get(Ecore_Exe *exe, Ecore_Exe_Flags flags) 154 Ecore_Exe_Event_Data *ecore_exe_event_data_get(Ecore_Exe *exe, Ecore_Exe_Flags flags)
@@ -157,8 +156,8 @@ cdef extern from "Ecore.h":
157 void *ecore_exe_free(Ecore_Exe *exe) 156 void *ecore_exe_free(Ecore_Exe *exe)
158 int ecore_exe_pid_get(Ecore_Exe *exe) 157 int ecore_exe_pid_get(Ecore_Exe *exe)
159 void ecore_exe_tag_set(Ecore_Exe *exe, char *tag) 158 void ecore_exe_tag_set(Ecore_Exe *exe, char *tag)
160 const_char * ecore_exe_tag_get(Ecore_Exe *exe) 159 const char * ecore_exe_tag_get(Ecore_Exe *exe)
161 const_char * ecore_exe_cmd_get(Ecore_Exe *exe) 160 const char * ecore_exe_cmd_get(Ecore_Exe *exe)
162 void *ecore_exe_data_get(Ecore_Exe *exe) 161 void *ecore_exe_data_get(Ecore_Exe *exe)
163 Ecore_Exe_Flags ecore_exe_flags_get(Ecore_Exe *exe) 162 Ecore_Exe_Flags ecore_exe_flags_get(Ecore_Exe *exe)
164 void ecore_exe_pause(Ecore_Exe *exe) 163 void ecore_exe_pause(Ecore_Exe *exe)
@@ -176,25 +175,25 @@ cdef extern from "Ecore_File.h":
176 ctypedef struct Ecore_File_Download_Job 175 ctypedef struct Ecore_File_Download_Job
177 ctypedef struct Ecore_File_Monitor 176 ctypedef struct Ecore_File_Monitor
178 177
179 ctypedef void (*Ecore_File_Download_Completion_Cb)(void *data, const_char *file, int status) 178 ctypedef void (*Ecore_File_Download_Completion_Cb)(void *data, const char *file, int status)
180 ctypedef int (*Ecore_File_Download_Progress_Cb)(void *data, const_char *file, long int dltotal, long int dlnow, long int ultotal, long int ulnow) 179 ctypedef int (*Ecore_File_Download_Progress_Cb)(void *data, const char *file, long int dltotal, long int dlnow, long int ultotal, long int ulnow)
181 ctypedef void (*Ecore_File_Monitor_Cb)(void *data, Ecore_File_Monitor *em, Ecore_File_Event event, const_char *path) 180 ctypedef void (*Ecore_File_Monitor_Cb)(void *data, Ecore_File_Monitor *em, Ecore_File_Event event, const char *path)
182 181
183 182
184 int ecore_file_init() 183 int ecore_file_init()
185 int ecore_file_shutdown() 184 int ecore_file_shutdown()
186 void ecore_file_download_abort(Ecore_File_Download_Job *job) 185 void ecore_file_download_abort(Ecore_File_Download_Job *job)
187 void ecore_file_download_abort_all() 186 void ecore_file_download_abort_all()
188 Eina_Bool ecore_file_download_protocol_available(const_char *protocol) 187 Eina_Bool ecore_file_download_protocol_available(const char *protocol)
189 Eina_Bool ecore_file_download(const_char *url, const_char *dst, 188 Eina_Bool ecore_file_download(const char *url, const char *dst,
190 Ecore_File_Download_Completion_Cb completion_cb, 189 Ecore_File_Download_Completion_Cb completion_cb,
191 Ecore_File_Download_Progress_Cb progress_cb, 190 Ecore_File_Download_Progress_Cb progress_cb,
192 void *data, 191 void *data,
193 Ecore_File_Download_Job **job_ret) 192 Ecore_File_Download_Job **job_ret)
194 193
195 Ecore_File_Monitor *ecore_file_monitor_add(const_char *path, Ecore_File_Monitor_Cb func, void *data) 194 Ecore_File_Monitor *ecore_file_monitor_add(const char *path, Ecore_File_Monitor_Cb func, void *data)
196 void ecore_file_monitor_del(Ecore_File_Monitor *ecore_file_monitor) 195 void ecore_file_monitor_del(Ecore_File_Monitor *ecore_file_monitor)
197 const_char *ecore_file_monitor_path_get(Ecore_File_Monitor *ecore_file_monitor) 196 const char *ecore_file_monitor_path_get(Ecore_File_Monitor *ecore_file_monitor)
198 197
199 198
200#################################################################### 199####################################################################
@@ -334,8 +333,8 @@ cdef class FileDownload:
334 cdef readonly object args 333 cdef readonly object args
335 cdef readonly object kargs 334 cdef readonly object kargs
336 335
337 cdef object _exec_completion(self, const_char *file, int status) 336 cdef object _exec_completion(self, const char *file, int status)
338 cdef object _exec_progress(self, const_char *file, 337 cdef object _exec_progress(self, const char *file,
339 long int dltotal, long int dlnow, 338 long int dltotal, long int dlnow,
340 long int ultotal, long int ulnow) 339 long int ultotal, long int ulnow)
341 340
@@ -346,4 +345,4 @@ cdef class FileMonitor:
346 cdef readonly object args 345 cdef readonly object args
347 cdef readonly object kargs 346 cdef readonly object kargs
348 347
349 cdef object _exec_monitor(self, Ecore_File_Event event, const_char *path) 348 cdef object _exec_monitor(self, Ecore_File_Event event, const char *path)