RGBController API Overhaul

* Reorganize and clean up RGBController API functions
    * Add functions to get protected RGBController member values
    * Make NetworkClient, ProfileManager, and ResourceManager friend classes so they can access protected members
    * Protected previously-public RGBController members
        * Information strings (name, vendor, description, version, serial location)
        * Device type
        * Active mode
        * Flags
        * LEDs vector
        * LED alternate names vector
        * Modes vector
        * Colors vector
        * Zones vector
    * Add CONTROLLER_FLAG_HIDDEN to allow plugins to hide controllers from control GUI
    * Add update reason codes to RGBController update callback and signal updates on more RGBController events
    * Add loop zone types and segmented zone type
    * Add matrix map field to segments
    * Rework matrix_map_type from using pointers to vector to prevent memory leaks
    * Rework KeyboardLayoutManager to return new matrix_map_type
    * Add access mutex to RGBController API
    * Add per-zone modes ot RGBController API
    * Add JSON description functions to RGBController API
This commit is contained in:
Adam Honse
2025-09-23 20:38:37 -05:00
parent fa20f4319a
commit dfd8656d9f
655 changed files with 9459 additions and 9022 deletions

View File

@@ -76,7 +76,6 @@ void RGBController_IntelArcA770LE::SetupZones()
fan_1_zone.leds_min = 16;
fan_1_zone.leds_max = 16;
fan_1_zone.leds_count = 16;
fan_1_zone.matrix_map = NULL;
zones.push_back(fan_1_zone);
zone fan_2_zone;
@@ -85,7 +84,6 @@ void RGBController_IntelArcA770LE::SetupZones()
fan_2_zone.leds_min = 16;
fan_2_zone.leds_max = 16;
fan_2_zone.leds_count = 16;
fan_2_zone.matrix_map = NULL;
zones.push_back(fan_2_zone);
zone back;
@@ -94,7 +92,6 @@ void RGBController_IntelArcA770LE::SetupZones()
back.leds_min = 8;
back.leds_max = 8;
back.leds_count = 8;
back.matrix_map = NULL;
zones.push_back(back);
zone ring;
@@ -103,7 +100,6 @@ void RGBController_IntelArcA770LE::SetupZones()
ring.leds_min = 50;
ring.leds_max = 50;
ring.leds_count = 50;
ring.matrix_map = NULL;
zones.push_back(ring);
zone logo;
@@ -112,7 +108,6 @@ void RGBController_IntelArcA770LE::SetupZones()
logo.leds_min = 1;
logo.leds_max = 1;
logo.leds_count = 1;
logo.matrix_map = NULL;
zones.push_back(logo);
for(unsigned int led_idx = 0; led_idx < 16; led_idx++)
@@ -158,13 +153,6 @@ void RGBController_IntelArcA770LE::SetupZones()
SetupColors();
}
void RGBController_IntelArcA770LE::ResizeZone(int /*zone*/, int /*new_size*/)
{
/*---------------------------------------------------------*\
| This device does not support resizing zones |
\*---------------------------------------------------------*/
}
void RGBController_IntelArcA770LE::DeviceUpdateLEDs()
{
unsigned char led_ids[15];
@@ -191,12 +179,12 @@ void RGBController_IntelArcA770LE::DeviceUpdateLEDs()
}
}
void RGBController_IntelArcA770LE::UpdateZoneLEDs(int /*zone*/)
void RGBController_IntelArcA770LE::DeviceUpdateZoneLEDs(int /*zone*/)
{
}
void RGBController_IntelArcA770LE::UpdateSingleLED(int /*led*/)
void RGBController_IntelArcA770LE::DeviceUpdateSingleLED(int /*led*/)
{
}