diff --git a/src/WSServer.h b/src/WSServer.h index b5437dc2..6977a8c5 100644 --- a/src/WSServer.h +++ b/src/WSServer.h @@ -26,6 +26,7 @@ with this program. If not, see #include #include +#include #include #include diff --git a/src/obs-websocket.cpp b/src/obs-websocket.cpp index 68fdd43c..7e030c52 100644 --- a/src/obs-websocket.cpp +++ b/src/obs-websocket.cpp @@ -53,6 +53,7 @@ bool obs_module_load(void) { blog(LOG_INFO, "you can haz websockets (version %s)", OBS_WEBSOCKET_VERSION); blog(LOG_INFO, "qt version (compile-time): %s ; qt version (run-time): %s", QT_VERSION_STR, qVersion()); + blog(LOG_INFO, "[obs_module_load] Linked ASIO Version: %d", ASIO_VERSION); // Core setup _config = ConfigPtr(new Config()); diff --git a/src/plugin-macros.generated.h b/src/plugin-macros.generated.h new file mode 100644 index 00000000..4f4f0ef1 --- /dev/null +++ b/src/plugin-macros.generated.h @@ -0,0 +1,31 @@ +/* +obs-websocket +Copyright (C) 2016-2021 Stephane Lepin +Copyright (C) 2020-2021 Kyle Manning + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License along +with this program. If not, see +*/ + +#pragma once + +#include +#define blog(level, msg, ...) blog(level, "[obs-websocket] " msg, ##__VA_ARGS__) + +#define blog_debug(msg, ...) if (IsDebugEnabled()) blog(LOG_INFO, "[debug] " msg, ##__VA_ARGS__) + +#define OBS_WEBSOCKET_VERSION "5.0.0" + +#define OBS_WEBSOCKET_RPC_VERSION 1 + +#define QT_TO_UTF8(str) str.toUtf8().constData()