libnx
v4.7.0
|
Network interface service IPC wrapper. More...
Go to the source code of this file.
Data Structures | |
struct | NifmRequest |
Request. More... | |
struct | NifmClientId |
ClientId. More... | |
struct | NifmIpV4Address |
IpV4Address. More... | |
struct | NifmIpAddressSetting |
IpAddressSetting. More... | |
struct | NifmDnsSetting |
DnsSetting. More... | |
struct | NifmProxySetting |
ProxySetting. More... | |
struct | NifmIpSettingData |
IpSettingData. More... | |
struct | NifmWirelessSettingData |
WirelessSettingData. More... | |
struct | NifmSfWirelessSettingData |
SfWirelessSettingData. More... | |
struct | NifmSfNetworkProfileData |
SfNetworkProfileData. Converted to/from NifmNetworkProfileData. More... | |
struct | NifmNetworkProfileData |
NetworkProfileData. Converted from/to NifmSfNetworkProfileData. More... | |
Enumerations | |
enum | NifmServiceType { NifmServiceType_User = 0 , NifmServiceType_System = 1 , NifmServiceType_Admin = 2 } |
enum | NifmInternetConnectionType { NifmInternetConnectionType_WiFi = 1 , NifmInternetConnectionType_Ethernet = 2 } |
enum | NifmInternetConnectionStatus { NifmInternetConnectionStatus_ConnectingUnknown1 = 0 , NifmInternetConnectionStatus_ConnectingUnknown2 = 1 , NifmInternetConnectionStatus_ConnectingUnknown3 = 2 , NifmInternetConnectionStatus_ConnectingUnknown4 = 3 , NifmInternetConnectionStatus_Connected = 4 } |
enum | NifmRequestState { NifmRequestState_Invalid = 0 , NifmRequestState_Unknown1 = 1 , NifmRequestState_OnHold = 2 , NifmRequestState_Available = 3 , NifmRequestState_Unknown4 = 4 , NifmRequestState_Unknown5 = 5 } |
Functions | |
Result | nifmInitialize (NifmServiceType service_type) |
Initialize nifm. This is used automatically by gethostid(). | |
void | nifmExit (void) |
Exit nifm. This is used automatically by gethostid(). | |
Service * | nifmGetServiceSession_StaticService (void) |
Gets the Service object for the actual nifm:* service session. | |
Service * | nifmGetServiceSession_GeneralService (void) |
Gets the Service object for IGeneralService. | |
NifmClientId | nifmGetClientId (void) |
GetClientId. | |
Result | nifmCreateRequest (NifmRequest *r, bool autoclear) |
CreateRequest. More... | |
Result | nifmGetCurrentNetworkProfile (NifmNetworkProfileData *profile) |
GetCurrentNetworkProfile. More... | |
Result | nifmGetNetworkProfile (Uuid uuid, NifmNetworkProfileData *profile) |
GetNetworkProfile. More... | |
Result | nifmSetNetworkProfile (const NifmNetworkProfileData *profile, Uuid *uuid) |
SetNetworkProfile. More... | |
Result | nifmGetCurrentIpAddress (u32 *out) |
GetCurrentIpAddress. More... | |
Result | nifmGetCurrentIpConfigInfo (u32 *current_addr, u32 *subnet_mask, u32 *gateway, u32 *primary_dns_server, u32 *secondary_dns_server) |
GetCurrentIpConfigInfo. More... | |
Result | nifmSetWirelessCommunicationEnabled (bool enable) |
Result | nifmIsWirelessCommunicationEnabled (bool *out) |
Result | nifmGetInternetConnectionStatus (NifmInternetConnectionType *connectionType, u32 *wifiStrength, NifmInternetConnectionStatus *connectionStatus) |
Result | nifmIsEthernetCommunicationEnabled (bool *out) |
bool | nifmIsAnyInternetRequestAccepted (NifmClientId id) |
IsAnyInternetRequestAccepted. More... | |
Result | nifmIsAnyForegroundRequestAccepted (bool *out) |
Result | nifmPutToSleep (void) |
Result | nifmWakeUp (void) |
Result | nifmSetWowlDelayedWakeTime (s32 val) |
SetWowlDelayedWakeTime. More... | |
IRequest | |
void | nifmRequestClose (NifmRequest *r) |
Close a NifmRequest. More... | |
Result | nifmGetRequestState (NifmRequest *r, NifmRequestState *out) |
GetRequestState. More... | |
Result | nifmGetResult (NifmRequest *r) |
GetResult. More... | |
Result | nifmRequestCancel (NifmRequest *r) |
Cancel. More... | |
Result | nifmRequestSubmit (NifmRequest *r) |
Submit. More... | |
Result | nifmRequestSubmitAndWait (NifmRequest *r) |
SubmitAndWait. More... | |
Result | nifmRequestGetAppletInfo (NifmRequest *r, u32 theme_color, void *buffer, size_t size, u32 *applet_id, u32 *mode, u32 *out_size) |
GetAppletInfo. More... | |
Result | nifmRequestSetKeptInSleep (NifmRequest *r, bool flag) |
SetKeptInSleep. More... | |
Result | nifmRequestRegisterSocketDescriptor (NifmRequest *r, int sockfd) |
RegisterSocketDescriptor. More... | |
Result | nifmRequestUnregisterSocketDescriptor (NifmRequest *r, int sockfd) |
UnregisterSocketDescriptor. More... | |
Network interface service IPC wrapper.
enum NifmRequestState |
enum NifmServiceType |
Result nifmCreateRequest | ( | NifmRequest * | r, |
bool | autoclear | ||
) |
CreateRequest.
[out] | r | NifmRequest |
[in] | autoclear | Event autoclear to use for NifmRequest::event1, a default of true can be used for this. |
GetCurrentIpAddress.
[out] | out | IPv4 address (struct in_addr). |
Result nifmGetCurrentIpConfigInfo | ( | u32 * | current_addr, |
u32 * | subnet_mask, | ||
u32 * | gateway, | ||
u32 * | primary_dns_server, | ||
u32 * | secondary_dns_server | ||
) |
GetCurrentIpConfigInfo.
[out] | current_addr | Same as nifmGetCurrentIpAddress output. |
[out] | subnet_mask | Subnet Mask (struct in_addr). |
[out] | gateway | Gateway (struct in_addr). |
[out] | primary_dns_server | Primary DNS server IPv4 address (struct in_addr). |
[out] | secondary_dns_server | Secondary DNS server IPv4 address (struct in_addr). |
Result nifmGetCurrentNetworkProfile | ( | NifmNetworkProfileData * | profile | ) |
GetCurrentNetworkProfile.
[out] | profile | NifmNetworkProfileData |
Result nifmGetInternetConnectionStatus | ( | NifmInternetConnectionType * | connectionType, |
u32 * | wifiStrength, | ||
NifmInternetConnectionStatus * | connectionStatus | ||
) |
wifiStrength | Strength of the Wi-Fi signal in number of bars from 0 to 3. |
Result nifmGetNetworkProfile | ( | Uuid | uuid, |
NifmNetworkProfileData * | profile | ||
) |
GetNetworkProfile.
[in] | uuid | Uuid |
[out] | profile | NifmNetworkProfileData |
Result nifmGetRequestState | ( | NifmRequest * | r, |
NifmRequestState * | out | ||
) |
GetRequestState.
r | NifmRequest | |
[out] | out | NifmRequestState |
Result nifmGetResult | ( | NifmRequest * | r | ) |
GetResult.
r | NifmRequest |
bool nifmIsAnyInternetRequestAccepted | ( | NifmClientId | id | ) |
IsAnyInternetRequestAccepted.
[in] | id | NifmClientId |
Result nifmRequestCancel | ( | NifmRequest * | r | ) |
Cancel.
r | NifmRequest |
void nifmRequestClose | ( | NifmRequest * | r | ) |
Close a NifmRequest.
r | NifmRequest |
Result nifmRequestGetAppletInfo | ( | NifmRequest * | r, |
u32 | theme_color, | ||
void * | buffer, | ||
size_t | size, | ||
u32 * | applet_id, | ||
u32 * | mode, | ||
u32 * | out_size | ||
) |
GetAppletInfo.
r | NifmRequest | |
[in] | theme_color | ThemeColor |
[out] | buffer | Output buffer for storage data. |
[in] | size | Output buffer size. |
[out] | applet_id | AppletId |
[out] | mode | LibAppletMode |
[out] | out_size | Total data size written to the output buffer. |
Result nifmRequestRegisterSocketDescriptor | ( | NifmRequest * | r, |
int | sockfd | ||
) |
RegisterSocketDescriptor.
Only 1 socket can be registered at a time with a NifmRequest. Do not use directly, use socketNifmRequestRegisterSocketDescriptor instead.
r | NifmRequest | |
[in] | sockfd | Socket fd |
Result nifmRequestSetKeptInSleep | ( | NifmRequest * | r, |
bool | flag | ||
) |
SetKeptInSleep.
r | NifmRequest | |
[in] | flag | Flag |
Result nifmRequestSubmit | ( | NifmRequest * | r | ) |
Submit.
r | NifmRequest |
Result nifmRequestSubmitAndWait | ( | NifmRequest * | r | ) |
SubmitAndWait.
r | NifmRequest |
Result nifmRequestUnregisterSocketDescriptor | ( | NifmRequest * | r, |
int | sockfd | ||
) |
UnregisterSocketDescriptor.
Do not use directly, use socketNifmRequestUnregisterSocketDescriptor instead.
r | NifmRequest | |
[in] | sockfd | Socket fd, must match the fd previously registered with nifmRequestRegisterSocketDescriptor. |
Result nifmSetNetworkProfile | ( | const NifmNetworkProfileData * | profile, |
Uuid * | uuid | ||
) |
SetNetworkProfile.
[in] | profile | NifmNetworkProfileData |
[out] | uuid | Uuid |
Result nifmSetWirelessCommunicationEnabled | ( | bool | enable | ) |
SetWowlDelayedWakeTime.
[in] | val | Input value. |