[Vala] [OT] Vala XChat Plugins Bindings



Hi all,

since yesterday I wrote an HelloWorld xchat plugin just because I was
bored, I thought that sharing the vapi could be useful to someone else.

Some comments on the vapi follows:

1) in the init & get_info functions I use pointers to pointer because if
not vala try to free an invalid pointer.

2) The vapi can be better if it try to use virtual methods for the init,
deinit & get_info functions, but first I must investigate on how vala
support virtual methods in classes that don't derive from GLib.Object

Despite that the plugin works.

Have a nice day,
Andrea

Attachment: Makefile
Description: Text Data

Attachment: xchat-helloworld.vala
Description: Text Data

Attachment: xchat-plugin.h
Description: Text Data

Attachment: xchat-plugin.vapi
Description: Text Data



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]