Re: [Vala] [PATCH] GIO nullable parameters
- From: Sam Liddicott <sam liddicott com>
- To: Sam Liddicott <sam liddicott com>
- Cc: vala-list gnome org
- Subject: Re: [Vala] [PATCH] GIO nullable parameters
- Date: Wed, 21 May 2008 06:39:59 +0100
In fact I think I'll use such annotation on a samba4 module I'm working on, so if anyone wants to influence
inline C representations of vala attributes, now is the time to do it.
Sam
-----Original Message-----
From: Sam Liddicott <sam liddicott com>
Sent: 20 May 2008 16:12
Cc: vala-list gnome org
Subject: Re: [Vala] [PATCH] GIO nullable parameters
* Frederik wrote, On 20/05/08 14:01:
Jürg Billeter wrote:
On Tue, 2008-05-13 at 12:09 +0200, Frederik wrote:
I think in the GIO vapi bindings there are more parameters that should
be marked as nullable. For example: "etag" as in File.replace() or
"progress_callback" as in File.move().
Yes, we certainly still miss a lot of nullable annotations.
I've been looking at the GIO documentation and spotted all nullable
parameters. I have attached a patch for gio-2.0.metadata inclusive the
newly generated vapi. This should cover all nullable parameters in GIO.
I think it may be simpler to allow the null-able clue to be part of the
C source using a macro indicator which can be compiled away in C.
#ifndef VALA
#define NULL_OK
#endif
...
send_to_mainloop_async (GLib.SourceFunc func, NULL_OK GLib.DestroyNotify notify);
...
It enrichens the C source and allows the C maintainer to keep the hint
alive effortlessly, rather than someone have to keep a meta file in sync.
Sam
_______________________________________________
Vala-list mailing list
Vala-list gnome org
http://mail.gnome.org/mailman/listinfo/vala-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]