Files
obs-streamer-tools-plugin/core/src/core.cpp
T

37 lines
1.1 KiB
C++
Raw Normal View History

/*
streamer-tools OBS Camera Plugin - core library
Copyright (C) 2026 CyberCoveLLC <jknapp85@gmail.com>
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 <https://www.gnu.org/licenses/>
*/
#include "stplugin/core.h"
#include "stplugin/core_c.h"
namespace stplugin {
const char *core_version() {
return "0.0.1-scaffold";
}
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();
}