2026-09-06 20:46:08 -07:00
|
|
|
/*
|
|
|
|
|
streamer-tools OBS Camera Plugin - core library
|
|
|
|
|
Copyright (C) 2026 CyberCoveLLC <jknapp85@gmail.com>
|
|
|
|
|
|
2026-09-07 04:44:16 -07:00
|
|
|
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
|
2026-09-06 20:46:08 -07:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#include "stplugin/core.h"
|
|
|
|
|
#include "stplugin/core_c.h"
|
|
|
|
|
|
|
|
|
|
namespace stplugin {
|
|
|
|
|
|
|
|
|
|
const char *core_version() {
|
2026-09-06 21:54:11 -07:00
|
|
|
// 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;
|
2026-09-06 20:46:08 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
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();
|
|
|
|
|
}
|