aboutsummaryrefslogtreecommitdiff
path: root/src/ib-brightness-powerd-control.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ib-brightness-powerd-control.h')
-rw-r--r--src/ib-brightness-powerd-control.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/ib-brightness-powerd-control.h b/src/ib-brightness-powerd-control.h
index 77e44cb..77f6c8d 100644
--- a/src/ib-brightness-powerd-control.h
+++ b/src/ib-brightness-powerd-control.h
@@ -21,11 +21,19 @@
#define __IB_BRIGHTNESS_POWERD_CONTROL_H__
#include <gio/gio.h>
-GDBusProxy* powerd_get_proxy();
+
+typedef struct {
+ int max;
+ int min;
+ int dflt;
+ gboolean ab_supported;
+} brightness_params_t;
+
+GDBusProxy* powerd_get_proxy(brightness_params_t *);
typedef struct _IbBrightnessPowerdControl IbBrightnessPowerdControl;
-IbBrightnessPowerdControl* ib_brightness_powerd_control_new (GDBusProxy* powerd_proxy);
+IbBrightnessPowerdControl* ib_brightness_powerd_control_new (GDBusProxy* powerd_proxy, brightness_params_t params);
void ib_brightness_powerd_control_set_value (IbBrightnessPowerdControl* self, gint value);
gint ib_brightness_powerd_control_get_value (IbBrightnessPowerdControl* self);
gint ib_brightness_powerd_control_get_max_value (IbBrightnessPowerdControl* self);