diff --git a/src/WebSocketApi.cpp b/src/WebSocketApi.cpp
index 15c27150..6939fb98 100644
--- a/src/WebSocketApi.cpp
+++ b/src/WebSocketApi.cpp
@@ -18,7 +18,6 @@ with this program. If not, see
#include "WebSocketApi.h"
#include "requesthandler/RequestHandler.h"
-#include "obs-websocket.h"
#include "utils/Json.h"
#define RETURN_STATUS(status) \
@@ -79,9 +78,12 @@ WebSocketApi::~WebSocketApi()
blog_debug("[WebSocketApi::~WebSocketApi] Finished.");
}
-void WebSocketApi::SetEventCallback(EventCallback cb)
+void WebSocketApi::BroadcastEvent(uint64_t requiredIntent, const std::string &eventType, const json &eventData, uint8_t rpcVersion)
{
- _eventCallback = cb;
+ UNUSED_PARAMETER(requiredIntent);
+ UNUSED_PARAMETER(eventType);
+ UNUSED_PARAMETER(eventData);
+ UNUSED_PARAMETER(rpcVersion);
}
enum WebSocketApi::RequestReturnCode WebSocketApi::PerformVendorRequest(std::string vendorName, std::string requestType,
@@ -289,10 +291,10 @@ void WebSocketApi::vendor_event_emit_cb(void *priv_data, calldata_t *cd)
auto eventData = static_cast(voidEventData);
- if (!c->_eventCallback)
+ if (!c->_vendorEventCallback)
RETURN_FAILURE();
- c->_eventCallback(v->_name, eventType, eventData);
+ c->_vendorEventCallback(v->_name, eventType, eventData);
RETURN_SUCCESS();
}
diff --git a/src/WebSocketApi.h b/src/WebSocketApi.h
index 35d9ecd5..1c88502c 100644
--- a/src/WebSocketApi.h
+++ b/src/WebSocketApi.h
@@ -23,9 +23,13 @@ with this program. If not, see
#include