added http service enum to the log.h file

This commit is contained in:
noah the goodra 2017-02-06 11:30:39 -06:00
parent bfc99850dc
commit af0069180b

View File

@ -6,18 +6,7 @@
namespace Service {
namespace HTTP {
void ClearDNSCache(Interface* self) {
#ifdef _WIN32
system("ipconfig /flush dns");
#elif __APPLE__
system("sudo killall -HUP mDNSResponder");
#else
system("/etc/init.d/named restart");
system("/etc/init.d/nscd restart");
#endif
u32* cmd_buff = Kernel::GetCommandBuffer();
cmd_buff[1] = RESULT_SUCCESS.raw; // No error
}
const Interface::FunctionInfo FunctionTable[] = {
{0x00010044, nullptr, "Initialize"},
{0x00020082, nullptr, "CreateContext"},
@ -69,7 +58,7 @@ const Interface::FunctionInfo FunctionTable[] = {
{0x00330040, nullptr, "OpenDefaultClientCertContext"},
{0x00340040, nullptr, "CloseClientCertContext"},
{0x00350186, nullptr, "SetDefaultProxy"},
{0x00360000, ClearDNSCache, "ClearDNSCache"},
{0x00360000, nullptr, "ClearDNSCache"},
{0x00370080, nullptr, "SetKeepAlive"},
{0x003800C0, nullptr, "SetPostDataTypeSize"},
{0x00390000, nullptr, "Finalize"},