At the moment DeviceKit-power has the "wire" type of string for state.
Internally, this is represented by:
typedef enum {
DKP_DEVICE_STATE_CHARGING,
DKP_DEVICE_STATE_DISCHARGING,
DKP_DEVICE_STATE_EMPTY,
DKP_DEVICE_STATE_FULLY_CHARGED,
DKP_DEVICE_STATE_UNKNOWN
} DkpDeviceState;
I'm intending to change the DBus interface so that I can use
g_object_set and g_object_get internally without doing _to_string()
_from_string() all over the code tree.
As long as I document the enum values, this is okay, right?
Richard.
_______________________________________________
devkit-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/devkit-devel