@@ -74,6 +74,12 @@ class Config {
7474 std::string get_node_id () const ;
7575 bool get_auto_sinks_update () const { return auto_sinks_update_; };
7676
77+ bool get_nmos_enabled () const { return nmos_enabled_; }
78+ const std::string& get_nmos_registry_address () const { return nmos_registry_address_; }
79+ uint16_t get_nmos_registry_port () const { return nmos_registry_port_; }
80+ uint16_t get_nmos_node_port () const { return nmos_node_port_; }
81+ const std::string& get_nmos_label () const { return nmos_label_; }
82+
7783 /* attributes set during init */
7884 const std::array<uint8_t , 6 >& get_mac_addr () const { return mac_addr_; };
7985 const std::string& get_mac_addr_str () const { return mac_str_; };
@@ -171,6 +177,12 @@ class Config {
171177 };
172178 void set_driver_restart (bool restart) { driver_restart_ = restart; }
173179
180+ void set_nmos_enabled (bool v) { nmos_enabled_ = v; }
181+ void set_nmos_registry_address (std::string_view v) { nmos_registry_address_ = v; }
182+ void set_nmos_registry_port (uint16_t v) { nmos_registry_port_ = v; }
183+ void set_nmos_node_port (uint16_t v) { nmos_node_port_ = v; }
184+ void set_nmos_label (std::string_view v) { nmos_label_ = v; }
185+
174186 friend bool operator !=(const Config& lhs, const Config& rhs) {
175187 return lhs.get_http_addr_str () != rhs.get_http_addr_str () ||
176188 lhs.get_http_port () != rhs.get_http_port () ||
@@ -202,7 +214,12 @@ class Config {
202214 lhs.get_interface_name () != rhs.get_interface_name () ||
203215 lhs.get_mdns_enabled () != rhs.get_mdns_enabled () ||
204216 lhs.get_auto_sinks_update () != rhs.get_auto_sinks_update () ||
205- lhs.get_custom_node_id () != rhs.get_custom_node_id ();
217+ lhs.get_custom_node_id () != rhs.get_custom_node_id () ||
218+ lhs.get_nmos_enabled () != rhs.get_nmos_enabled () ||
219+ lhs.get_nmos_registry_address () != rhs.get_nmos_registry_address () ||
220+ lhs.get_nmos_registry_port () != rhs.get_nmos_registry_port () ||
221+ lhs.get_nmos_node_port () != rhs.get_nmos_node_port () ||
222+ lhs.get_nmos_label () != rhs.get_nmos_label ();
206223 };
207224 friend bool operator ==(const Config& lhs, const Config& rhs) {
208225 return !(lhs != rhs);
@@ -243,6 +260,12 @@ class Config {
243260 std::string node_id_;
244261 bool auto_sinks_update_{true };
245262
263+ bool nmos_enabled_{false };
264+ std::string nmos_registry_address_;
265+ uint16_t nmos_registry_port_{8010 };
266+ uint16_t nmos_node_port_{3212 };
267+ std::string nmos_label_{" AES67 Daemon" };
268+
246269 /* set during init */
247270 std::array<uint8_t , 6 > mac_addr_{0 , 0 , 0 , 0 , 0 , 0 };
248271 std::string mac_str_;
0 commit comments