From 3779ce9f64a0ed58d16d372549c1548a9eea6414 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole=20Andr=C3=A9=20Vadla=20Ravn=C3=A5s?= Date: Thu, 5 Dec 2024 15:16:38 +0100 Subject: [PATCH] vapi: Add SocketAddressUnion to libngtcp2.vapi MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Håvard Sørbø --- vapi/libngtcp2.vapi | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/vapi/libngtcp2.vapi b/vapi/libngtcp2.vapi index 6de9ad6b9..2b4409df4 100644 --- a/vapi/libngtcp2.vapi +++ b/vapi/libngtcp2.vapi @@ -204,6 +204,13 @@ namespace NGTcp2 { public struct InternetPort : uint16 { } + [CCode (cname = "ngtcp2_sockaddr_union", has_destroy_function = false)] + public struct SocketAddressUnion { + public SocketAddress sa; + public SocketAddressInternet in; + public SocketAddressInternet6 in6; + } + [CCode (cname = "ngtcp2_sockaddr", has_destroy_function = false)] public struct SocketAddress { public SocketAddressFamily sa_family;