Merged requested to merge guido.gunther/feedbackd:led-class into main
FbdDevLed into a class and allow
FbdDevMulticolor to derive form it.
This avoids special cases for the later.
The order of things is as follows:
FbdDevLedto a separate file
FbdDevLedattributes until we can make the struct opaque
GInitableso initialization can fail without having all in
fbd_dev_led_new ()(thus making things harder for derived classes)
- Add a minimal set of class methods with a default implementation (that still doesn't change the way things work)
- Extract multicolor specific bits into a derived class thus making the default implementations simpler
I haven't yet tested the multicolor bits on a multicolor led system but single color still works as expected. I'll give this a second pass to cleanup some details but wanted to get this out so !100 can move forward.