fbd-dev-led: Add class methods so derived classes can override functionality

This commit is contained in:
Guido Günther
2023-02-10 15:15:12 +00:00
committed by Guido Gunther
parent ac0516329c
commit ca712e9a32
2 changed files with 165 additions and 120 deletions
+8
View File
@@ -27,6 +27,14 @@ gboolean fbd_dev_led_has_color (FbdDevLed *led, FbdFeedbackLedColor c
struct _FbdDevLedClass {
GObjectClass parent_class;
gboolean (*probe) (FbdDevLed *led, GError **error);
gboolean (*start_periodic) (FbdDevLed *led,
FbdFeedbackLedColor color,
guint max_brightness_percentage,
guint freq);
gboolean (*has_color) (FbdDevLed *led,
FbdFeedbackLedColor color);
};
G_END_DECLS