2014-09-19 11:04:31 +04:00
|
|
|
using GObject.Plugins;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Plugin of type B2.
|
|
|
|
*/
|
|
|
|
public class TypeB2 : PluginTypeB {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Constructs a new ``TypeB2``.
|
|
|
|
*/
|
|
|
|
construct {
|
2014-10-16 16:11:28 +04:00
|
|
|
stdout.puts ("TypeB2 init () called\n");
|
2014-09-19 11:04:31 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Destroys the ``TypeB2``.
|
|
|
|
*/
|
2015-01-26 20:42:17 +03:00
|
|
|
~TypeB2 () {
|
2014-10-16 16:11:28 +04:00
|
|
|
stdout.puts ("TypeB2 deinit () called\n");
|
2014-09-19 11:04:31 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2014-10-16 16:11:28 +04:00
|
|
|
* Any abstract method realization for PluginTypeB.
|
2014-09-19 11:04:31 +04:00
|
|
|
*/
|
|
|
|
public override string method_b () {
|
|
|
|
stdout.puts ("TypeB2.method_b () called\n");
|
|
|
|
return "TypeB2 returned string";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[ModuleInit]
|
2020-04-29 08:50:21 +03:00
|
|
|
public Type plugin_init (GLib.TypeModule type_module) {
|
2014-09-19 11:04:31 +04:00
|
|
|
return typeof (TypeB2);
|
|
|
|
}
|