2014-09-19 11:04:31 +04:00
|
|
|
using GObject.Plugins;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Plugin of type B1.
|
|
|
|
*/
|
|
|
|
public class TypeB1 : PluginTypeB {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Constructs a new ``TypeB1``.
|
|
|
|
*/
|
|
|
|
construct {
|
2014-10-16 16:11:28 +04:00
|
|
|
stdout.puts ("TypeB1 init () called\n");
|
2014-09-19 11:04:31 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Destroys the ``TypeB1``.
|
|
|
|
*/
|
2015-01-26 20:42:17 +03:00
|
|
|
~TypeB1 () {
|
2014-10-16 16:11:28 +04:00
|
|
|
stdout.puts ("TypeB1 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 ("TypeB1.method_b () called\n");
|
|
|
|
return "TypeB1 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 (TypeB1);
|
|
|
|
}
|