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
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
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
-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
> 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
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
> - 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:
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
> 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
>
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
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
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
> 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)
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
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
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
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
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
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
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
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
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
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
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
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.
>
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,
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:
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
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
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
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
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
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
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
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
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
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'
>
>
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
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
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
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
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
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.
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
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
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
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
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
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
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
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,
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
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
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
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
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
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
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.
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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;
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
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;
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
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
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
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
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.
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
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
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
* 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
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
.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
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
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
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,
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
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
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
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
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
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
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
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
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 [
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 - 100 of 108 matches
Mail list logo