Allow service publication to be set in json

This commit is contained in:
Patrick Nicolas
2025-01-24 21:53:22 +01:00
parent 3a776a523f
commit f7f0ae60bb
4 changed files with 71 additions and 34 deletions
+8
View File
@@ -29,6 +29,13 @@
namespace wivrn
{
enum class service_publication
{
none,
avahi,
};
struct configuration
{
struct encoder
@@ -50,6 +57,7 @@ struct configuration
std::optional<std::array<double, 2>> scale;
std::vector<std::string> application;
bool tcp_only = false;
service_publication publication = service_publication::avahi;
static void set_config_file(const std::filesystem::path &);
static const std::filesystem::path & get_config_file();