changing the enum type
Richard Hughes
hughsient at gmail.com
Fri Feb 27 03:04:08 PST 2009
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.
More information about the devkit-devel
mailing list