forked from enlightenment/efl
ecore: on first arguments event notify the needs to initialize the process state.
This commit is contained in:
parent
005375176d
commit
cdf04241db
|
@ -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);
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue