summaryrefslogtreecommitdiff
path: root/src/lib/ecore_evas/ecore_evas.c
diff options
context:
space:
mode:
authorJiyoun Park <jijibe99@gmail.com>2013-02-15 09:32:40 +0000
committerJiyoun Park <jijibe99@gmail.com>2013-02-15 09:32:40 +0000
commitc5a8a6b5ff3da760fdd5018fdfba05cc2b82588e (patch)
tree021977392dcc128263818e9c118dfd8ae94e25b4 /src/lib/ecore_evas/ecore_evas.c
parent98854667875ef83fc18a393a5d26b30603984b97 (diff)
Add infrastructure to handle message between ecore and parent ecore in Ecore_Evas
I add new example related with this. (ecore_evas_extn_socket & plug example) ecore extn use this infrasturcture, server app and client app can communicate each other later, this can be used to contorl access message SVN revision: 83942
Diffstat (limited to 'src/lib/ecore_evas/ecore_evas.c')
-rw-r--r--src/lib/ecore_evas/ecore_evas.c55
1 files changed, 55 insertions, 0 deletions
diff --git a/src/lib/ecore_evas/ecore_evas.c b/src/lib/ecore_evas/ecore_evas.c
index daa12ea9c3..15b95736f3 100644
--- a/src/lib/ecore_evas/ecore_evas.c
+++ b/src/lib/ecore_evas/ecore_evas.c
@@ -2192,6 +2192,61 @@ ecore_evas_manual_render(Ecore_Evas *ee)
2192} 2192}
2193 2193
2194EAPI void 2194EAPI void
2195ecore_evas_msg_parent_send(Ecore_Evas *ee, int msg_domain, int msg_id, void *data, int size)
2196{
2197 if (!ECORE_MAGIC_CHECK(ee, ECORE_MAGIC_EVAS))
2198 {
2199 ECORE_MAGIC_FAIL(ee, ECORE_MAGIC_EVAS,
2200 "ecore_evas_msg_parent_send");
2201 return;
2202 }
2203 DBG("Msg(to parent): ee=%p msg_domain=%d msg_id=%d size=%d", ee, msg_domain, msg_id, size);
2204 IFC(ee, fn_msg_parent_send) (ee, msg_domain, msg_id, data, size);
2205 IFE;
2206}
2207
2208EAPI void
2209ecore_evas_msg_send(Ecore_Evas *ee, int msg_domain, int msg_id, void *data, int size)
2210{
2211 if (!ECORE_MAGIC_CHECK(ee, ECORE_MAGIC_EVAS))
2212 {
2213 ECORE_MAGIC_FAIL(ee, ECORE_MAGIC_EVAS,
2214 "ecore_evas_msg_send");
2215 return;
2216 }
2217 DBG("Msg: ee=%p msg_domain=%d msg_id=%d size=%d", ee, msg_domain, msg_id, size);
2218 IFC(ee, fn_msg_send) (ee, msg_domain, msg_id, data, size);
2219 IFE;
2220}
2221
2222EAPI void
2223ecore_evas_callback_msg_parent_handle_set(Ecore_Evas *ee, void (*func_parent_handle)(Ecore_Evas *ee, int msg_domain, int msg_id, void *data, int size))
2224{
2225 if (!ECORE_MAGIC_CHECK(ee, ECORE_MAGIC_EVAS))
2226 {
2227 ECORE_MAGIC_FAIL(ee, ECORE_MAGIC_EVAS,
2228 "ecore_evas_msg_parent_handle");
2229 return;
2230 }
2231 DBG("Msg Parent handle: ee=%p", ee);
2232 ee->func.fn_msg_parent_handle = func_parent_handle;
2233}
2234
2235EAPI void
2236ecore_evas_callback_msg_handle_set(Ecore_Evas *ee, void (*func_handle)(Ecore_Evas *ee, int msg_domain, int msg_id, void *data, int size))
2237{
2238 if (!ECORE_MAGIC_CHECK(ee, ECORE_MAGIC_EVAS))
2239 {
2240 ECORE_MAGIC_FAIL(ee, ECORE_MAGIC_EVAS,
2241 "ecore_evas_msg_handle");
2242 return;
2243 }
2244 DBG("Msg handle: ee=%p", ee);
2245 ee->func.fn_msg_handle = func_handle;
2246}
2247
2248
2249EAPI void
2195ecore_evas_comp_sync_set(Ecore_Evas *ee, Eina_Bool do_sync) 2250ecore_evas_comp_sync_set(Ecore_Evas *ee, Eina_Bool do_sync)
2196{ 2251{
2197 if (!ECORE_MAGIC_CHECK(ee, ECORE_MAGIC_EVAS)) 2252 if (!ECORE_MAGIC_CHECK(ee, ECORE_MAGIC_EVAS))