summaryrefslogtreecommitdiff
path: root/include/efl.ecore.pxd
diff options
context:
space:
mode:
authorDave Andreoli <dave@gurumeditation.it>2015-01-04 21:29:40 +0100
committerDave Andreoli <dave@gurumeditation.it>2015-01-04 21:29:40 +0100
commit419405e456c3b774ea726d199dbef07ac734a11b (patch)
treece1f41a9aa6a3f73de698a1c5023be97adadd369 /include/efl.ecore.pxd
parentf9e890672447aea2f1b9dcdd945ecaff304037e8 (diff)
New style enums for ecore
Diffstat (limited to 'include/efl.ecore.pxd')
-rw-r--r--include/efl.ecore.pxd103
1 files changed, 100 insertions, 3 deletions
diff --git a/include/efl.ecore.pxd b/include/efl.ecore.pxd
index 52e6521..3ceece5 100644
--- a/include/efl.ecore.pxd
+++ b/include/efl.ecore.pxd
@@ -18,11 +18,91 @@
18from efl.eina cimport * 18from efl.eina 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, \
22 Ecore_File_Event, Ecore_Poller_Type
23 21
24 22
25cdef extern from "Ecore.h": 23cdef extern from "Ecore.h":
24
25 ####################################################################
26 # Define (this are not really correct, but works)
27 #
28 cpdef enum:
29 ECORE_EVENT_NONE
30 ECORE_EVENT_SIGNAL_USER
31 ECORE_EVENT_SIGNAL_HUP
32 ECORE_EVENT_SIGNAL_EXIT
33 ECORE_EVENT_SIGNAL_POWER
34 ECORE_EVENT_SIGNAL_REALTIME
35 ECORE_EVENT_MEMORY_STATE
36 ECORE_EVENT_POWER_STATE
37 ECORE_EVENT_LOCALE_CHANGED
38 ECORE_EVENT_HOSTNAME_CHANGED
39 ECORE_EVENT_SYSTEM_TIMEDATE_CHANGED
40 ECORE_EVENT_COUNT
41
42 ECORE_CALLBACK_CANCEL
43 ECORE_CALLBACK_RENEW
44
45 ECORE_CALLBACK_PASS_ON
46 ECORE_CALLBACK_DONE
47
48 ECORE_EXE_PRIORITY_INHERIT
49
50 int ECORE_EXE_EVENT_ADD
51 int ECORE_EXE_EVENT_DEL
52 int ECORE_EXE_EVENT_DATA
53 int ECORE_EXE_EVENT_ERROR
54
55 ####################################################################
56 # Enums
57 #
58 cpdef enum Ecore_Fd_Handler_Flags:
59 ECORE_FD_READ
60 ECORE_FD_WRITE
61 ECORE_FD_ERROR
62 ctypedef enum Ecore_Fd_Handler_Flags:
63 pass
64
65 cpdef enum Ecore_Exe_Flags:
66 ECORE_EXE_NONE
67 ECORE_EXE_PIPE_READ
68 ECORE_EXE_PIPE_WRITE
69 ECORE_EXE_PIPE_ERROR
70 ECORE_EXE_PIPE_READ_LINE_BUFFERED
71 ECORE_EXE_PIPE_ERROR_LINE_BUFFERED
72 ECORE_EXE_PIPE_AUTO
73 ECORE_EXE_RESPAWN
74 ECORE_EXE_USE_SH
75 ECORE_EXE_NOT_LEADER
76 ECORE_EXE_TERM_WITH_PARENT
77 ctypedef enum Ecore_Exe_Flags:
78 pass
79
80 cpdef enum Ecore_Pos_Map:
81 ECORE_POS_MAP_LINEAR
82 ECORE_POS_MAP_ACCELERATE
83 ECORE_POS_MAP_DECELERATE
84 ECORE_POS_MAP_SINUSOIDAL
85 ECORE_POS_MAP_ACCELERATE_FACTOR
86 ECORE_POS_MAP_DECELERATE_FACTOR
87 ECORE_POS_MAP_SINUSOIDAL_FACTOR
88 ECORE_POS_MAP_DIVISOR_INTERP
89 ECORE_POS_MAP_BOUNCE
90 ECORE_POS_MAP_SPRING
91 ECORE_POS_MAP_CUBIC_BEZIER
92 ctypedef enum Ecore_Pos_Map:
93 pass
94
95 cpdef enum Ecore_Animator_Source:
96 ECORE_ANIMATOR_SOURCE_TIMER
97 ECORE_ANIMATOR_SOURCE_CUSTOM
98 ctypedef enum Ecore_Animator_Source:
99 pass
100
101 cpdef enum Ecore_Poller_Type:
102 ECORE_POLLER_CORE
103 ctypedef enum Ecore_Poller_Type:
104 pass
105
26 #################################################################### 106 ####################################################################
27 # Basic Types 107 # Basic Types
28 # 108 #
@@ -172,6 +252,24 @@ cdef extern from "Ecore.h":
172 252
173cdef extern from "Ecore_File.h": 253cdef extern from "Ecore_File.h":
174 254
255 cpdef enum Ecore_File_Event:
256 ECORE_FILE_EVENT_NONE
257 ECORE_FILE_EVENT_CREATED_FILE
258 ECORE_FILE_EVENT_CREATED_DIRECTORY
259 ECORE_FILE_EVENT_DELETED_FILE
260 ECORE_FILE_EVENT_DELETED_DIRECTORY
261 ECORE_FILE_EVENT_DELETED_SELF
262 ECORE_FILE_EVENT_MODIFIED
263 ECORE_FILE_EVENT_CLOSED
264 ctypedef enum Ecore_File_Event:
265 pass
266
267 cpdef enum Ecore_File_Progress_Return:
268 ECORE_FILE_PROGRESS_CONTINUE
269 ECORE_FILE_PROGRESS_ABORT
270 ctypedef enum Ecore_File_Progress_Return:
271 pass
272
175 ctypedef struct Ecore_File_Download_Job 273 ctypedef struct Ecore_File_Download_Job
176 ctypedef struct Ecore_File_Monitor 274 ctypedef struct Ecore_File_Monitor
177 275
@@ -179,7 +277,6 @@ cdef extern from "Ecore_File.h":
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) 277 ctypedef int (*Ecore_File_Download_Progress_Cb)(void *data, const char *file, long int dltotal, long int dlnow, long int ultotal, long int ulnow)
180 ctypedef void (*Ecore_File_Monitor_Cb)(void *data, Ecore_File_Monitor *em, Ecore_File_Event event, const char *path) 278 ctypedef void (*Ecore_File_Monitor_Cb)(void *data, Ecore_File_Monitor *em, Ecore_File_Event event, const char *path)
181 279
182
183 int ecore_file_init() 280 int ecore_file_init()
184 int ecore_file_shutdown() 281 int ecore_file_shutdown()
185 void ecore_file_download_abort(Ecore_File_Download_Job *job) 282 void ecore_file_download_abort(Ecore_File_Download_Job *job)