[vala] posix: add inet_ntop(3) and corresponding constants



commit 9f4a0db4dc90cda19dc2596c9e2ebb8ce239f1d0
Author: Michael 'Mickey' Lauer <mickey vanille-media de>
Date:   Mon May 30 20:44:53 2011 +0200

    posix: add inet_ntop(3) and corresponding constants

 vapi/posix.vapi |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/vapi/posix.vapi b/vapi/posix.vapi
index b706f4f..a3188db 100644
--- a/vapi/posix.vapi
+++ b/vapi/posix.vapi
@@ -472,11 +472,18 @@ namespace Posix {
 	public unowned Group? getgrent ();
 	public void setgrent ();
 
+	[CCode (cheader_filename = "netinet/in.h")]
+	public const int INET_ADDRSTRLEN;
+	[CCode (cheader_filename = "netinet/in.h")]
+	public const int INET6_ADDRSTRLEN;
+
 	[CCode (cheader_filename = "arpa/inet.h")]
 	public uint32 inet_addr (string host);
 	[CCode (cheader_filename = "arpa/inet.h")]
 	public unowned string inet_ntoa (InAddr addr);
 	[CCode (cheader_filename = "arpa/inet.h")]
+	unowned string inet_ntop (int af, void* src, uint8[] dst);
+	[CCode (cheader_filename = "arpa/inet.h")]
 	public uint32 htonl (uint32 hostlong);
 	[CCode (cheader_filename = "arpa/inet.h")]
 	public uint32 ntohl (uint32 netlong);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]