[vala] posix: bind struct sockaddr_in
- From: Michael Lauer <mlauer src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [vala] posix: bind struct sockaddr_in
- Date: Wed, 3 Feb 2010 17:30:18 +0000 (UTC)
commit 8586c7e16ac276490041b997a7d3fbe59a7d9269
Author: Michael 'Mickey' Lauer <mickey vanille-media de>
Date: Wed Feb 3 18:30:22 2010 +0100
posix: bind struct sockaddr_in
vapi/posix.vapi | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/vapi/posix.vapi b/vapi/posix.vapi
index ff3398e..e51420c 100644
--- a/vapi/posix.vapi
+++ b/vapi/posix.vapi
@@ -1278,6 +1278,13 @@ namespace Posix {
public struct SockAddr {
}
+ [CCode (cname = "struct sockaddr_in", cheader_filename = "netinet/in.h", destroy_function = "")]
+ public struct SockAddrIn {
+ public int sin_family;
+ public uint16 sin_port;
+ public InAddr sin_addr;
+ }
+
[CCode (cheader_filename = "sys/stat.h")]
public int mkfifo (string filename, mode_t mode);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]