[vala/0.12] posix: add inet_ntop(3) and corresponding constants
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.12] posix: add inet_ntop(3) and corresponding constants
- Date: Tue, 31 May 2011 19:11:17 +0000 (UTC)
commit a03c09cde803c45e4c84224e211174123561baa7
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]