Re: [Vala] Vala bindings for getaddrinfo and similar Unix API
- From: Raffaele Sandrini <raffaele sandrini ch>
- To: Mikael Hermansson <mike tielie gmail com>
- Cc: Vala ML <vala-list gnome org>
- Subject: Re: [Vala] Vala bindings for getaddrinfo and similar Unix API
- Date: Sun, 24 Feb 2008 22:06:01 +0100
On Sun, 2008-02-24 at 21:05 +0100, Mikael Hermansson wrote:
What is the most correct binding:
namespace Test {
[CCode]
struct AddrInfo {
....
}
A:
[CCode]
public static int getaddrinfo(string host, string service, AddrInfo
*hint, AddrInfo **result);
B:
[CCode]
public static int getaddrinfo(string host, string service, AddrInfo
hint, AddrInfo *result);
}
Neither one. 'result' is an out parameter.
public static int getaddrinfo(string host, string service, AddrInfo
hint, out AddrInfo result);
cheers,
Raffaele
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]