Skip to content

Commit

Permalink
vapi: Add SocketAddressUnion to libngtcp2.vapi
Browse files Browse the repository at this point in the history
Co-authored-by: Håvard Sørbø <[email protected]>
  • Loading branch information
oleavr and hsorbo committed Dec 5, 2024
1 parent b5065e2 commit 3779ce9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions vapi/libngtcp2.vapi
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3779ce9

Please sign in to comment.