cedric pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=44bb0c18480f5094fcd0c8be93de87be5c1d78c5

commit 44bb0c18480f5094fcd0c8be93de87be5c1d78c5
Author: Cedric BAIL <[email protected]>
Date:   Tue Nov 14 16:55:49 2017 -0800

    elementary: currently double declare elm_init/shutdown.
---
 src/lib/elementary/Efl_Ui.h | 53 +++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 53 insertions(+)

diff --git a/src/lib/elementary/Efl_Ui.h b/src/lib/elementary/Efl_Ui.h
index 09b2be9a4c..75c3e3cbae 100644
--- a/src/lib/elementary/Efl_Ui.h
+++ b/src/lib/elementary/Efl_Ui.h
@@ -127,6 +127,9 @@ extern "C" {
 
 extern EAPI double _efl_startup_time;
 
+// EO types. Defined for legacy-only builds as legacy uses typedef of EO types.
+#include "efl_ui.eot.h"
+
 # include <efl_ui_focus_object.eo.h>
 # include <efl_ui_focus_manager.eo.h>
 # include <efl_ui_focus_manager_calc.eo.h>
@@ -186,6 +189,56 @@ extern EAPI double _efl_startup_time;
 # include <efl_ui_bg_eo.h>
 # include <efl_ui_panes_eo.h>
 
+/**
+ * Initialize Elementary
+ *
+ * @param[in] argc System's argument count value
+ * @param[in] argv System's pointer to array of argument strings
+ * @return The init counter value.
+ *
+ * This function initializes Elementary and increments a counter of
+ * the number of calls to it. It returns the new counter's value.
+ *
+ * @warning This call is exported only for use by the @c ELM_MAIN()
+ * macro. There is no need to use this if you use this macro (which
+ * is highly advisable). An elm_main() should contain the entry
+ * point code for your application, having the same prototype as
+ * elm_init(), and @b not being static (putting the @c EAPI_MAIN symbol
+ * in front of its type declaration is advisable). The @c
+ * ELM_MAIN() call should be placed just after it.
+ *
+ * Example:
+ * @dontinclude bg_example_01.c
+ * @skip static void
+ * @until ELM_MAIN
+ *
+ * See the full @ref bg_example_01_c "example".
+ *
+ * @see elm_shutdown().
+ * @ingroup Elm_General
+ */
+EAPI int       elm_init(int argc, char **argv);
+
+/**
+ * Shut down Elementary
+ *
+ * @return The init counter value.
+ *
+ * This should be called at the end of your application, just
+ * before it ceases to do any more processing. This will clean up
+ * any permanent resources your application may have allocated via
+ * Elementary that would otherwise persist.
+ *
+ * @see elm_init() for an example
+ *
+ * @note elm_shutdown() will iterate main loop until all ecore_evas are freed.
+ * There is a possibility to call your ecore callbacks(timer, animator, event,
+ * job, and etc.) in elm_shutdown()
+ *
+ * @ingroup Elm_General
+ */
+EAPI int       elm_shutdown(void);
+
 #ifdef __cplusplus
 }
 #endif

-- 


Reply via email to