Re: [Vala] Iterate in VAPI bindings

2016-12-31 Thread Andre Masella
ps://github.com/freebsd/pkg/blob/1.9.4/libpkg/pkg.h.in#L1501 > > > > > > -- > > > olivier > > > ___ > > > vala-list mailing list > > > vala-list@gnome.org > > > https://mail.gnome.org/mailman/

Re: [Vala] help with writting vapi...

2015-11-23 Thread Andre Masella
ossible to add an annotation to allow for passing a > non-SimpleType struct as a value. I don't spend much time in the > compiler, but I believe a small change to > valaccodemethodcallmodule.vala would do the trick. > > > -Evan > ___ > vala-list mai

Re: [Vala] How does IOError.from_errno works?

2015-03-03 Thread Andre Masella
r-Morency > > ___ > vala-list mailing list > vala-list@gnome.org > https://mail.gnome.org/mailman/listinfo/vala-list > > -- --Andre Masella http://www.masella.name/ ___ vala-list mailing list vala-list@gnome.org https://mail.gnome.org/mailman/listinfo/vala-list

Re: [Vala] conversion segfault

2015-02-06 Thread Andre Masella
Vdq58e7b > T5wQ+Q+nsb21LoQpd+bw2vDlRhmjJcAWXoXG/6YFPIU1zi2n9jTZ3/75m4btG6P1 > sS3L99w22KldN1JDlCCWkH+6bnrQfwOP0YArQbtP7zVWEZCmKtH3ncXrAdrkjhIp > hcHAzgtsrH2fggQ9VGPMGrVVz5ALTxOMt2qUKtXSoC4LtlNDVFEXAtxvYIj5REjD > L2rx0BsJxwRq+OQfRsal > =H26t > -END PGP SIGNATURE- > ___

Re: [Vala] I found a major bug

2014-12-19 Thread Andre Masella
list mailing list > vala-list@gnome.org > https://mail.gnome.org/mailman/listinfo/vala-list > -- --Andre Masella http://www.masella.name/ ___ vala-list mailing list vala-list@gnome.org https://mail.gnome.org/mailman/listinfo/vala-list

Re: [Vala] Writing bindings as legacy

2014-11-23 Thread Andre Masella
unowned. > > What I want is to do it in a way it's everything handled in the > constructor with no static method, but don't find how to do it. > > What I really want to do is: > > Rados.Flags flags=0; > Rados.ClusterClient cluster = Rados.ClusterC

Re: [Vala] Export vapi from libray

2014-11-21 Thread Andre Masella
___ > vala-list mailing list > vala-list@gnome.org > https://mail.gnome.org/mailman/listinfo/vala-list > -- --Andre Masella http://www.masella.name/ ___ vala-list mailing list vala-list@gnome.org https://mail.gnome.org/mailman/listinfo/vala-list

Re: [Vala] enum in a subclass

2014-11-07 Thread Andre Masella
1) You can't use `override` for methods in interfaces, only for overriding base classes. 2) The contents of `foo` are not in scope for `bar`, only they inherited members because they are now part of `bar`. So `Type` in `bar` is `GLib.Type` not `foo.Type`. public interface foo { public enum Ty

Re: [Vala] Help about write vapi file with c libray

2014-09-26 Thread Andre Masella
e (cname = "struct sp_port", has_type_id = "false")] > > public class Port { > > [CCode (cname = "sp_get_port_by_name", has_type_id = "false")] > > static Return get_port_by_name(string name, out

Re: [Vala] trying vapi file for ngspice, segfaults

2014-05-22 Thread Andre Masella
nt even complete > the vala compile, ccode or vapi changes affect the GBoxedCopyFunc, > GDestroyNotify and const gchar* stdout who are added > to the test function in c, Or is is the send char static function that is > not correct? > > greets, > Steven > > ___

Re: [Vala] difference between using IntegerType and inheriting

2014-01-06 Thread Andre Masella
>> >>> ___ >>> vala-list mailing list >>> vala-list@gnome.org >>> https://mail.gnome.org/mailman/listinfo/vala-list >>> >>> >> >> > -- > Nos leemos > RASTER(Linux user #228804) > ras...@rastersoft.com http://www.rastersoft.com > > ___ > vala-list mailing list > vala-list@gnome.org > https://mail.gnome.org/mailman/listinfo/vala-list > -- --Andre Masella http://www.masella.name/ ___ vala-list mailing list vala-list@gnome.org https://mail.gnome.org/mailman/listinfo/vala-list

Re: [Vala] VAPI tutorial

2013-12-27 Thread Andre Masella
com http://www.rastersoft.com > > ___ > vala-list mailing list > vala-list@gnome.org > https://mail.gnome.org/mailman/listinfo/vala-list > -- --Andre Masella http://www.masella.name/

Re: [Vala] passing string length in VAPI file

2013-12-06 Thread Andre Masella
t; file? > > I tried with array_length_pos, but seems to not work in this case. > > Thanks. > > -- > Nos leemos > RASTER(Linux user #228804) > ras...@rastersoft.com http://www.rastersoft.com > > ________

Re: [Vala] Writing Bindings for Legacy C Libraries

2013-09-29 Thread Andre Masella
lti-dimensional arrays), so binding them is nigh impossible without extra C code. > Also did you link this page from some other wiki pages? Which ones? > I put a link in the Vala/UpstreamGuide#Writing_By_Hand and Vala/Bindings, next to the Upstream G

[Vala] Writing Bindings for Legacy C Libraries

2013-09-28 Thread Andre Masella
After some discussion with nemequ, I've put together some documentation about writing bindings for non-GLib C code. http://wiki.gnome.org/Vala/LegacyBindings I'm sure there are many other situations that need to be covered, or alternatives to the ones proposed; please expand or let me know and I'