~ubuntu-branches/ubuntu/natty/devicekit-power/natty

« back to all changes in this revision

Viewing changes to libdevkit-power/dkp-enum.h

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2009-03-06 13:48:24 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20090306134824-33mroekaajqd2tl6
Tags: 006-0ubuntu1
* New upstream version 006:
  - Fix the battery capacity calculation. (fd#19165)
  - Special case machines where the kernel does not convert charge to power.
  - Check all the power supply fields for valid data.
  - Add a wakeups interface so we can get data from the system over DBus.
  - Allow showing the wakeup data in the devkit-power command line tool.
  - Fix compile failure with gcc-4.4.0 and old versions of glib2.
  - Only enable the wakeups polling if a client requires the data.
  - Correctly set the power-supply property.
  - Don't crash when we limit the resolution of a small dataset.
  - Don't sync to disk every 5 seconds, do it every 10 minutes.
  - Fix the QoS interface with the proper signature.

Show diffs side-by-side

added added

removed removed

Lines of Context:
56
56
        DKP_DEVICE_TECHNOLGY_UNKNOWN
57
57
} DkpDeviceTechnology;
58
58
 
 
59
typedef enum {
 
60
        DKP_QOS_TYPE_NETWORK,
 
61
        DKP_QOS_TYPE_CPU_DMA,
 
62
        DKP_QOS_TYPE_UNKNOWN
 
63
} DkpQosType;
 
64
 
59
65
const gchar     *dkp_device_type_to_text        (DkpDeviceType           type_enum);
60
66
const gchar     *dkp_device_state_to_text       (DkpDeviceState          state_enum);
61
67
const gchar     *dkp_device_technology_to_text  (DkpDeviceTechnology     technology_enum);
62
68
DkpDeviceType    dkp_device_type_from_text      (const gchar            *type);
63
69
DkpDeviceState   dkp_device_state_from_text     (const gchar            *state);
64
70
DkpDeviceTechnology dkp_device_technology_from_text (const gchar        *technology);
 
71
const gchar     *dkp_qos_type_to_text           (DkpQosType              type);
 
72
DkpQosType       dkp_qos_type_from_text         (const gchar            *type);
65
73
 
66
74
G_END_DECLS
67
75