[vala] posix: add IPPROTO_* bindings



commit ee7070b7f425eedbd8b192a95e1cd09718183883
Author: Evan Nemerson <evan nemerson com>
Date:   Sun Nov 2 22:06:33 2014 -0800

    posix: add IPPROTO_* bindings

 vapi/posix.vapi |   28 ++++++++++++++++++++++++++++
 1 files changed, 28 insertions(+), 0 deletions(-)
---
diff --git a/vapi/posix.vapi b/vapi/posix.vapi
index c7a8cef..49311cf 100644
--- a/vapi/posix.vapi
+++ b/vapi/posix.vapi
@@ -360,6 +360,34 @@ namespace Posix {
        [CCode (cheader_filename = "netinet/in.h")]
        public const int INET6_ADDRSTRLEN;
 
+       [CCode (cheader_filename = "netinet/in.h", cname = "int", cprefix = "IPPROTO_", has_type_id = false)]
+       public enum IPProto {
+               IP,
+               ICMP,
+               IGMP,
+               IPIP,
+               TCP,
+               EGP,
+               PUP,
+               UDP,
+               IDP,
+               TP,
+               DCCP,
+               IPV6,
+               RSVP,
+               GRE,
+               ESP,
+               AH,
+               MTP,
+               BEETPH,
+               ENCAP,
+               PIM,
+               COMP,
+               SCTP,
+               UDPLITE,
+               RAW,
+       }
+
        [CCode (cheader_filename = "arpa/inet.h")]
        public uint32 inet_addr (string host);
        [CCode (cheader_filename = "arpa/inet.h")]


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