fbd-dev-led: Make structure opaque

This will allow us to turn it into a GObject
This commit is contained in:
Guido Günther
2023-02-10 15:15:12 +00:00
committed by Guido Gunther
parent 5d8b2e5fe4
commit f17ca72c1b
2 changed files with 16 additions and 12 deletions
+15
View File
@@ -21,6 +21,21 @@
#define LED_MULTI_INTENSITY_ATTR "multi_intensity"
#define LED_PATTERN_ATTR "pattern"
struct _FbdDevLed {
GUdevDevice *dev;
guint max_brightness;
guint red_index;
guint green_index;
guint blue_index;
/*
* We just use the colors from the feedback until we
* do rgb mixing, etc
*/
FbdFeedbackLedColor color;
};
void
fbd_dev_led_free (FbdDevLed *led)
{
+1 -12
View File
@@ -13,18 +13,7 @@
G_BEGIN_DECLS
typedef struct _FbdDevLed {
GUdevDevice *dev;
guint max_brightness;
guint red_index;
guint green_index;
guint blue_index;
/*
* We just use the colors from the feedback until we
* do rgb mixing, etc
*/
FbdFeedbackLedColor color;
} FbdDevLed;
typedef struct _FbdDevLed FbdDevLed;
void fbd_dev_led_free (FbdDevLed *led);
gboolean fbd_dev_led_set_brightness (FbdDevLed *led, guint brightness);