devilhorns pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=607026d3c6db9aeb0173a8d348b8c4fec72523b5

commit 607026d3c6db9aeb0173a8d348b8c4fec72523b5
Author: Chris Michael <[email protected]>
Date:   Thu Dec 4 08:54:48 2014 -0500

    ecore: Add a new API function ecore_main_loop_nested_get
    
    Summary: This commit adds a new function 'ecore_main_loop_nested_get'
    so that we can detect if the ecore_main_loop is running.
    
    NB: This is going to be needed for a new eldbus function that we have
    to add in order to handle a use-case on the Wayland side. Spoke with
    cedric for a while wrt to all this, and he gave it his 'ok' ;)
    
    @feature
    
    Signed-off-by: Chris Michael <[email protected]>
---
 src/lib/ecore/Ecore_Common.h | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/src/lib/ecore/Ecore_Common.h b/src/lib/ecore/Ecore_Common.h
index d620987..6c4b367 100644
--- a/src/lib/ecore/Ecore_Common.h
+++ b/src/lib/ecore/Ecore_Common.h
@@ -281,6 +281,16 @@ EAPI void ecore_main_loop_quit(void);
 EAPI Eina_Bool ecore_main_loop_animator_ticked_get(void);
 
 /**
+ * Returns if the ecore_main_loop is running
+ * 
+ * @return an integer specifying if the ecore_main_loop is running,
+ *         0 if not running, > 0 if running
+ * 
+ * @since 1.3
+ */
+EAPI int ecore_main_loop_nested_get(void);
+
+/**
  * @typedef Ecore_Cb Ecore_Cb
  * A generic callback called as a hook when a certain point in
  * execution is reached.

-- 


Reply via email to