base: Add EventHandler files

This commit is contained in:
tt2468 2021-05-10 15:48:41 -07:00
parent ee751edf54
commit c0accd9cde
5 changed files with 10 additions and 0 deletions

View File

@ -74,6 +74,7 @@ set(obs-websocket_SOURCES
src/WebSocketServer.cpp
src/WebSocketProtocol.cpp
src/WebSocketSession.cpp
src/eventhandler/EventHandler.cpp
src/requesthandler/RequestHandler.cpp
src/requesthandler/RequestHandler_General.cpp
src/requesthandler/rpc/Request.cpp
@ -92,6 +93,7 @@ set(obs-websocket_HEADERS
src/WebSocketServer.h
src/WebSocketProtocol.h
src/WebSocketSession.h
src/eventhandler/EventHandler.h
src/requesthandler/RequestHandler.h
src/requesthandler/rpc/Request.h
src/requesthandler/rpc/RequestResult.h

View File

@ -0,0 +1 @@
#include "EventHandler.h"

View File

@ -0,0 +1 @@
#pragma once

View File

@ -10,6 +10,7 @@
#include "obs-websocket.h"
#include "Config.h"
#include "WebSocketServer.h"
#include "eventhandler/EventHandler.h"
#include "forms/SettingsDialog.h"
#include "plugin-macros.generated.h"

View File

@ -32,6 +32,11 @@ typedef std::shared_ptr<Config> ConfigPtr;
class WebSocketServer;
typedef std::shared_ptr<WebSocketServer> WebSocketServerPtr;
class EventHandler;
typedef std::shared_ptr<EventHandler> EventHandlerPtr;
ConfigPtr GetConfig();
WebSocketServerPtr GetWebSocketServer();
EventHandlerPtr GetEventHandler();