/* streamer-tools OBS Camera Plugin - core library Copyright (C) 2026 CyberCoveLLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 */ #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(); }