2828#include " common/utils/utils_hash.h"
2929#include " json/json_key.h"
3030#include " dmxnode_outputtype.h"
31- #if defined(DMXNODE_OUTPUT_DMX)
32- #include " dmx.h"
33- #endif
3431
3532namespace json {
3633struct ArtNetParamsConst {
@@ -40,9 +37,9 @@ struct ArtNetParamsConst {
4037#if defined(RDM_CONTROLLER) || defined(RDM_RESPONDER)
4138 static constexpr auto kEnableRdm = json::MakeSimpleKey(" enable_rdm" );
4239
43- static constexpr json::PortKey kRdmEnablePortA {" rdm_enable_port_a" , 17 , Fnv1a32 (" rdm_enable_port_a" , 17 )};
40+ static constexpr json::PortKey kRdmEnablePortA {. name = " rdm_enable_port_a" , . length = 17 , . hash = Fnv1a32 (" rdm_enable_port_a" , 17 )};
4441#if (DMX_MAX_PORTS > 1)
45- static constexpr json::PortKey kRdmEnablePortB {" rdm_enable_port_b" , 17 , Fnv1a32 (" rdm_enable_port_b" , 17 )};
42+ static constexpr json::PortKey kRdmEnablePortB {. name = " rdm_enable_port_b" , . length = 17 , . hash = Fnv1a32 (" rdm_enable_port_b" , 17 )};
4643#endif
4744#if (DMX_MAX_PORTS > 2)
4845 static constexpr json::PortKey kRdmEnablePortC {" rdm_enable_port_c" , 17 , Fnv1a32 (" rdm_enable_port_c" , 17 )};
@@ -66,9 +63,9 @@ struct ArtNetParamsConst {
6663#endif
6764
6865#if defined(DMX_MAX_PORTS)
69- static constexpr json::PortKey kDestinationIpPortA {" destination_ip_port_a" , 21 , Fnv1a32 (" destination_ip_port_a" , 21 )};
66+ static constexpr json::PortKey kDestinationIpPortA {. name = " destination_ip_port_a" , . length = 21 , . hash = Fnv1a32 (" destination_ip_port_a" , 21 )};
7067#if (DMX_MAX_PORTS > 1)
71- static constexpr json::PortKey kDestinationIpPortB {" destination_ip_port_b" , 21 , Fnv1a32 (" destination_ip_port_b" , 21 )};
68+ static constexpr json::PortKey kDestinationIpPortB {. name = " destination_ip_port_b" , . length = 21 , . hash = Fnv1a32 (" destination_ip_port_b" , 21 )};
7269#endif
7370#if (DMX_MAX_PORTS > 2)
7471 static constexpr json::PortKey kDestinationIpPortC {" destination_ip_port_c" , 21 , Fnv1a32 (" destination_ip_port_c" , 21 )};
@@ -90,9 +87,9 @@ struct ArtNetParamsConst {
9087#endif
9188 };
9289
93- static constexpr json::PortKey kProtocolPortA {" protocol_port_a" , 15 , Fnv1a32 (" protocol_port_a" , 15 )};
90+ static constexpr json::PortKey kProtocolPortA {. name = " protocol_port_a" , . length = 15 , . hash = Fnv1a32 (" protocol_port_a" , 15 )};
9491#if (DMX_MAX_PORTS > 1)
95- static constexpr json::PortKey kProtocolPortB {" protocol_port_b" , 15 , Fnv1a32 (" protocol_port_b" , 15 )};
92+ static constexpr json::PortKey kProtocolPortB {. name = " protocol_port_b" , . length = 15 , . hash = Fnv1a32 (" protocol_port_b" , 15 )};
9693#endif
9794#if (DMX_MAX_PORTS > 2)
9895 static constexpr json::PortKey kProtocolPortC {" protocol_port_c" , 15 , Fnv1a32 (" protocol_port_c" , 15 )};
@@ -114,9 +111,9 @@ struct ArtNetParamsConst {
114111#endif
115112 };
116113
117- static constexpr json::PortKey kBgDiscoveryPortA {" bg_discovery_port_a" , 19 , Fnv1a32 (" bg_discovery_port_a" , 19 )};
114+ static constexpr json::PortKey kBgDiscoveryPortA {. name = " bg_discovery_port_a" , . length = 19 , . hash = Fnv1a32 (" bg_discovery_port_a" , 19 )};
118115#if (DMX_MAX_PORTS > 1)
119- static constexpr json::PortKey kBgDiscoveryPortB {" bg_discovery_port_b" , 19 , Fnv1a32 (" bg_discovery_port_b" , 19 )};
116+ static constexpr json::PortKey kBgDiscoveryPortB {. name = " bg_discovery_port_b" , . length = 19 , . hash = Fnv1a32 (" bg_discovery_port_b" , 19 )};
120117#endif
121118#if (DMX_MAX_PORTS > 2)
122119 static constexpr json::PortKey kBgDiscoveryPortC {" bg_discovery_port_c" , 19 , Fnv1a32 (" bg_discovery_port_c" , 19 )};
0 commit comments