Re: [Vala] vapi

2019-04-06 Thread Wolfgang Mauer
Nobody has an info? Am 04.04.19 um 16:53 schrieb Wolfgang Mauer: Of course I meant the libreoffice sdk to use with vala Am 04.04.19 um 16:36 schrieb Wolfgang Mauer: Hi all, is there a way to use the libreoffice interfaces with vala? Nice day Wolfgang

Re: [Vala] vapi

2019-04-04 Thread Wolfgang Mauer
Of course I meant the libreoffice sdk to use with vala Am 04.04.19 um 16:36 schrieb Wolfgang Mauer: Hi all, is there a way to use the libreoffice interfaces with vala? Nice day Wolfgang ___ vala-list mailing list vala-list@gnome.org https://mail.gn

[Vala] vapi

2019-04-04 Thread Wolfgang Mauer
Hi all, is there a way to use the libreoffice interfaces with vala? Nice day Wolfgang ___ vala-list mailing list vala-list@gnome.org https://mail.gnome.org/mailman/listinfo/vala-list

Re: [Vala] VAPI-Bindings to obscure c-types.

2016-12-05 Thread Guillaume Poirier-Morency
-glib/blob/master/src/numeric-glib-1.0.vapi 2016-12-05 13:16 GMT-05:00 Al Thomas : > > > From: Guillaume Poirier-Morency > > Sent: Monday, 5 December 2016, 17:30 > > Subject: Re: [Vala] VAPI-Bindings to obscure c-types. > > > You could a

Re: [Vala] VAPI-Bindings to obscure c-types.

