mirror of
https://github.com/switchbrew/libnx.git
synced 2025-12-29 22:39:11 +01:00
30 lines
630 B
C
30 lines
630 B
C
/**
|
|
* @file nifm.h
|
|
* @brief Network interface service IPC wrapper.
|
|
* @author shadowninja108
|
|
* @copyright libnx Authors
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "../kernel/ipc.h"
|
|
#include "../kernel/detect.h"
|
|
|
|
#include "../services/sm.h"
|
|
|
|
/// nifm internet connection status.
|
|
typedef struct NifmInternetConnectionStatus NifmInternetConnectionStatus;
|
|
|
|
struct NifmInternetConnectionStatus
|
|
{
|
|
bool wirelessCommunicationEnabled;
|
|
bool ethernetCommunicationEnabled;
|
|
};
|
|
|
|
|
|
Result nifmInitialize(void);
|
|
void nifmExit(void);
|
|
|
|
Result nifmGetCurrentIpAddress(u32* out);
|
|
Result nifmGetInternetConnectionStatus(NifmInternetConnectionStatus* out);
|