mirror of
https://github.com/switchbrew/libnx.git
synced 2025-12-29 22:39:11 +01:00
IGeneralService is now cached, removing the necessity for it to be closed by user (as long as they close nifm)
25 lines
482 B
C
25 lines
482 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"
|
|
|
|
typedef struct {
|
|
Service s;
|
|
} IGeneralService;
|
|
|
|
Result nifmInitialize();
|
|
void nifmExit(void);
|
|
|
|
Result _CreateGeneralService(IGeneralService* out, u64 in);
|
|
Result _CreateGeneralServiceOld(IGeneralService* out);
|
|
|
|
Result GetCurrentIpAddress(u32* out); |