ecore: on first arguments event notify the needs to initialize the process state.

This commit is contained in:
Cedric BAIL 2016-07-06 15:51:25 -07:00
parent 005375176d
commit cdf04241db
2 changed files with 4 additions and 0 deletions

View 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);

View 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)