libnx/nx/include/switch/services/nifm.h
shadowninja108 b99729142b Fixed IGeneralService leak
IGeneralService is now cached, removing the necessity for it to be closed by user (as long as they close nifm)
2018-06-03 14:44:28 -07:00

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);