/* streamer-tools OBS Camera Plugin - core library Copyright (C) 2026 CyberCoveLLC 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 */ #include "stplugin/core.h" #include "stplugin/core_c.h" namespace stplugin { const char *core_version() { // Injected by CMake from the top-level project() version, so the string // OBS logs on load is the actual build, not a hand-maintained literal. return STPLUGIN_CORE_VERSION; } bool ConnectionConfig::is_valid() const { return !server_url.empty() && !room_slug.empty() && !read_key.empty(); } } // namespace stplugin extern "C" const char *stplugin_core_version(void) { return stplugin::core_version(); }