[Vala] Vala API causing double definition

2015-10-08 Thread Victor Aurélio Santos
Hi, consider the following Vala API file: namespace CAjami { [CCode (cprefix = "io_", cheader_filename = "io.h")] namespace IO { [CCode (cname = "io_init")] public void init(); [CCode (cname = "io_cleanup")] public void cleanup(); } } there's something

Re: [Vala] Vala API causing double definition

2015-10-09 Thread Victor Aurélio Santos
There's no ajami.h, and just [CCode (cprefix = "Ajami_")] changes nothing keep getting double definition. 2015-10-08 22:26 GMT-03:00 Ben : > I think you need [CCode (cprefix = "Ajami_", cheader_filename = "ajami.h")] > on your top namespace > > On Thu, Oct 8, 2015 at 7:29 PM, Victor Aurélio Santos

Re: [Vala] Vala API causing double definition

2015-10-09 Thread Victor Aurélio Santos
PS: keep in mind that this isn't a GLib-based library, it's plain C functions! i.e. Legacy Binds -- Victor Aurélio Santos ___ vala-list mailing list vala-list@gnome.org https://mail.gnome.org/mailman/listinfo/vala-list

Re: [Vala] Vala API causing double definition

2015-10-09 Thread Victor Aurélio Santos
Ben, can you provide more details ? Thanks. 2015-10-09 10:49 GMT-03:00 Ben Iofel : > Just put the cheader at the top > > > On Fri, Oct 9, 2015, 9:48 AM Victor Aurélio Santos > wrote: >> >> PS: keep in mind that this isn't a GLib-based library, it's plain C >> functions! i.e. Legacy Binds >> >> -

Re: [Vala] Vala API causing double definition

2015-10-09 Thread Ben Iofel
Just put the cheader at the top On Fri, Oct 9, 2015, 9:48 AM Victor Aurélio Santos < victoraur.san...@gmail.com> wrote: > PS: keep in mind that this isn't a GLib-based library, it's plain C > functions! i.e. Legacy Binds > > -- > Victor Aurélio Santos > ___

Re: [Vala] Vala API causing double definition

2015-10-09 Thread Ben
the cheader_filename attribute of [CCode] should go on the top namespace. so [CCode (cheader_filename="io.h", cprefix="Ajami_")] namespace CAjami { ... } On Fri, Oct 9, 2015 at 9:55 AM, Victor Aurélio Santos wrote: Ben, can you provide more details ? Thanks. 2015-10-09 10:49 GMT-03:00 Be

Re: [Vala] Vala API causing double definition

2015-10-10 Thread Victor A. Santos
Got it, the problem was the vapi file includes some headers that include the header generated by the vala compiler, which shouldn't happen as I can see. Any way, thanks to all ;) ___ vala-list mailing list vala-list@gnome.org https://mail.gnome.org/ma