On Mon, 19 Oct 2015 13:27:18 +0200 Olivier BATARD <[email protected]> said:
> Hello, > > > I'm a C developer, and I'm learning EFL via the get started > documentation (https://www.enlightenment.org/docs/efl/start). > > The code presented is quite simple but there one instruction I don't > understand : > > <code> > EAPI_MAIN int > </code> > > I can't find in the documentation what EAPI_MAIN means. Is it a pre > processor declare statement ? > > Thanks for your help. > > Olivier. that just declares a symbol (elm_main function) to be visible if looked up (like functions in library .so's are marked to be visible with EAPI) as the "main function". this allows things like quick launchers to skip parts of intitializing a process (by pre-initting a hot-spare process and having it hang around). if you compile right - this can then dlopen () your executable instead of executing it, skipping the initting of efl and jumping straight into the intting of your app as the initting was done already. this is a way of making processes launch even faster (it can shave a few hundred milliseconds off launch time on slow devices like phones). it's just a "pattern to follow" to make sure that LATER you don't have to go back and "fix" your apps to do this so they would then work with quicklaunch. just write them blindly from day 1 to be able to :) -- ------------- Codito, ergo sum - "I code, therefore I am" -------------- The Rasterman (Carsten Haitzler) [email protected] ------------------------------------------------------------------------------ _______________________________________________ enlightenment-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/enlightenment-users
