dev/vala/TypeModuleSample/plugin.vala

31 lines
521 B
Vala

public class MyNameIsVasya : Object {
construct {
stdout.puts ("(construct) My name is Vasya\n");
}
public MyNameIsVasya () {
stdout.puts ("My name is Vasya\n");
}
}
public class MyClass : Object {
//Type type;
construct {
message("MyClass init");
//var tmp = new MyNameIsVasya();
//type = typeof(MyNameIsVasya);
}
~MyClass() {
message("MyClass deinit");
}
}
[ModuleInit]
Type plugin_init(GLib.TypeModule type_module) {
stdout.puts ("---plugin_init() called---\n");
return typeof(MyClass);
}