Re: [Vala] Strange error from glib-2.0.vapi



On Sunday 05 April 2009 10:50:43 Michael B. Trausch wrote:

Another question I have where I am trying to figure out if I am doing
it wrong, or if there is a bug:

glib-2.0.vapi:1229.2-1229.18: error: The value type `GLib.Pid` doesn't
declare a GValue set function
        public struct Pid {
      ^^^^^^^^^^^^^^^^^

I am clueless as to why it wants something else.  I thought a GLib.Pid
was an integer value.

This is with Vala 0.6 release.

I had the same error today.

Following the GLib headers, I saw that *in Linux* a GPid is in the end a 
pid_t, that in the end is a 32 bit integer.

What I did was to copy part of the GLib vapi into a seperate vapi file and 
there I copied the vapi directives of gint. It worked.

I'd propose the attached patch to correct GLib vapi, but I'm not sure if it 
should be added to Vala because I've read in other mails that in Windows GPid 
is a pointer and not an integer.

Regards.

-- 
Enrique Ocaña


Attachment: 0001-Corrects-error-The-value-type-GLib.Pid-doesn-t-de.patch
Description: Text Data



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]