2014-09-19 11:04:31 +04:00
|
|
|
using GObject.Plugins;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Plugin of type A2.
|
|
|
|
*/
|
|
|
|
public class TypeA2 : PluginTypeA {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Constructs a new ``TypeA2``.
|
|
|
|
*/
|
|
|
|
construct {
|
2014-10-16 16:11:28 +04:00
|
|
|
stdout.puts ("TypeA2 init () called\n");
|
2014-09-19 11:04:31 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Destroys the ``TypeA2``.
|
|
|
|
*/
|
|
|
|
~Test () {
|
2014-10-16 16:11:28 +04:00
|
|
|
stdout.puts ("TypeA2 deinit () called\n");
|
2014-09-19 11:04:31 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2014-10-16 16:11:28 +04:00
|
|
|
* Any abstract method realization for PluginTypeA.
|
2014-09-19 11:04:31 +04:00
|
|
|
*/
|
|
|
|
public override void method_a () {
|
|
|
|
stdout.puts ("TypeA2.method_a () called\n");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[ModuleInit]
|
|
|
|
Type plugin_init (GLib.TypeModule type_module) {
|
|
|
|
return typeof (TypeA2);
|
|
|
|
}
|