mirror of
https://github.com/Palakis/obs-websocket.git
synced 2024-08-30 18:12:16 +00:00
base: Dumb #include redefinitions
This commit is contained in:
parent
d9ee288cf1
commit
98ec9d01ac
@ -1,10 +1,10 @@
|
|||||||
#include <QTime>
|
#include <QTime>
|
||||||
#include <obs-frontend-api.h>
|
#include <obs-frontend-api.h>
|
||||||
|
|
||||||
#include "plugin-macros.generated.h"
|
|
||||||
|
|
||||||
#include "Config.h"
|
#include "Config.h"
|
||||||
|
|
||||||
|
#include "plugin-macros.generated.h"
|
||||||
|
|
||||||
#define CONFIG_SECTION_NAME "OBSWebSocket"
|
#define CONFIG_SECTION_NAME "OBSWebSocket"
|
||||||
|
|
||||||
#define PARAM_ENABLED "ServerEnabled"
|
#define PARAM_ENABLED "ServerEnabled"
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
#include <QtConcurrent>
|
#include <QtConcurrent>
|
||||||
|
|
||||||
#include "plugin-macros.generated.h"
|
|
||||||
|
|
||||||
#include "WebSocketServer.h"
|
#include "WebSocketServer.h"
|
||||||
#include "obs-websocket.h"
|
#include "obs-websocket.h"
|
||||||
#include "Config.h"
|
#include "Config.h"
|
||||||
#include "requesthandler/RequestHandler.h"
|
#include "requesthandler/RequestHandler.h"
|
||||||
|
|
||||||
|
#include "plugin-macros.generated.h"
|
||||||
|
|
||||||
WebSocketServer::WebSocketServer() :
|
WebSocketServer::WebSocketServer() :
|
||||||
QObject(nullptr),
|
QObject(nullptr),
|
||||||
_sessionMutex(QMutex::Recursive),
|
_sessionMutex(QMutex::Recursive),
|
||||||
@ -35,7 +35,7 @@ WebSocketServer::WebSocketServer() :
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
blog(LOG_INFO, "test");
|
blog(LOG_INFO, "cocks");
|
||||||
}
|
}
|
||||||
|
|
||||||
WebSocketServer::~WebSocketServer()
|
WebSocketServer::~WebSocketServer()
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#include "plugin-macros.generated.h"
|
|
||||||
|
|
||||||
#include "WebSocketSession.h"
|
#include "WebSocketSession.h"
|
||||||
|
|
||||||
|
#include "plugin-macros.generated.h"
|
||||||
|
|
||||||
WebSocketSession::WebSocketSession() :
|
WebSocketSession::WebSocketSession() :
|
||||||
incomingMessages(0),
|
incomingMessages(0),
|
||||||
outgoingMessages(0),
|
outgoingMessages(0),
|
||||||
|
@ -4,13 +4,13 @@
|
|||||||
#include <QClipboard>
|
#include <QClipboard>
|
||||||
#include <QTime>
|
#include <QTime>
|
||||||
|
|
||||||
#include "../plugin-macros.generated.h"
|
|
||||||
|
|
||||||
#include "SettingsDialog.h"
|
#include "SettingsDialog.h"
|
||||||
#include "../obs-websocket.h"
|
#include "../obs-websocket.h"
|
||||||
#include "../Config.h"
|
#include "../Config.h"
|
||||||
#include "../WebSocketServer.h"
|
#include "../WebSocketServer.h"
|
||||||
|
|
||||||
|
#include "../plugin-macros.generated.h"
|
||||||
|
|
||||||
SettingsDialog::SettingsDialog(QWidget* parent) :
|
SettingsDialog::SettingsDialog(QWidget* parent) :
|
||||||
QDialog(parent, Qt::Dialog),
|
QDialog(parent, Qt::Dialog),
|
||||||
ui(new Ui::SettingsDialog)
|
ui(new Ui::SettingsDialog)
|
||||||
|
@ -6,13 +6,13 @@
|
|||||||
#include <QtWidgets/QAction>
|
#include <QtWidgets/QAction>
|
||||||
#include <QtWidgets/QMainWindow>
|
#include <QtWidgets/QMainWindow>
|
||||||
|
|
||||||
#include "plugin-macros.generated.h"
|
|
||||||
|
|
||||||
#include "obs-websocket.h"
|
#include "obs-websocket.h"
|
||||||
#include "Config.h"
|
#include "Config.h"
|
||||||
#include "WebSocketServer.h"
|
#include "WebSocketServer.h"
|
||||||
#include "forms/SettingsDialog.h"
|
#include "forms/SettingsDialog.h"
|
||||||
|
|
||||||
|
#include "plugin-macros.generated.h"
|
||||||
|
|
||||||
// Auto release definitions
|
// Auto release definitions
|
||||||
void ___source_dummy_addref(obs_source_t*) {}
|
void ___source_dummy_addref(obs_source_t*) {}
|
||||||
void ___sceneitem_dummy_addref(obs_sceneitem_t*) {}
|
void ___sceneitem_dummy_addref(obs_sceneitem_t*) {}
|
||||||
|
@ -16,8 +16,7 @@ You should have received a copy of the GNU General Public License along
|
|||||||
with this program. If not, see <https://www.gnu.org/licenses/>
|
with this program. If not, see <https://www.gnu.org/licenses/>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef PLUGINNAME_H
|
#pragma once
|
||||||
#define PLUGINNAME_H
|
|
||||||
|
|
||||||
#define OBS_WEBSOCKET_VERSION "5.0.0"
|
#define OBS_WEBSOCKET_VERSION "5.0.0"
|
||||||
|
|
||||||
@ -26,5 +25,3 @@ with this program. If not, see <https://www.gnu.org/licenses/>
|
|||||||
#define QT_TO_UTF8(str) str.toUtf8().constData()
|
#define QT_TO_UTF8(str) str.toUtf8().constData()
|
||||||
|
|
||||||
#define blog(level, msg, ...) blog(level, "[obs-websocket] " msg, ##__VA_ARGS__)
|
#define blog(level, msg, ...) blog(level, "[obs-websocket] " msg, ##__VA_ARGS__)
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -16,8 +16,7 @@ You should have received a copy of the GNU General Public License along
|
|||||||
with this program. If not, see <https://www.gnu.org/licenses/>
|
with this program. If not, see <https://www.gnu.org/licenses/>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef PLUGINNAME_H
|
#pragma once
|
||||||
#define PLUGINNAME_H
|
|
||||||
|
|
||||||
#define OBS_WEBSOCKET_VERSION "@CMAKE_PROJECT_VERSION@"
|
#define OBS_WEBSOCKET_VERSION "@CMAKE_PROJECT_VERSION@"
|
||||||
|
|
||||||
@ -26,5 +25,3 @@ with this program. If not, see <https://www.gnu.org/licenses/>
|
|||||||
#define QT_TO_UTF8(str) str.toUtf8().constData()
|
#define QT_TO_UTF8(str) str.toUtf8().constData()
|
||||||
|
|
||||||
#define blog(level, msg, ...) blog(level, "[obs-websocket] " msg, ##__VA_ARGS__)
|
#define blog(level, msg, ...) blog(level, "[obs-websocket] " msg, ##__VA_ARGS__)
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
#include "../plugin-macros.generated.h"
|
|
||||||
|
|
||||||
#include "RequestHandler.h"
|
#include "RequestHandler.h"
|
||||||
|
|
||||||
|
#include "../plugin-macros.generated.h"
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
#include "../../plugin-macros.generated.h"
|
|
||||||
|
|
||||||
#include "Request.h"
|
#include "Request.h"
|
||||||
|
|
||||||
|
#include "../../plugin-macros.generated.h"
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
#include "../../plugin-macros.generated.h"
|
|
||||||
|
|
||||||
#include "RequestResult.h"
|
#include "RequestResult.h"
|
||||||
|
|
||||||
|
#include "../../plugin-macros.generated.h"
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
|
#include "Utils.h"
|
||||||
// For AutoRelease types
|
// For AutoRelease types
|
||||||
#include "../obs-websocket.h"
|
#include "../obs-websocket.h"
|
||||||
|
|
||||||
#include "Utils.h"
|
#include "../plugin-macros.generated.h"
|
||||||
|
|
||||||
bool Utils::Json::JsonArrayIsValidObsArray(json j)
|
bool Utils::Json::JsonArrayIsValidObsArray(json j)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user