Hi, > With this patch, a module will not be able to use the module_init macro > twice. I am not sure this is an acceptable limitation, especially if we > do not have a dependency system within modules and/or load them with > G_MODULE_LOCAL/RTLD_LOCAL.
Exactly. To modularize spice we need either inter-module dependencies, so spice-audio.mo can depend on spice-core.mo etc, or allow multiple module_init calls so we can link all spice components into one big spice.mo module and each component can use module_init. It's not mandatory for the initial revision, we'll need a bit more (like registering monitor commands for 'info spice') so we can actually modularize spice. But it should definitively on the radar for the planning ... cheers, Gerd