From: Michael 'Mickey' Lauer Date: Mon, 30 May 2011 18:44:53 +0000 (+0200) Subject: posix: add inet_ntop(3) and corresponding constants X-Git-Tag: 0.12.1~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a03c09cde803c45e4c84224e211174123561baa7;p=thirdparty%2Fvala.git posix: add inet_ntop(3) and corresponding constants --- diff --git a/vapi/posix.vapi b/vapi/posix.vapi index b706f4f88..a3188db5d 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);