Extending vala C backend at runtime
Submitted by Luca Bruno
Link to original bug (#624655)
Description
Hello, I'd like to propose a way to extend the Vala C backend at runtime by using gmodule plugins. A plugin must inherit from Vala.CCodeModule and put the library in a directory like /usr/lib/vala/cmodules.
Then Vala at runtime will scan for cmodules in that directory and put each CCodeModule on top of the generator stack to have precedence over the default ones.