Change-Id: I80218bc5e3917b4ad0995dc36e7f2713c263018e
Signed-off-by: Sung-Jin Park <sj76.park@samsung.com>
#include "mmi-api-handler.h"
#include <Ecore.h>
+#include <Eina.h>
+
+static Eina_Bool _init_done = false;
int
mmi_manager_get_focus(mmi_client *client)
void
mmi_manager_init()
{
+ if (_init_done)
+ return;
+
ecore_init();
mmi_core_init();
modality_providers_init();
modality_fusions_init();
client_manager_init();
mmi_api_handler_init();
+
+ _init_done = true;
}
void
void
mmi_manager_shutdown()
{
+ if (!_init_done)
+ return;
mmi_api_handler_shutdown();
client_manager_shutdown();
modality_fusions_shutdown();
modality_providers_shutdown();
mmi_core_shutdown();
ecore_shutdown();
+
+ _init_done = false;
}