2016-12-05 Thread Al Thomas via vala-list
> From: Guillaume Poirier-Morency > Sent: Monday, 5 December 2016, 17:30 > Subject: Re: [Vala] VAPI-Bindings to obscure c-types. > You could also use a [FloatingType] declaration and not mess with > pre-processor directives. > [FloatingTyp

Re: [Vala] VAPI-Bindings to obscure c-types.

2016-12-05 Thread Guillaume Poirier-Morency
016, 7:53 > > Subject: [Vala] VAPI-Bindings to obscure c-types. > > > In libode's code, there is a type called dReal. Depending on some > > compiler flags, dReal might be a double or a float: > > > #if defined(dSINGLE) > > typedef float dReal; > > #i

Re: [Vala] VAPI-Bindings to obscure c-types.

2016-12-05 Thread Al Thomas via vala-list
> - Original Message - > From: Daniel Brendle > Sent: Monday, 5 December 2016, 7:53 > Subject: [Vala] VAPI-Bindings to obscure c-types. > In libode's code, there is a type called dReal. Depending on some > compiler flags, dReal might be a double or a float:

[Vala] VAPI-Bindings to obscure c-types.

2016-12-05 Thread Daniel Brendle
Hi there. First of all, sorry for the bad subject-line, but I'm really missing the words to describe this in a concise manner. As some of you know, I am playing with writing a GLib wrapper for libode6. I've come across another problem that I don't think has been documented on this mailinglist or

Re: [Vala] Vapi bindings and a weird C-pattern

2016-05-14 Thread Al Thomas
> From: Daniel Brendle > Sent: Sunday, 15 May 2016, 0:52 > Subject: [Vala] Vapi bindings and a weird C-pattern > > I want to write VAPI bindings for liborient [0]. For reference this is: https://github.com/dam2k/liborient/blob/master/include/liborient/liborient.h >

Re: [Vala] Vapi bindings and a weird C-pattern

2016-05-14 Thread Felipe Lavratti
Oh god, they use opaque handlers. See the orientdb type as a context. You might abstract or hide it with a static global. Careful with the initalization of statics in vala. I am not experienced with vapis, but i believe you can instantiate a static field in a class within it. On Sat, May 14, 201

[Vala] Vapi bindings and a weird C-pattern

2016-05-14 Thread Daniel Brendle
Hi, Guys I want to write VAPI bindings for liborient [0]. While analyzing the C-code i came across the functions which turned out to work in a somewhat unexpected way. Usually one has some struct, methods to create and free the struct and a set of methods that operate on that struct. Such code ca

Re: [Vala] vapi for libpng

2015-06-23 Thread Evan Nemerson
On Wed, 2015-06-24 at 08:16 +0800, Nor Jaidi Tuah wrote: > > > > Not that I know. You cannot use gdkpixbuf? > > I don't see any file output function in > gdkpixbuf, or at the very least in-memory > serialization. Gdk.Pixbuf.save* There are lots of versions for saving to files, buffers, and stre

Re: [Vala] vapi for libpng

2015-06-23 Thread Nor Jaidi Tuah
> Not that I know. You cannot use gdkpixbuf? I don't see any file output function in gdkpixbuf, or at the very least in-memory serialization. I glanced through libpng manual and found out that error handling is done by setting a setjmp destination (continuation rather than callback or error-flag)

Re: [Vala] vapi for libpng

2015-06-23 Thread Luca Bruno
On 23/06/2015 08:18, Nor Jaidi Tuah wrote: > Are there any vapi for libpng (hidden somehow > from google)? Not that I know. You cannot use gdkpixbuf? ___ vala-list mailing list vala-list@gnome.org https://mail.gnome.org/mailman/listinfo/vala-list

[Vala] vapi for libpng

2015-06-22 Thread Nor Jaidi Tuah
Are there any vapi for libpng (hidden somehow from google)? Nice day Nor Jaidi Tuah PRIVILEGED/CONFIDENTIAL information may be contained in this message. If you are neither the addressee (intended recipient) nor an authorised recipient of the addressee, and have received this message in erro

Re: [Vala] Vapi duplication in different dir

2015-04-02 Thread 中川祥
n now. > > I have two version of vapi file for the slightestly same c library and > the > > file in vapi default dir /usr/share/vala/vapi/ is not complete vapi > > file,though my original local file is completed. > > The project loads the default dir's file and I ha

Re: [Vala] Vapi duplication in different dir

2015-04-01 Thread Evan Nemerson
looks like you pass the CUSTOM_VAPIS argument to vala_precompile —there is an example in the README. -Evan On Thu, 2015-04-02 at 13:11 +0900, 中川祥 wrote: > I have a question now. > I have two version of vapi file for the slightestly same c library and the > file in vapi default dir /usr/s

[Vala] Vapi duplication in different dir

2015-04-01 Thread 中川祥
I have a question now. I have two version of vapi file for the slightestly same c library and the file in vapi default dir /usr/share/vala/vapi/ is not complete vapi file,though my original local file is completed. The project loads the default dir's file and I have no execution to change

Re: [Vala] VAPI to GIR

2015-03-25 Thread Abderrahim Kitouni
Hello, I think it's not possible to convert from vapi to gir. But if this is a vala library, you can generate the gir at the same time as the vapi by using the --gir option of valac. HTH, Abderrahim 2015-03-24 13:31 GMT+01:00 Konstantin P. : > Hello. I have some vala library (with generated VAPI

[Vala] VAPI to GIR

2015-03-24 Thread Konstantin P.
Hello. I have some vala library (with generated VAPI). This is possible to convert VAPI to GIR for using it in Python app, or I need to write GIR by hand? ___ vala-list mailing list vala-list@gnome.org https://mail.gnome.org/mailman/listinfo/vala-list

Re: [Vala] VAPI bindings for external lib

2014-11-17 Thread Luca Bruno
On 17/11/2014 17:46, Gonzalo Aguilar Delgado wrote: > Hi, > > perfect! Thank you for fast response. > > Just one question. Is there any vapi repos to upload resulting vapi. > It would be nice to have something like nexus for maven but in this > case for vapis. > This is the official "unofficial" li

Re: [Vala] VAPI bindings for external lib

2014-11-17 Thread Gonzalo Aguilar Delgado
Hi Michael, I missed this one. Thank you. El 17/11/14 a las 16:07, Michael Catanzaro escribió: On Mon, 2014-11-17 at 14:28 +0100, Gonzalo Aguilar Delgado wrote: Hello, I'm modifiying babobab to support a ceph cluster. And want to do add several tools to position files on OSDs, show fragemntat

Re: [Vala] VAPI bindings for external lib

2014-11-17 Thread Gonzalo Aguilar Delgado
Hi, perfect! Thank you for fast response. Just one question. Is there any vapi repos to upload resulting vapi. It would be nice to have something like nexus for maven but in this case for vapis. Best regards, El 17/11/14 a las 14:41, Luca Bruno escribió: On 17/11/2014 14:28, Gonzalo Aguil

Re: [Vala] VAPI bindings for external lib

2014-11-17 Thread Michael Catanzaro
On Mon, 2014-11-17 at 14:28 +0100, Gonzalo Aguilar Delgado wrote: > Hello, > > I'm modifiying babobab to support a ceph cluster. And want to do add > several tools to position files on OSDs, show fragemntation of > underlaying filesystems, etc. Maybe this will generate other tool, but > for now

Re: [Vala] VAPI bindings for external lib

2014-11-17 Thread Luca Bruno
On 17/11/2014 14:28, Gonzalo Aguilar Delgado wrote: > Hello, > > I'm modifiying babobab to support a ceph cluster. And want to do add > several tools to position files on OSDs, show fragemntation of > underlaying filesystems, etc. Maybe this will generate other tool, but > for now just modifying. >

[Vala] VAPI bindings for external lib

2014-11-17 Thread Gonzalo Aguilar Delgado
Hello, I'm modifiying babobab to support a ceph cluster. And want to do add several tools to position files on OSDs, show fragemntation of underlaying filesystems, etc. Maybe this will generate other tool, but for now just modifying. The problem is that I cannot access directly to librados,

Re: [Vala] VAPI tutorial

2013-12-28 Thread rastersoft
Why isn't that document linked in the Vala's page? (at least, I didn't found it). It looks very useful. El 28/12/13 04:59, Andre Masella escribió: Probably best to link to the legacy VAPI guide: https://wiki.gnome.org/Projects/Vala/LegacyBindings On 27 December 2013 15:43, rastersoft wrote:

Re: [Vala] VAPI tutorial

2013-12-27 Thread Evan Nemerson
On Sat, 2013-12-28 at 00:43 +0100, rastersoft wrote: > Hi all: > > I wrote a little VAPI writing tutorial to help people to start writing > VAPI files for libraries. I put it at > > https://wiki.gnome.org/Projects/Vala/WrittingVAPIs > > Of course it is incomplete, and is possible that it has mi

Re: [Vala] VAPI tutorial

2013-12-27 Thread Andre Masella
Probably best to link to the legacy VAPI guide: https://wiki.gnome.org/Projects/Vala/LegacyBindings On 27 December 2013 15:43, rastersoft wrote: > Hi all: > > I wrote a little VAPI writing tutorial to help people to start writing > VAPI files for libraries. I put it at > > https://wiki.gnome.or

Re: [Vala] VAPI tutorial

2013-12-27 Thread Steven Oliver
There's a short section on VAPIs in the tutorial if I remember correctly. Would probably be helpful to link to this from there if you haven't already.  — Sent from Mailbox for iPhone On Fri, Dec 27, 2013 at 6:43 PM, rastersoft wrote: > Hi all: > I wrote a little VAPI writing tutorial to help p

[Vala] VAPI tutorial

2013-12-27 Thread rastersoft
Hi all: I wrote a little VAPI writing tutorial to help people to start writing VAPI files for libraries. I put it at https://wiki.gnome.org/Projects/Vala/WrittingVAPIs Of course it is incomplete, and is possible that it has mistakes, so I accept all kind of suggestions and fixes. -- Nos le

Re: [Vala] VAPI: turning a function into a property?

2012-12-08 Thread Aaron
Please let us know when you finish the bindings! Quoting foracc : On Sat, Dec 8, 2012 at 3:42 PM, foracc wrote: [CCode (cheader_filename="allegro5/allegro5.h")] namespace Allegro5 { [Compact] [CCode(cname="ALLEGRO_EVENT_**QUEUE", free_function="al_destroy_**event_que

Re: [Vala] VAPI: turning a function into a property?

2012-12-08 Thread foracc
On Sat, Dec 8, 2012 at 3:42 PM, foracc wrote: [CCode (cheader_filename="allegro5/allegro5.h")] namespace Allegro5 { [Compact] [CCode(cname="ALLEGRO_EVENT_**QUEUE", free_function="al_destroy_**event_queue")] class EventQueue { [CCode (cname="al_is_event

Re: [Vala] VAPI: turning a function into a property?

2012-12-08 Thread Luca Bruno
On Sat, Dec 8, 2012 at 3:42 PM, foracc wrote: > [CCode (cheader_filename="allegro5/allegro5.h")] > namespace Allegro5 > { > [Compact] > [CCode(cname="ALLEGRO_EVENT_**QUEUE", >free_function="al_destroy_**event_queue")] > class EventQueue { > [CCode (cname="al_is

[Vala] VAPI: turning a function into a property?

2012-12-08 Thread foracc
Hello list, I started to write a VAPI file for some lib, and tried to turn a rather long function name into a property: [CCode (cheader_filename="allegro5/allegro5.h")] namespace Allegro5 { [Compact] [CCode(cname="ALLEGRO_EVENT_QUEUE", free_function="al_destroy_event_q

[Vala] vapi and arguments

2012-01-24 Thread tomw
Hi I was trying to use the recently released GLib bindings to libfreenect [1]. Creating a new device (according to the docs) should work like : using GLib; using GFreenect; public class Main : Object { public GFreenect.Device device; public Main () { device = new Devic

Re: [Vala] Vapi help

2012-01-11 Thread Andrew Higginson
On 10/01/12 22:52, Denis Kuzmenok wrote: > Hi. > I need some help with vapi file. I'm making vapi for C non-Glib > library. There are structs, i write them into vapi, as > namespace AC -> struct AC_Automata > > And i'm getting errors: > undefined reference to `ac_ac_automata_destroy' > >

Re: [Vala] Vapi help

2012-01-11 Thread Axel FILMORE
Attached files are an example I have done, I use the vala-gen-introspect method : https://live.gnome.org/Vala/Bindings/GI Then I modifed the generated file, I had to tweak the "cname" and "cprefix" values in order that it works. Well I'm not an expert I don't know if it's really correct, but

Re: [Vala] Vapi help

2012-01-10 Thread Jonathan Ryan
Please provide the vapi and the header file it's wrapping. Documentation: https://live.gnome.org/Vala/Bindings -jryan On Tue, Jan 10, 2012 at 5:52 PM, Denis Kuzmenok wrote: > Hi. > I need some help with vapi file. I'm making vapi for C non-Glib > library. There are structs, i write the

[Vala] Vapi help

2012-01-10 Thread Denis Kuzmenok
Hi. I need some help with vapi file. I'm making vapi for C non-Glib library. There are structs, i write them into vapi, as namespace AC -> struct AC_Automata And i'm getting errors: undefined reference to `ac_ac_automata_destroy' But there is no destroy calls in .c files (except one fre

Re: [Vala] Vapi automatic installation

2012-01-06 Thread Daniel Espinosa
I think that all projects must distribute its own VAPI files and install in system's directories defined by vala. This is done by libgda and gxml projects, including its GObject Introspection files, created at build time and installed automatically. Distribution packagers can create different packa

Re: [Vala] Vapi automatic installation

2012-01-06 Thread Antono Vasiljev
On Tue, 2012-01-03 at 16:16 +0200, Denis Kuzmenok wrote: > What do you think about making vapi repository like perl's cpan to > search over different vapi's, and install them easily via commandline > utils? With storage containing them, of course. vapi is not usable without headers and libs. an

[Vala] Vapi automatic installation

2012-01-03 Thread Denis Kuzmenok
What do you think about making vapi repository like perl's cpan to search over different vapi's, and install them easily via commandline utils? With storage containing them, of course. ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.

Re: [Vala] [.vapi] delegate types

2011-12-25 Thread Artem Tarasov
Thanks, it's at least less clumsy. 2011/12/25 Luca Bruno : > On Sun, Dec 25, 2011 at 10:37 AM, Artem Tarasov > wrote: >> >> Is there a better solution? Maybe another CCode option should be >> added, like "generate_typedef" or something, which value of false >> would mean to expand the type everyw

Re: [Vala] [.vapi] delegate types

2011-12-25 Thread Luca Bruno
On Sun, Dec 25, 2011 at 10:37 AM, Artem Tarasov wrote: > Is there a better solution? Maybe another CCode option should be > added, like "generate_typedef" or something, which value of false > would mean to expand the type everywhere (into "return-type > (*variable-name) (param-types)")? > No bett

[Vala] [.vapi] delegate types

2011-12-25 Thread Artem Tarasov
Consider the following three files: a.h: typedef struct { void (*foo)(void); } bar; a.vapi: [CCode (has_target=false)] public delegate void Func(); [CCode (cheader_filename="a.h", cname="bar")] public struct Bar { Func foo; } a.vala: void main() {     Bar b = { () => {} };     b.foo(); } Now I

[Vala] Vapi to gdbus

2011-10-20 Thread pancake
It is there any tool to compile a vapi into a gdbus class? It would be cool to easily create dbus services directky from vapi files. Which other options do i have in order to export a vapi via network that allows me to use remotely services? Xmlrpc? I'm looking for something that automatizes th

Re: [Vala] VAPI Generation Problems

2011-10-11 Thread Daniel Espinosa
Missing symbols could be because gtk-doc annotations, (skip) in this case, or because there are missing other required symbols not included at GIR generation (in this case the symbol is tagged as introspectable="0"). See warnings and messages at GIR generation. In other cases, using (skip), means

Re: [Vala] VAPI Generation Problems

2011-10-11 Thread Matthias Klumpp
I get exactly the same errors, but I get a working vapi file - although some symbols seem to be missing. 2011/10/10 Andrew Higginson : > Hi, > > On 09/10/11 18:04, bsquared wrote: >> It looks like you need to add packages to the command line.  I >> found the wiki page http://live.gnome.org/Vala/Bi

Re: [Vala] VAPI Generation Problems

2011-10-10 Thread Daniel Espinosa
Have you made your modifications by hand? Is much better to modify gtk-doc annotations[1] in order to generate correct GIR files, this will help other languages as well like python, JavaScript and other supporting GObjectIntrospection, including Vala. Or use a Meta-3.0.metadata[2] in order to tell

Re: [Vala] VAPI Generation Problems

2011-10-10 Thread Andrew Higginson
Hi, First off, thanks so much for everyone's help so far on this :) Once I removed those incorrect lines and excluded those X11 methods I got a vapi that looks like this: http://pastebin.com/wq1dtK0y I then replaced the cheader_filename = "Meta-3.0.h" with header files that actually exist,

Re: [Vala] VAPI Generation Problems

2011-10-10 Thread Luca Bruno
On Sun, Oct 9, 2011 at 5:41 PM, Andrew Higginson wrote: > Hi, > > I am using the latest vala from git and am trying to generate a vapi > file for libmutter. > > When I build libmutter (from git) a .gir file is generated which can be > seen here: > http://pastebin.com/vapMQ2T1 > > 1) The gir is b

Re: [Vala] VAPI Generation Problems

2011-10-10 Thread Abderrahim Kitouni
Hello Andrew, You have more than one problem here, see below 2011/10/10 Andrew Higginson : > My Gio-2.0.gir file is available here, and it is the latest in Ubuntu > 11.10 (libglib2.0 package version 2.30.0) : >    http://db.tt/e621C6EA As far as I know, vapigen still cannot parse the gio gir cor

Re: [Vala] VAPI Generation Problems

2011-10-10 Thread Matthias Klumpp
I get exactly the same errors, but I get a working vapi file - although some symbols seem to be missing. 2011/10/10 Andrew Higginson : > Hi, > > On 09/10/11 18:04, bsquared wrote: >> It looks like you need to add packages to the command line.  I >> found the wiki page http://live.gnome.org/Vala/Bi

Re: [Vala] VAPI Generation Problems

2011-10-10 Thread Andrew Higginson
Hi, On 09/10/11 18:04, bsquared wrote: > It looks like you need to add packages to the command line. I > found the wiki page http://live.gnome.org/Vala/Bindings helpful. On 10/10/11 04:54, Daniel Espinosa wrote: > Messages report an error on Gio-2.0.gir, are you using the lastes > version of thi

Re: [Vala] VAPI Generation Problems

2011-10-09 Thread Daniel Espinosa
Messages report an error on Gio-2.0.gir, are you using the lastes version of this file? You can check at Vala repository for vapi generation examples in Makefile.am for --pkg switches used for diferent bindings. El domingo 9 de octubre de 2011, Andrew Higginson escribió: > Hi, > > I am using the

Re: [Vala] VAPI Generation Problems

2011-10-09 Thread bsquared
It looks like you need to add packages to the command line. I found the wiki page http://live.gnome.org/Vala/Bindings helpful. -- Regards, Brian Winfrey ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list

[Vala] VAPI Generation Problems

2011-10-09 Thread Andrew Higginson
Hi, I am using the latest vala from git and am trying to generate a vapi file for libmutter. When I build libmutter (from git) a .gir file is generated which can be seen here: http://pastebin.com/vapMQ2T1 Then I try to generate a .vapi file from this using the following command: vapigen-0.

Re: [Vala] VAPI metadata problem

2011-07-06 Thread Jim Nelson
That wound up working -- kind of. I had to use lower_case_cprefix="gmime_" for it to generate the right type conversion macro. My big fear, as you mentioned, was then having to go back and patch up every method with the right cname. It turns out that vapigen magically saw the problem and provide

Re: [Vala] VAPI metadata problem

2011-07-05 Thread Luca Bruno
On Mon, Jul 04, 2011 at 08:16:28PM -0700, Jim Nelson wrote: > Hello, > > I'm attempting to build a VAPI for GMime. (If anyone can point me to a > completed version, it would be appreciated!) > > The problem I'm running into is this: > > The namespace for the module is GMime. The class GMimeStr

[Vala] VAPI metadata problem

2011-07-04 Thread Jim Nelson
Hello, I'm attempting to build a VAPI for GMime. (If anyone can point me to a completed version, it would be appreciated!) The problem I'm running into is this: The namespace for the module is GMime. The class GMimeStream's type conversion macro is GMIME_STREAM but valac auto-generates it as G

Re: [Vala] Vapi delegate problems.

2011-04-27 Thread Lewis Gunsch
That gives me the following error. libzmq.vapi:80.34-80.41: error: The type name `GLib.Fun' could not be found public Msg.data(uint8[] data, GLib.Fun? ffn = null); Although, I tried: [CCode (cname = "zmq_free_fn", type = "void (*)(void *, void *)")] public delegate void free_fn(void

Re: [Vala] Vapi delegate problems.

2011-04-27 Thread Luca Bruno
On Tue, Apr 26, 2011 at 03:50:39PM -0600, Lewis Gunsch wrote: > Hi, > > I am having trouble getting a delegate in a vapi to work correctly. My > original attempt (line 70 of the vapi) did not work because of how the > typedef is in the C header (it's not a function pointer), so instead of > using

[Vala] Vapi delegate problems.

2011-04-26 Thread Lewis Gunsch
Hi, I am having trouble getting a delegate in a vapi to work correctly. My original attempt (line 70 of the vapi) did not work because of how the typedef is in the C header (it's not a function pointer), so instead of using their typedef I used GLib.Func which matches the function signature. This

[Vala] vapi update for libgda 4.2

2011-01-26 Thread Daniel Espinosa
I would like to update vapi file from 4.0 to 4.2 version of GDA. I have the HEAD version for GDA (4.2.4) and for Vala (0.11.5.3-fe751 reported by vapigen --version) from its repositories. I have created a gi file from sources, but it has been generated wrong because when I run vapigen it finds err

Re: [Vala] vapi Autoupdate

2011-01-22 Thread Abderrahim Kitouni
Hello, في خ، 20-01-2011 عند 17:54 -0600 ، كتب Daniel Espinosa: > Is it recommended to allow a library like GDA to update its Vala's vapi on > build and install? Any sugestions? Ideally, the vapi should be taken care of by the original library, but this isn't always feasible (often

[Vala] vapi Autoupdate

2011-01-20 Thread Daniel Espinosa
Is it recommended to allow a library like GDA to update its Vala's vapi on build and install? Any sugestions? Now that GDA have reached 4.2.x series, it has lot of new usefull objects like GdaSqlBuilder, and I would love to use it in Vala, but vapi isn't updated jet, I can run a manual update and

[Vala] Vapi question (

2010-12-04 Thread Dru Moore
Hi all, I'm probably a bit out of my depth with vapi editing but I am trying none the less: Currently in hlidon-1.vapi there is a static method [CCode (cheader_filename = "hildon/hildon.h")] public static void gtk_window_set_progress_indicator (Gtk.Window window, uint state); which I wo

Re: [Vala] vapi for the Bullet Physics Engine

2010-11-28 Thread Bob Hazard
Thanks for this. I have heard great things about libbullet. I believe it is even used by professional PS3 devs in commercial games -- Sent from my Amiga ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list

[Vala] vapi for the Bullet Physics Engine

2010-11-27 Thread Chris Van Vranken
I have revised the C-API of the Bullet Physics Engine to be compatible with the Vala language (vala-gen-introspect and vapigen) and I have created a vapi file from it. I also revised the C-API demo (BulletDinoDemo) that is included in Bullet and I have recreated it in Vala as a MonoDevelop project

[Vala] vapi for the Bullet Physics Engine

2010-11-27 Thread Chris Van Vranken
I have revised the C-API of the Bullet Physics Engine to be compatible with the Vala language (vala-gen-introspect and vapigen) and I have created a vapi file from it. I also revised the C-API demo (BulletDinoDemo) that is included in Bullet and I have recreated it in Vala as a MonoDevelop project

[Vala] VAPI upgrade request

2010-11-17 Thread Michel Alexandre Salim
Dear developers, The latest versions of clutter-gtk and rest{,-extras} have their API levels bumped; from 0.10 to 1.0 for the former, and 0.6 to 0.7 for the latter. Could the vapi bindings in the master 0.11.x branch be updated to reflect this? Thanks, -- Michel Alexandre Salim Fedora Proje

Re: [Vala] Vapi generation problem

2009-12-18 Thread Julian Andres Klode
Am Donnerstag, den 17.12.2009, 18:54 +0100 schrieb Nicolas: > Hello, > > I try to use a non glib-library, and i have a problem generating the > vapi file. > > On my header i have: > typedef struct my_instance my_instance; > > In my vapi file, i wrote: > public struct my_instance {} > > When i

[Vala] Vapi generation problem

2009-12-18 Thread Nicolas
Hello, I try to use a non glib-library, and i have a problem generating the vapi file. On my header i have: typedef struct my_instance my_instance; In my vapi file, i wrote: public struct my_instance {} When i use this structure (test_instance), vala generate this: my_instance test_instance;

Re: [Vala] Vapi generation problem

2009-12-17 Thread Michael 'Mickey' Lauer
Am Donnerstag, den 17.12.2009, 18:54 +0100 schrieb Nicolas: > Hello, > > I try to use a non glib-library, and i have a problem generating the > vapi file. > > On my header i have: > typedef struct my_instance my_instance; > > In my vapi file, i wrote: > public struct my_instance {} > > When i

[Vala] Vapi generation problem

2009-12-17 Thread Nicolas
Hello, I try to use a non glib-library, and i have a problem generating the vapi file. On my header i have: typedef struct my_instance my_instance; In my vapi file, i wrote: public struct my_instance {} When i use this structure (test_instance), vala generate this: my_instance test_instance;

Re: [Vala] Vapi help..

2009-10-25 Thread Shawn Ferris
On Sat, 2009-10-24 at 22:23 -0600, Shawn Ferris wrote: > On Sat, 2009-10-24 at 15:59 +0100, Abderrahim Kitouni wrote: > > Short answer : I think GLib.Value? should do the trick. (and from > > reading the doc, I think it should also be unowned). > > That did the trick. I couldn't use unowned howeve

Re: [Vala] Vapi help..

2009-10-24 Thread Shawn Ferris
On Sat, 2009-10-24 at 15:59 +0100, Abderrahim Kitouni wrote: > Short answer : I think GLib.Value? should do the trick. (and from > reading the doc, I think it should also be unowned). That did the trick. I couldn't use unowned however. Making it unowned got rid of the extra arg, but also threw awa

Re: [Vala] Vapi help..

2009-10-24 Thread Abderrahim Kitouni
Hi, 2009/10/23 Shawn Ferris : > Hi All -- > > I've been trying to troubleshoot a problem with the libgda vapi and I just > can't figure out where it's coming from.. decided it was time to ask. I'm > sure this is something stupid, but I can't find it. > > The vapi has this: > >    public GLib.Value

Re: [Vala] Vapi help..

2009-10-24 Thread Jan Hudec
On Fri, Oct 23, 2009 at 09:59:06 -0600, Shawn Ferris wrote: > Hi All -- > > I've been trying to troubleshoot a problem with the libgda vapi and I just > can't figure out where it's coming from.. decided it was time to ask. I'm > sure this is something stupid, but I can't find it. > > The vapi has

[Vala] Vapi help..

2009-10-23 Thread Shawn Ferris
Hi All -- I've been trying to troubleshoot a problem with the libgda vapi and I just can't figure out where it's coming from.. decided it was time to ask. I'm sure this is something stupid, but I can't find it. The vapi has this: public GLib.Value get_value_at (int col, int row) throws GLib.

Re: [Vala] vapi docs

2009-08-08 Thread Frederik
pancake wrote: > After reading the VAPI reference website I find it useful but missed some > extra documentation for methods, fields and so on. Because reading the > website is just the same as reading the vapi file with no extra benefits. You can click 'edit' on valadoc.org and add the documentat

[Vala] vapi docs

2009-08-08 Thread pancake
After reading the VAPI reference website I find it useful but missed some extra documentation for methods, fields and so on. Because reading the website is just the same as reading the vapi file with no extra benefits. I wonder if it would be possible to add inline documentation or annotations in

[Vala] vapi generation issues

2009-07-15 Thread Emmanuel Pacaud
Hi, I'm trying to create a vapi file for goffice ( http://git.gnome.org/cgit/goffice/ ), followin the tutorial here: http://live.gnome.org/Vala/Bindings vala-gen-introspect prints a lot of warnings (see the end of this email). I don't see what in the c headers is the reason of the syntax errors

Re: [Vala] .vapi and GPL

2009-02-01 Thread Ed Schouten
* vas...@gmail.com wrote: > .vapi files are licensed under LGPL license, but some of them defines > bindings to kernel api and hence make use of linux headers on stage of > compiling generated C code which are GPL. does it mean that those > files also should be licensed under GPL or that one can r

Re: [Vala] .vapi and GPL

2009-02-01 Thread Maciej Piechotka
vas...@gmail.com writes: > .vapi files are licensed under LGPL license, but some of them defines > bindings to kernel api and hence make use of linux headers on stage of > compiling generated C code which are GPL. does it mean that those > files also should be licensed under GPL or that one can re

[Vala] .vapi and GPL

2009-01-31 Thread vasaka
.vapi files are licensed under LGPL license, but some of them defines bindings to kernel api and hence make use of linux headers on stage of compiling generated C code which are GPL. does it mean that those files also should be licensed under GPL or that one can reduce GPL to LGPL since those vapi

Re: [Vala] VAPI for FreeImage and a question about enums

2009-01-02 Thread Mihail Naydenov
Hi, It turned out that enums in vala can contain instance methods just like classes. So I have rewriten part of the freeimage.vapi (that deals with FREE_IMAGE_FORMAT enum) to make use of this feature, thus making the hole vapi pretty much 100% object oriented! My question is: Is the use of memb

[Vala] VAPI / GObjectIntrospection / 'dynamic' questions

2008-12-19 Thread Frederik
Hi! Will it be possible to generate gir+typelib for every vapi file or just for GObject libraries? If so it would be possible to introspect plain C libraries, too, and bind them dynamically for other languages. In Vala there is already dynamic access for D-Bus and GStreamer objects. Would it be p

[Vala] VAPI documentation

2008-12-15 Thread Noah Gibbs
Is there a good source of VAPI documentation anywhere? I'm looking at the Poppler tutorial, but it looks like that requires the library being wrapped to export itself via pkg-config, and the library I'm looking at doesn't do that. I've found some example VAPIs from various other libraries,

Re: [Vala] VAPI bindings: omit function target argument

2008-12-13 Thread Frederik
Frederik wrote: > I want to write vapi bindings for a C function that gets passed another > function as argument: > > public delegate void HookFunc (); > public void set_hook (HookFunc f); > > But the original C function doesn't want a target argument (which Vala > passes implicitly). I can m

[Vala] VAPI bindings: omit function target argument

2008-12-13 Thread Frederik
I want to write vapi bindings for a C function that gets passed another function as argument: public delegate void HookFunc (); public void set_hook (HookFunc f); But the original C function doesn't want a target argument (which Vala passes implicitly). I can move its position with public

Re: [Vala] [VAPI] define class constructor function

2008-11-29 Thread Ali Sabil
On Sat, Nov 29, 2008 at 3:32 PM, Florian Brosch <[EMAIL PROTECTED]>wrote: > NewMagickWand should be a static method in vala: > > I don't think so. You should define a creation method instead: [Compact] [CCode (cname="MagickWand", free_function="DestroyMagickWand" )] public class Wand { [CCode

Re: [Vala] [VAPI] define class constructor function

2008-11-29 Thread Florian Brosch
NewMagickWand should be a static method in vala: [Compact] [CCode (cname="MagickWand", free_function="DestroyMagickWand" )] public class Wand { [CCode (cname="NewMagickWand")] public static Wand new_magick_wand (); [CCode (cname="MagickGetSize")] public bool get_size(out ulong wi

[Vala] [VAPI] define class constructor function

2008-11-29 Thread fdsdœ Fsfsd
Hi, I'm trying to create a binding to ImageMagick library. I've made a simple vapi file : [CCode (cprefix = "", lower_case_cprefix = "", cheader_filename = "ImageMagick/wand/MagickWand.h")] namespace ImageMagick.Wand { [Compact] [CCode (cname="MagickWand", free_function="DestroyMagickW

Re: [Vala] vapi tip

2008-07-18 Thread Sam Liddicott
Daniel Svensson wrote: On Fri, Jul 18, 2008 at 4:58 PM, Sam Liddicott <[EMAIL PROTECTED]> wrote: you can do: /usr/bin/valac -C --pkg zlib --pkg gtk+-2.0 --basedir . src/mainwindow.vala src/api.vapi However, --pkg api automagically handles dependencies and runs pkg-config for you, so it

Re: [Vala] vapi tip

2008-07-18 Thread Daniel Svensson
On Fri, Jul 18, 2008 at 4:58 PM, Sam Liddicott <[EMAIL PROTECTED]> wrote: > you can do: > /usr/bin/valac -C --pkg zlib --pkg gtk+-2.0 --basedir . > src/mainwindow.vala src/api.vapi However, --pkg api automagically handles dependencies and runs pkg-config for you, so it's much easier to use in most

[Vala] vapi tip

2008-07-18 Thread Sam Liddicott
I just found this out yesterday but it may help other people; you can specify a .vapi file on the command line just like a .vala file. Instead of: /usr/bin/valac -C --vapidir=src --pkg api --pkg zlib --pkg gtk+-2.0 --basedir . src/mainwindow.vala you can do: /usr/bin/valac -C --pkg zlib --pkg gt

Re: [Vala] VAPI file syntax documented somewhere?

2008-03-26 Thread Daniel Svensson
On Tue, Mar 25, 2008 at 10:54 PM, Jaap A. Haitsma <[EMAIL PROTECTED]> wrote: > I'm trying to make vala bindings for a library not based on gobject. > Is there documentation on the syntax of the vapi file I have to create Not really.. I at least didn't find any either.. > So far I only found [

Re: [Vala] VAPI GOBJECT/gtk binding constructions differ

2008-03-25 Thread Jürg Billeter
On Tue, 2008-03-25 at 23:57 +0100, Mikael Hermansson wrote: > hmm I have noticed this: > > > Gtk.Image a = new Gtk.Image().new_from_file(...) You probably mean new Gtk.Image.from_file () > then we have > > GLib.File = File().new_for_path(...) You probably mean File.new_for_path ()

  1   2   >