Re: [Vala] cname in vapigen metadata

2010-02-12 Thread Abderrahim Kitouni
Hi, Gabe Gorelick-Feldman wrote: Is there a way to use the cname CCode attribute in vapigen's metadata file? I've tried it on a bunch of different elements (classes, methods, signals) and it doesn't seem to work. Also, there are no instances of it being used in the git tree for the bindings

[Vala] Problem while creating a vapi file for a typedef'd pointer.

2010-02-12 Thread Geoffrey Blackman
Hi, I'm attempting to create a vapi file for Verilog VPI and have run into a problem with a opaque pointer type. Different implementations of VPI define the type vpiHandle differently. Two examples are typedef void *vpiHandle; typedef struct __vpiHandle *vpiHandle; I therefor need to define a

Re: [Vala] Problem while creating a vapi file for a typedef'd pointer.

2010-02-12 Thread Abderrahim Kitouni
Hi, Geoffrey Blackman wrote: Hi, I'm attempting to create a vapi file for Verilog VPI and have run into a problem with a opaque pointer type. Different implementations of VPI define the type vpiHandle differently. Two examples are typedef void *vpiHandle; I don't know if this is bindable in

Re: [Vala] Problem while creating a vapi file for a typedef'd pointer.

2010-02-12 Thread Jan Hudec
On Fri, Feb 12, 2010 at 17:40:16 +0100, Abderrahim Kitouni wrote: Hi, Geoffrey Blackman wrote: Hi, I'm attempting to create a vapi file for Verilog VPI and have run into a problem with a opaque pointer type. Different implementations of VPI define the type vpiHandle differently. Two

[Vala] using libgee from c

2010-02-12 Thread Martin DeMello
Other than reading gee.h directly, is there any documentation on the C api to libgee? martin ___ Vala-list mailing list Vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list

[Vala] sorted keys from a hash

2010-02-12 Thread Martin DeMello
What's the most efficient (in terms of speed) way to iterate over a hash in sorted order of the keys? The keys are strings. martin ___ Vala-list mailing list Vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list

Re: [Vala] using libgee from c

2010-02-12 Thread Jan Hudec
Hello, On Sat, Feb 13, 2010 at 01:28:21 +0530, Martin DeMello wrote: Other than reading gee.h directly, is there any documentation on the C api to libgee? The conversion between Vala and C api is straightforward. So you can simply look at the documentation at www.valadoc.org and learn to know

Re: [Vala] sorted keys from a hash

2010-02-12 Thread Jan Hudec
On Sat, Feb 13, 2010 at 02:54:21 +0530, Martin DeMello wrote: What's the most efficient (in terms of speed) way to iterate over a hash in sorted order of the keys? The keys are strings. To use a balanced tree. Hash can only ever be iterated in the hash order, which is fixed but pseudo-random.

[Vala] vapigen changing delegate names

2010-02-12 Thread Gabe Gorelick-Feldman
Changing the name of a callback/delegate in vapigen seems broken. Using delegate_name name=new_name in the metadata file does change the vala name of the delegate, but it does not correct the cname. With other types, changing the vala name causes it to annotate it with [CCode (cname=old_name)],