Page MenuHomePhabricator

efl_app: introduce app_main for getting the app object
ClosedPublic

Authored by bu5hm4n on Dec 19 2018, 11:54 AM.

Details

Summary

This brings in the possibility to receive the app object from bindings.
With the app object you can listen to pause / args / terminate / resume
events.

fix T7509

Depends on D7420

Diff Detail

Repository
rEFL core/efl
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
bu5hm4n created this revision.Dec 19 2018, 11:54 AM
bu5hm4n requested review of this revision.Dec 19 2018, 11:54 AM
cedric requested changes to this revision.Dec 19 2018, 12:17 PM

Indeed a lot of change, but I am ok with them.

src/lib/ecore/efl_app.eo
8

Please update the doc that this call can only work if done in the main loop at this point.

This revision now requires changes to proceed.Dec 19 2018, 12:17 PM
bu5hm4n added inline comments.Dec 19 2018, 12:21 PM
src/lib/ecore/efl_app.eo
8

I am afraid, i don't understand completly, what do oyu mean with *in the main loop* ?

@bu5hm4n: Efl.App is special as it is only accessible in the main loop thread domain due to current Eo thread constraint. The pointer you would get from that call can not be accessed from any other thread even if you tried.

bu5hm4n updated this revision to Diff 17981.Dec 19 2018, 12:31 PM
bu5hm4n edited the summary of this revision. (Show Details)

update

Okay, got it :)

cedric accepted this revision.Dec 19 2018, 1:15 PM
This revision is now accepted and ready to land.Dec 19 2018, 1:15 PM
Closed by commit rEFL20ddd4c67906: efl_app: introduce app_main for getting the app object (authored by Marcel Hollerbach <mail@marcel-hollerbach.de>). · Explain WhyDec 20 2018, 3:57 AM
This revision was automatically updated to reflect the committed changes.