dev/vala/TypeModules/plugin.vala

12 lines
237 B
Vala

class MyPlugin : Object, TestPlugin {
public void hello () {
stdout.printf ("Hello world!\n");
}
}
public Type register_plugin (Module module) {
// types are registered automatically
return typeof (MyPlugin);
}