summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2017-12-07 11:25:40 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-12-07 11:25:40 +0900
commit3c68a8afc999672461b09bc58d4aa84a8108f0a8 (patch)
tree6f6ab12e5b2d390a3328ddd8215581319cae5ead /src
parente4797e75f7600f3553c4a5d5c675c25512fb71fc (diff)
eo: Remove unnecessary defines from the EO file
Those promise/future APIs are not required in the EO files.
Diffstat (limited to 'src')
-rw-r--r--src/lib/eo/eina_types.eot79
1 files changed, 0 insertions, 79 deletions
diff --git a/src/lib/eo/eina_types.eot b/src/lib/eo/eina_types.eot
index dfda30d156..fc0fca09cc 100644
--- a/src/lib/eo/eina_types.eot
+++ b/src/lib/eo/eina_types.eot
@@ -78,84 +78,5 @@ struct @extern Eina.Rw_Slice {
78} 78}
79 79
80struct @extern Eina.Value.Type; [[Eina value type]] 80struct @extern Eina.Value.Type; [[Eina value type]]
81
82struct @extern Eina.Future; [[Eina_Future handle]] 81struct @extern Eina.Future; [[Eina_Future handle]]
83struct @extern Eina.Promise; [[Eina_Promise handle]] 82struct @extern Eina.Promise; [[Eina_Promise handle]]
84struct @extern @free(eina_future_desc_flush) Eina_Future_Desc; [[A struct used to define a callback and data for a future.]]
85struct @extern @free(eina_future_cb_easy_desc_flush) Eina_Future_Cb_Easy_Desc; [[A struct with callbacks to be used by eina_future_cb_easy_from_desc() and eina_future_cb_easy()]]
86struct @extern Eina_Future_Cb_Console_Desc; [[A struct used to define the prefix and suffix to be printed
87 along side the a future value. This struct is used by
88 eina_future_cb_console_from_desc()]]
89struct @extern Eina_Future_Schedule_Entry; [[A struct that represents an scheduled event.
90 This struct may be used by Eina to cancel
91 a scheduled future.]]
92struct @extern Eina.Future.Scheduler; [[This struct is used as a bridge between Eina and the future scheduler.
93 By using the provided functions Eina can schedule futures resolutions,
94 rejections and cancelations to a safe context.]]
95
96function @extern Eina.Future.Cb {
97 params {
98 value: const(any_value); [[An Eina_Value which contains the operation result. Before using
99 the value, its type must be checked in order to avoid errors. This is needed, because
100 if an operation fails the Eina_Value type will be EINA_VALUE_TYPE_ERROR
101 which is a different type than the expected operation result.]]
102 dead_ptr: const(ptr(Eina.Future)); [[A pointer to the future that was completed]]
103 }
104 return: any_value; [[An Eina_Value to pass to the next Eina_Future in the chain (if any).
105 If there is no need to convert the received value, it's recommended
106 to pass-thru value argument. If you need to convert to a different type
107 or generate a new value, use eina_value_setup() on another Eina_Value
108 and return it. By returning an promise Eina_Value (eina_promise_as_value()) the
109 whole chain will wait until the promise is resolved in order to continue its execution.
110 Note that the value contents must survive this function scope,
111 that is, do not use stack allocated blobs, arrays, structures or types that
112 keeps references to memory you give. Values will be automatically cleaned up
113 using eina_value_flush() once they are unused (no more future or futures
114 returned a new value).]]
115};
116
117function @extern Eina.Promise.Cancel.Cb {
118 params {
119 dead_promise: const(ptr(Eina.Promise)); [[The canceled promise.]]
120 }
121};
122
123function @extern Eina.Future.Success.Cb {
124 params {
125 value: const(any_value); [[The operation result]]
126 }
127 return: any_value; [[An Eina_Value to pass to the next Eina_Future in the chain (if any).
128 If there is no need to convert the received value, it's recommended
129 to pass-thru value argument. If you need to convert to a different type
130 or generate a new value, use eina_value_setup() on another Eina_Value
131 and return it. By returning an promise Eina_Value (eina_promise_as_value()) the
132 whole chain will wait until the promise is resolved in order to continue its execution.
133 Note that the value contents must survive this function scope,
134 that is, do not use stack allocated blobs, arrays, structures or types that
135 keeps references to memory you give. Values will be automatically cleaned up
136 using eina_value_flush() once they are unused (no more future or futures
137 returned a new value).]]
138};
139
140function @extern Eina.Future.Error.Cb {
141 params {
142 error: const(Eina.Error); [[The operation error]]
143 }
144 return: any_value; [[An Eina_Value to pass to the next Eina_Future in the chain (if any).
145 If there is no need to convert the received value, it's recommended
146 to pass-thru value argument. If you need to convert to a different type
147 or generate a new value, use eina_value_setup() on another Eina_Value
148 and return it. By returning an promise Eina_Value (eina_promise_as_value()) the
149 whole chain will wait until the promise is resolved in order to continue its execution.
150 Note that the value contents must survive this function scope,
151 that is, do not use stack allocated blobs, arrays, structures or types that
152 keeps references to memory you give. Values will be automatically cleaned up
153 using eina_value_flush() once they are unused (no more future or futures
154 returned a new value).]]
155};
156
157function @extern Eina.Future.Free.Cb {
158 params {
159 dead_future: const(ptr(Eina.Future)); [[The future that was freed]]
160 }
161};