Note: this is both @class and @property. Hope that's ok for
all bindings.
This returns same as ecore_main_loop_get() (which now uses the eo
api instead).
Ping @cedric (so he can check this patch).
Eo *_mainloop_singleton = NULL;
-EAPI Eo *ecore_main_loop_get(void)
+EOLIAN static Efl_Loop *
+_efl_loop_main_get(Eo_Class *klass EINA_UNUSED, void *_pd EINA_UNUSED)
{
if (!_mainloop_singleton)
{
return _mainloop_singleton;
}
+EAPI Eo *
+ecore_main_loop_get(void)
+{
+ return efl_loop_main_get(EFL_LOOP_CLASS);
+}
+
EOLIAN static void
_efl_loop_iterate(Eo *obj EINA_UNUSED, Efl_Loop_Data *pd EINA_UNUSED)
{
provide them if you need to.
]]
methods {
+ @property main @class {
+ [[Points to the main loop instance of the application.]]
+ get {}
+ values {
+ main_loop: Efl.Loop;
+ }
+ }
iterate {
[[Runs a single iteration of the main loop to process everything on the
queue.]]