Re: [Vala] How to wrap select(2)'s fd_set?
- From: "Michael 'Mickey' Lauer" <mickey vanille-media de>
- To: vala-list gnome org
- Subject: Re: [Vala] How to wrap select(2)'s fd_set?
- Date: Thu, 12 Feb 2009 13:39:17 +0100
Am Thursday 05 February 2009 17:27:52 schrieb Sam Liddicott:
Anything we can do about that or just give in and leaving FdSet a full
class?
use memset ?
Heh, right. Will you try to get the patch into the respective c
libraries?
I thought we were talking about vapi files. Something like
[Compact]
public class FdSet
{
[CCode (cheader_filename = "string.h")]
public void zero () {
memset(this, 0, sizeof(this));
}
But I suppose you could also call FD_ZERO from the body too...
Oh amazing! It didn't occur to me that vala code is allowed in vapi files :)
Thanks.
--
:M:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]