/** * Copyright (c) 2026 Dominic Masters * * This software is released under the MIT License. * https://opensource.org/licenses/MIT */ #pragma once #include "error/error.h" #include "network/networkinfo.h" #include #include #include #include typedef struct { void *nothing; } networklinux_t; /** * Initializes the network manager. Must be called before any other network * functions. * * @return Any error that occurs. */ errorret_t networkLinuxInit(); /** * Updates the network manager, called once per frame to handle completed * HTTP requests. * * @return Any error that occurs. */ errorret_t networkLinuxUpdate(); /** * Returns true — Linux uses the OS network stack which is always available. * * @return true */ bool_t networkLinuxIsConnected(); /** * Disposes the network manager. * * @return Any error that occurs. */ errorret_t networkLinuxDispose(); /** * Gets the network information for the currently active network connection. * * @return Network information for the currently active network connection. */ networkinfo_t networkLinuxGetInfo();