[Vala] [ModuleInit]?



What is this decorator supposed to do?

I stumbled over it when experimenting with shared objects, but it
doesn't seem to have any effect, at least not changing the function it
decorates to be called at init time.

For this, it looks we need a

public string g_module_check_init(TypeModule module)

in the module -- which works fine and gets called on init-time.

Am I missing something or is ModuleInit perhaps completely unrelated to
loading shared modules? In that case, we need to fix the wiki page :)

Cheers,

-- 
:M:




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]