[Vala] new async gio vapi

2009-09-14 Thread lariamat
Hi all I wonder how the latest changes to the gio vapi have to be used in a program. I have no experience with the other async stuff. How can I connect that to a callback that would handle the GLib.AsyncResult like in

[Vala] A note about weak/unowned struct

2009-09-14 Thread Yu Feng
Dear List, Here is some of my observation regarding to weak/unowned struct, which I would like to share with you. I am not sure if the feature has landed or not, but currently a weak/unowned struct is compiled into a bitwise copy of the memory content of the referred struct. in other words, it

[Vala] Array concatenation (bug)

2009-09-14 Thread Jan Hudec
Hello folks, I have a function, that gets an array (owned), needs to copy it n times, add a different member to each copy and pass that on (recursively). I have two issues: 1) I've done it like this: function(owned Something[] array) { for(...) { var copy = array;

[Vala] Variable sized structs and vapi files

2009-09-14 Thread Jan-Jaap van der Geer
I wonder how to vapify a struct that has a variable part at the end, such as the wimp_menu below (somewhat simplyfied): struct wimp_menu_entry { wimp_menu_flags menu_flags; wimp_menu *sub_menu; }; #define wimp_MENU_MEMBERS \ int width; \ int height; struct wimp_menu {

[Vala] using a non-glib C library in vala

2009-09-14 Thread Mr. Maxwell .
I wish to use the id3lib (http://id3lib.sourceforge.net/) library in vala. The only info I could find on writing the vapi file was for glib libraries, could you guys help me here? I have no idea where to start. _ Hotmail: Free,