aboutsummaryrefslogtreecommitdiff
path: root/core/net/interface.odin
diff options
context:
space:
mode:
authorJeroen van Rijn <Kelimion@users.noreply.github.com>2023-03-03 14:15:15 +0100
committerJeroen van Rijn <Kelimion@users.noreply.github.com>2023-03-03 14:15:15 +0100
commit5267a864db5717d61465d6bb73ee8005f3568c9f (patch)
treee41d3f0be186ed050da102f064ed545e73dc2047 /core/net/interface.odin
parentf02334237a055f8da5bb795032c872e555abaec7 (diff)
Coalesce more.
Diffstat (limited to 'core/net/interface.odin')
-rw-r--r--core/net/interface.odin9
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`.
*/