]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
posix: add inet_ntop(3) and corresponding constants
authorMichael 'Mickey' Lauer <mickey@vanille-media.de>
Mon, 30 May 2011 18:44:53 +0000 (20:44 +0200)
committerJürg Billeter <j@bitron.ch>
Tue, 31 May 2011 19:05:47 +0000 (21:05 +0200)
vapi/posix.vapi

index b706f4f88703ac27b192032bf615cb1bfbec70bd..a3188db5d898afed417c413b868d80b1f3a7ca76 100644 (file)
@@ -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);