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.

33 lines
544 B

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