fbd-dev-led: Make structure opaque
This will allow us to turn it into a GObject
This commit is contained in:
committed by
Guido Gunther
parent
5d8b2e5fe4
commit
f17ca72c1b
@@ -21,6 +21,21 @@
|
|||||||
#define LED_MULTI_INTENSITY_ATTR "multi_intensity"
|
#define LED_MULTI_INTENSITY_ATTR "multi_intensity"
|
||||||
#define LED_PATTERN_ATTR "pattern"
|
#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
|
void
|
||||||
fbd_dev_led_free (FbdDevLed *led)
|
fbd_dev_led_free (FbdDevLed *led)
|
||||||
{
|
{
|
||||||
|
|||||||
+1
-12
@@ -13,18 +13,7 @@
|
|||||||
|
|
||||||
G_BEGIN_DECLS
|
G_BEGIN_DECLS
|
||||||
|
|
||||||
typedef struct _FbdDevLed {
|
typedef struct _FbdDevLed 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;
|
|
||||||
|
|
||||||
void fbd_dev_led_free (FbdDevLed *led);
|
void fbd_dev_led_free (FbdDevLed *led);
|
||||||
gboolean fbd_dev_led_set_brightness (FbdDevLed *led, guint brightness);
|
gboolean fbd_dev_led_set_brightness (FbdDevLed *led, guint brightness);
|
||||||
|
|||||||
Reference in New Issue
Block a user