Added network info

This commit is contained in:
2026-04-17 17:00:03 -05:00
parent 39c775872a
commit 8f2f1fd496
11 changed files with 216 additions and 3 deletions
+10 -2
View File
@@ -7,10 +7,11 @@
#pragma once
#include "error/error.h"
#include "network/networkinfo.h"
#include <curl/curl.h>
#include <ifaddrs.h>
#include <net/if.h>
#include <netinet/in.h>
typedef struct {
void *nothing;
@@ -44,4 +45,11 @@ bool_t networkLinuxIsConnected();
*
* @return Any error that occurs.
*/
errorret_t networkLinuxDispose();
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();