diff options
author | Y.C cheng <yc.cheng@canonical.com> | 2014-03-05 16:09:10 +0800 |
---|---|---|
committer | Y.C cheng <yc.cheng@canonical.com> | 2014-03-05 16:09:10 +0800 |
commit | 237ba715a189e550f86b3b2ac11e4aefa43e3955 (patch) | |
tree | b8031f3f8ab6306bb01c0d610acdf1acd80db6d4 /src/ib-brightness-powerd-control.h | |
parent | 6a577e1b2d6941af7eef77a7a6a8c4c064dcbcf4 (diff) | |
download | ayatana-indicator-power-237ba715a189e550f86b3b2ac11e4aefa43e3955.tar.gz ayatana-indicator-power-237ba715a189e550f86b3b2ac11e4aefa43e3955.tar.bz2 ayatana-indicator-power-237ba715a189e550f86b3b2ac11e4aefa43e3955.zip |
brightness parameters as necessary condition to use powerd
Diffstat (limited to 'src/ib-brightness-powerd-control.h')
-rw-r--r-- | src/ib-brightness-powerd-control.h | 12 |
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); |