mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-06-03 12:27:21 +12:00
[HTTP] Add service stuff
This commit is contained in:
parent
e2bd6ea4ef
commit
8d5a3d6197
7 changed files with 76 additions and 5 deletions
21
include/services/http.hpp
Normal file
21
include/services/http.hpp
Normal file
|
@ -0,0 +1,21 @@
|
|||
#pragma once
|
||||
#include "helpers.hpp"
|
||||
#include "kernel_types.hpp"
|
||||
#include "logger.hpp"
|
||||
#include "memory.hpp"
|
||||
|
||||
class HTTPService {
|
||||
Handle handle = KernelHandles::HTTP;
|
||||
Memory& mem;
|
||||
MAKE_LOG_FUNCTION(log, httpLogger)
|
||||
|
||||
bool initialized = false;
|
||||
|
||||
// Service commands
|
||||
void initialize(u32 messagePointer);
|
||||
|
||||
public:
|
||||
HTTPService(Memory& mem) : mem(mem) {}
|
||||
void reset();
|
||||
void handleSyncRequest(u32 messagePointer);
|
||||
};
|
|
@ -21,6 +21,7 @@
|
|||
#include "services/gsp_gpu.hpp"
|
||||
#include "services/gsp_lcd.hpp"
|
||||
#include "services/hid.hpp"
|
||||
#include "services/http.hpp"
|
||||
#include "services/ir_user.hpp"
|
||||
#include "services/ldr_ro.hpp"
|
||||
#include "services/mic.hpp"
|
||||
|
@ -53,6 +54,7 @@ class ServiceManager {
|
|||
DlpSrvrService dlp_srvr;
|
||||
DSPService dsp;
|
||||
HIDService hid;
|
||||
HTTPService http;
|
||||
IRUserService ir_user;
|
||||
FRDService frd;
|
||||
FSService fs;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue