diff options
| author | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2023-03-03 14:15:15 +0100 |
|---|---|---|
| committer | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2023-03-03 14:15:15 +0100 |
| commit | 5267a864db5717d61465d6bb73ee8005f3568c9f (patch) | |
| tree | e41d3f0be186ed050da102f064ed545e73dc2047 /core/net/interface.odin | |
| parent | f02334237a055f8da5bb795032c872e555abaec7 (diff) | |
Coalesce more.
Diffstat (limited to 'core/net/interface.odin')
| -rw-r--r-- | core/net/interface.odin | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/core/net/interface.odin b/core/net/interface.odin index 5e6d09830..68eb73aa6 100644 --- a/core/net/interface.odin +++ b/core/net/interface.odin @@ -18,6 +18,15 @@ package net import "core:strings" +MAX_INTERFACE_ENUMERATION_TRIES :: 3 + +/* + `enumerate_interfaces` retrieves a list of network interfaces with their associated properties. +*/ +enumerate_interfaces :: proc(allocator := context.allocator) -> (interfaces: []Network_Interface, err: Network_Error) { + return _enumerate_interfaces(allocator) +} + /* `destroy_interfaces` cleans up a list of network interfaces retrieved by e.g. `enumerate_interfaces`. */ |