Services/HTTP: Added structures to represent an HTTP context.

More fields will probably need to be added to these structures in the future.
This commit is contained in:
B3n30
2018-07-21 19:10:00 -05:00
committed by Subv
parent fe5a3d22c5
commit 87ec3934a6
2 changed files with 73 additions and 0 deletions

View File

@@ -4,12 +4,16 @@
#pragma once
#include <unordered_map>
#include "core/hle/kernel/shared_memory.h"
#include "core/hle/service/service.h"
namespace Service {
namespace HTTP {
struct Context;
struct ClientCertContext;
class HTTP_C final : public ServiceFramework<HTTP_C> {
public:
HTTP_C();
@@ -29,6 +33,12 @@ private:
void Initialize(Kernel::HLERequestContext& ctx);
Kernel::SharedPtr<Kernel::SharedMemory> shared_memory = nullptr;
std::unordered_map<u32, Context> contexts;
u32 context_counter = 0;
std::unordered_map<u32, ClientCertContext> client_certs;
u32 client_certs_counter = 0;
};
void InstallInterfaces(SM::ServiceManager& service_manager);