mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-25 12:56:27 -05:00
ef24e72b26
Involves making asserts use printf instead of the log functions (log functions are asynchronous and, as such, the log won't be printed in time) As such, the log type argument was removed (printf obviously can't use it, and it's made obsolete by the file and line printing) Also removed some GEKKO cruft.
63 lines
3.1 KiB
C++
63 lines
3.1 KiB
C++
// Copyright 2014 Citra Emulator Project
|
|
// Licensed under GPLv2 or any later version
|
|
// Refer to the license.txt file included.
|
|
|
|
#include "core/hle/hle.h"
|
|
#include "core/hle/service/http_c.h"
|
|
|
|
////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
// Namespace HTTP_C
|
|
|
|
namespace HTTP_C {
|
|
|
|
const Interface::FunctionInfo FunctionTable[] = {
|
|
{0x00010044, nullptr, "Initialize"},
|
|
{0x00020082, nullptr, "CreateContext"},
|
|
{0x00030040, nullptr, "CloseContext"},
|
|
{0x00040040, nullptr, "CancelConnection"},
|
|
{0x00050040, nullptr, "GetRequestState"},
|
|
{0x00060040, nullptr, "GetDownloadSizeState"},
|
|
{0x00070040, nullptr, "GetRequestError"},
|
|
{0x00080042, nullptr, "InitializeConnectionSession"},
|
|
{0x00090040, nullptr, "BeginRequest"},
|
|
{0x000A0040, nullptr, "BeginRequestAsync"},
|
|
{0x000B0082, nullptr, "ReceiveData"},
|
|
{0x000C0102, nullptr, "ReceiveDataTimeout"},
|
|
{0x000D0146, nullptr, "SetProxy"},
|
|
{0x000E0040, nullptr, "SetProxyDefault"},
|
|
{0x000F00C4, nullptr, "SetBasicAuthorization"},
|
|
{0x00100080, nullptr, "SetSocketBufferSize"},
|
|
{0x001100C4, nullptr, "AddRequestHeader"},
|
|
{0x001200C4, nullptr, "AddPostDataAscii"},
|
|
{0x001300C4, nullptr, "AddPostDataBinary"},
|
|
{0x00140082, nullptr, "AddPostDataRaw"},
|
|
{0x00150080, nullptr, "SetPostDataType"},
|
|
{0x001600C4, nullptr, "SendPostDataAscii"},
|
|
{0x00170144, nullptr, "SendPostDataAsciiTimeout"},
|
|
{0x001800C4, nullptr, "SendPostDataBinary"},
|
|
{0x00190144, nullptr, "SendPostDataBinaryTimeout"},
|
|
{0x001A0082, nullptr, "SendPostDataRaw"},
|
|
{0x001B0102, nullptr, "SendPOSTDataRawTimeout"},
|
|
{0x001C0080, nullptr, "SetPostDataEncoding"},
|
|
{0x001D0040, nullptr, "NotifyFinishSendPostData"},
|
|
{0x001E00C4, nullptr, "GetResponseHeader"},
|
|
{0x001F0144, nullptr, "GetResponseHeaderTimeout"},
|
|
{0x00200082, nullptr, "GetResponseData"},
|
|
{0x00210102, nullptr, "GetResponseDataTimeout"},
|
|
{0x00220040, nullptr, "GetResponseStatusCode"},
|
|
{0x002300C0, nullptr, "GetResponseStatusCodeTimeout"},
|
|
{0x00240082, nullptr, "AddTrustedRootCA"},
|
|
{0x00350186, nullptr, "SetDefaultProxy"},
|
|
{0x00360000, nullptr, "ClearDNSCache"},
|
|
{0x00370080, nullptr, "SetKeepAlive"},
|
|
{0x003800C0, nullptr, "Finalize"},
|
|
};
|
|
|
|
////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
// Interface class
|
|
|
|
Interface::Interface() {
|
|
Register(FunctionTable);
|
|
}
|
|
|
|
} // namespace
|