~ubuntu-branches/ubuntu/vivid/upower/vivid

« back to all changes in this revision

Viewing changes to src/linux/hidpp-device.h

  • Committer: Package Import Robot
  • Author(s): Martin Pitt
  • Date: 2013-09-06 15:19:05 UTC
  • Revision ID: package-import@ubuntu.com-20130906151905-rl005irvg7wd8p0h
Tags: 0.9.21-3ubuntu1
* Update 00git_updates.patch to today's upstream git:
  - Rework of hidpp detection to determine correct charge values for
    Logitech wireless keyboards/mouse (LP: #1103064)
  - Detect bluetooth mouse/keyboard batteries as such, instead of as system
    batteries. (LP: #115348)

Show diffs side-by-side

added added

removed removed

Lines of Context:
69
69
        HIDPP_REFRESH_FLAGS_KIND        = 2,
70
70
        HIDPP_REFRESH_FLAGS_BATTERY     = 4,
71
71
        HIDPP_REFRESH_FLAGS_MODEL       = 8,
72
 
        HIDPP_REFRESH_FLAGS_FEATURES    = 16
 
72
        HIDPP_REFRESH_FLAGS_FEATURES    = 16,
 
73
        HIDPP_REFRESH_FLAGS_SERIAL      = 32
73
74
} HidppRefreshFlags;
74
75
 
75
76
GType                    hidpp_device_get_type                  (void);
78
79
guint                    hidpp_device_get_version               (HidppDevice    *device);
79
80
HidppDeviceBattStatus    hidpp_device_get_batt_status           (HidppDevice    *device);
80
81
HidppDeviceKind          hidpp_device_get_kind                  (HidppDevice    *device);
 
82
const gchar             *hidpp_device_get_serial                (HidppDevice    *device);
 
83
double                   hidpp_device_get_luminosity            (HidppDevice    *device);
81
84
void                     hidpp_device_set_hidraw_device         (HidppDevice    *device,
82
85
                                                                 const gchar    *hidraw_device);
83
86
void                     hidpp_device_set_index                 (HidppDevice    *device,
84
87
                                                                 guint           device_idx);
85
88
void                     hidpp_device_set_enable_debug          (HidppDevice    *device,
86
89
                                                                 gboolean        enable_debug);
 
90
gboolean                 hidpp_device_is_reachable              (HidppDevice    *device);
87
91
gboolean                 hidpp_device_refresh                   (HidppDevice    *device,
88
92
                                                                 HidppRefreshFlags refresh_flags,
89
93
                                                                 GError         **error);