summaryrefslogtreecommitdiff
path: root/include/efl.ecore.pxd
diff options
context:
space:
mode:
authordavemds <dave@gurumeditation.it>2013-05-12 19:15:09 +0200
committerdavemds <dave@gurumeditation.it>2013-05-12 19:15:09 +0200
commit39e16242a046e238f84e6b35955bdb2bd6573b8e (patch)
tree2dca4f229c97194f1e7ac9f78202e319aa2a715b /include/efl.ecore.pxd
parent6e221b54c517195da40189aa2a67dec3306bc84d (diff)
Python-EFL: implemented ecore.FileMonitor class
Diffstat (limited to 'include/efl.ecore.pxd')
-rw-r--r--include/efl.ecore.pxd18
1 files changed, 17 insertions, 1 deletions
diff --git a/include/efl.ecore.pxd b/include/efl.ecore.pxd
index 3d92871..5b7bd26 100644
--- a/include/efl.ecore.pxd
+++ b/include/efl.ecore.pxd
@@ -18,7 +18,8 @@
18from efl cimport * 18from efl cimport *
19from efl.c_eo cimport Eo as cEo 19from efl.c_eo cimport Eo as cEo
20from efl.eo cimport Eo 20from efl.eo cimport Eo
21from efl.ecore.enums cimport Ecore_Fd_Handler_Flags, Ecore_Exe_Flags 21from efl.ecore.enums cimport Ecore_Fd_Handler_Flags, Ecore_Exe_Flags, \
22 Ecore_File_Event
22 23
23 24
24cdef extern from "Ecore.h": 25cdef extern from "Ecore.h":
@@ -165,9 +166,12 @@ cdef extern from "Ecore.h":
165cdef extern from "Ecore_File.h": 166cdef extern from "Ecore_File.h":
166 167
167 ctypedef struct Ecore_File_Download_Job 168 ctypedef struct Ecore_File_Download_Job
169 ctypedef struct Ecore_File_Monitor
168 170
169 ctypedef void (*Ecore_File_Download_Completion_Cb)(void *data, const_char *file, int status) 171 ctypedef void (*Ecore_File_Download_Completion_Cb)(void *data, const_char *file, int status)
170 ctypedef int (*Ecore_File_Download_Progress_Cb)(void *data, const_char *file, long int dltotal, long int dlnow, long int ultotal, long int ulnow) 172 ctypedef int (*Ecore_File_Download_Progress_Cb)(void *data, const_char *file, long int dltotal, long int dlnow, long int ultotal, long int ulnow)
173 ctypedef void (*Ecore_File_Monitor_Cb)(void *data, Ecore_File_Monitor *em, Ecore_File_Event event, const_char *path)
174
171 175
172 int ecore_file_init() 176 int ecore_file_init()
173 int ecore_file_shutdown() 177 int ecore_file_shutdown()
@@ -180,6 +184,10 @@ cdef extern from "Ecore_File.h":
180 void *data, 184 void *data,
181 Ecore_File_Download_Job **job_ret) 185 Ecore_File_Download_Job **job_ret)
182 186
187 Ecore_File_Monitor *ecore_file_monitor_add(const_char *path, Ecore_File_Monitor_Cb func, void *data)
188 void ecore_file_monitor_del(Ecore_File_Monitor *ecore_file_monitor)
189 const_char *ecore_file_monitor_path_get(Ecore_File_Monitor *ecore_file_monitor)
190
183 191
184#################################################################### 192####################################################################
185# Python classes 193# Python classes
@@ -316,3 +324,11 @@ cdef class FileDownload:
316 long int dltotal, long int dlnow, 324 long int dltotal, long int dlnow,
317 long int ultotal, long int ulnow) 325 long int ultotal, long int ulnow)
318 326
327
328cdef class FileMonitor:
329 cdef Ecore_File_Monitor *mon
330 cdef readonly object monitor_cb
331 cdef readonly object args
332 cdef readonly object kargs
333
334 cdef object _exec_monitor(self, Ecore_File_Event event, const_char *path)