In progress...
This commit is contained in:
parent
6852189789
commit
8d4a28f4eb
|
@ -1,10 +1,38 @@
|
|||
using Gtk;
|
||||
using LAview, GObject.Plugins;
|
||||
|
||||
extern const string GETTEXT_PACKAGE;
|
||||
|
||||
void main (string[] args) {
|
||||
/**
|
||||
* Plugin of type A1.
|
||||
*/
|
||||
public class PluginDataExample : PluginData {
|
||||
|
||||
stdout.printf ("hello, world\n");
|
||||
/**
|
||||
* Constructs a new ``PluginDataExample``.
|
||||
*/
|
||||
construct {
|
||||
stdout.puts ("PluginDataExample init () called\n");
|
||||
}
|
||||
|
||||
return;
|
||||
/**
|
||||
* Destroys the ``PluginDataExample``.
|
||||
*/
|
||||
~PluginDataExample () {
|
||||
stdout.puts ("PluginDataExample deinit () called\n");
|
||||
}
|
||||
|
||||
/**
|
||||
* Any abstract method realization for PluginData.
|
||||
*/
|
||||
public override string get_readable_name () {
|
||||
stdout.puts ("PluginDataExample.get_readable_name () called\n");
|
||||
stdout.puts ("Call IHostCore.any_host_method () from PluginDataExample:\n ");
|
||||
(host as IHostCore).any_host_method ();
|
||||
return _("Data Example");
|
||||
}
|
||||
}
|
||||
|
||||
[ModuleInit]
|
||||
Type plugin_init (GLib.TypeModule type_module) {
|
||||
return typeof (PluginDataExample);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue