ecore: on first arguments event notify the needs to initialize the process state.
authorCedric BAIL <cedric@osg.samsung.com>
Wed, 6 Jul 2016 22:51:25 +0000 (15:51 -0700)
committerCedric BAIL <cedric@osg.samsung.com>
Wed, 6 Jul 2016 22:51:25 +0000 (15:51 -0700)
src/lib/ecore/ecore_main.c
src/lib/ecore/efl_loop.eo

index 438b5c7..1bb6999 100644 (file)
@@ -2862,10 +2862,13 @@ _efl_loop_arguments_cleanup(Eina_Array *arga)
 static void
 _efl_loop_arguments_send(void *data, void *value EINA_UNUSED)
 {
+   static Eina_Bool initialization = EINA_TRUE;
    Efl_Loop_Arguments arge;
    Eina_Array *arga = data;
 
    arge.argv = arga;
+   arge.initialization = initialization;
+   initialization = EINA_FALSE;
 
    eo_event_callback_call(ecore_main_loop_get(), EFL_LOOP_EVENT_ARGUMENTS, &arge);
 
index 74544cd..6b0d503 100644 (file)
@@ -2,6 +2,7 @@ import efl_types;
 
 struct Efl.Loop.Arguments {
    argv: const(array<const(stringshare)>);
+   initialization: bool; [[Set to true when the program should initialize its internal state. This happen once per process instance.]]
 }
 
 class Efl.Loop (Eo.Base)