Host/Plugin Interfaces for GObject Based Applications/Libraries
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
581 B

using GObject.Plugins;
/**
* Plugin of type B2.
*/
public class TypeB2 : PluginTypeB {
/**
* Constructs a new ``TypeB2``.
*/
construct {
stdout.puts ("TypeB2 init () called\n");
}
/**
* Destroys the ``TypeB2``.
*/
~TypeB2 () {
stdout.puts ("TypeB2 deinit () called\n");
}
/**
* Any abstract method realization for PluginTypeB.
*/
public override string method_b () {
stdout.puts ("TypeB2.method_b () called\n");
return "TypeB2 returned string";
}
}
[ModuleInit]
public Type plugin_init (GLib.TypeModule type_module) {
return typeof (TypeB2);
}