Re: [Vala] posix: FILE binding
- From: Evan Nemerson <evan coeus-group com>
- To: vala-list gnome org
- Subject: Re: [Vala] posix: FILE binding
- Date: Fri, 20 Nov 2009 12:55:17 -0800
On Fri, 2009-11-20 at 21:17 +0100, Abderrahim Kitouni wrote:
2009/11/20, Michael 'Mickey' Lauer <mickey vanille-media de>:
While trying to add popen(3) to posix.vapi, I stumbled
over the current binding of FILE, which looks incorrect
to me. All the functions that operate on FILE seem to
take a FILE*, so binding it as [SimpleType] defeats this
purpose.
I think it's wrong to define it as a struct in the first place (let
alone as a simple type) : it's an opaque struct in C, so it should be
a compact class (and it is in glib-2.0.vapi)
I agree. After talking to Mickey (in IRC), I've gone ahead and committed
a patch which basically copies GLib.FileStream with a few small changes.
If this breaks anything, please let us know.
-Evan
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]