up-client.h | up-client.h | |||
---|---|---|---|---|
skipping to change at line 58 | skipping to change at line 58 | |||
{ | { | |||
GObject parent; | GObject parent; | |||
UpClientPrivate *priv; | UpClientPrivate *priv; | |||
} UpClient; | } UpClient; | |||
typedef struct | typedef struct | |||
{ | { | |||
GObjectClass parent_class; | GObjectClass parent_class; | |||
void (*device_added) (UpClient *client, | void (*device_added) (UpClient *client, | |||
UpDevice *device); | UpDevice *device); | |||
void (*device_changed) (UpClient *client, | void (*device_changed) (UpClient *client, | |||
UpDevice *device); | UpDevice *device); | |||
void (*device_removed) (UpClient *client, | void (*device_removed) (UpClient *client, | |||
UpDevice *device); | UpDevice *device); | |||
void (*changed) (UpClient | void (*changed) (UpClient | |||
*client); | *client); | |||
void (*notify_sleep) (UpClient | ||||
*client, | ||||
UpSleepKind | ||||
sleep_kind); | ||||
void (*notify_resume) (UpClient | ||||
*client, | ||||
UpSleepKind | ||||
sleep_kind); | ||||
/*< private >*/ | /*< private >*/ | |||
/* Padding for future expansion */ | /* Padding for future expansion */ | |||
void (*_up_client_reserved1) (void); | void (*_up_client_reserved1) (void); | |||
void (*_up_client_reserved2) (void); | void (*_up_client_reserved2) (void); | |||
void (*_up_client_reserved3) (void); | void (*_up_client_reserved3) (void); | |||
void (*_up_client_reserved4) (void); | void (*_up_client_reserved4) (void); | |||
void (*_up_client_reserved5) (void); | void (*_up_client_reserved5) (void); | |||
void (*_up_client_reserved6) (void); | void (*_up_client_reserved6) (void); | |||
void (*_up_client_reserved7) (void); | void (*_up_client_reserved7) (void); | |||
void (*_up_client_reserved8) (void); | void (*_up_client_reserved8) (void); | |||
skipping to change at line 90 | skipping to change at line 94 | |||
gboolean up_client_get_properties_sync (UpClient *client, | gboolean up_client_get_properties_sync (UpClient *client, | |||
GCancellable *cancellable, | GCancellable *cancellable, | |||
GError **error); | GError **error); | |||
gboolean up_client_enumerate_devices_sync (UpClient *client, | gboolean up_client_enumerate_devices_sync (UpClient *client, | |||
GCancellable *cancellable, | GCancellable *cancellable, | |||
GError **error); | GError **error); | |||
gboolean up_client_suspend_sync (UpClient *client, | gboolean up_client_suspend_sync (UpClient *client, | |||
GCancellable *cancellable, | GCancellable *cancellable, | |||
GError **error); | GError **error); | |||
gboolean up_client_about_to_sleep_sync (UpClient *client, | gboolean up_client_about_to_sleep_sync (UpClient *client, | |||
UpSleepKind sleep_kind, | ||||
GCancellable *cancellable, | GCancellable *cancellable, | |||
GError **error); | GError **error); | |||
gboolean up_client_hibernate_sync (UpClient *client, | gboolean up_client_hibernate_sync (UpClient *client, | |||
GCancellable *cancellable, | GCancellable *cancellable, | |||
GError **error); | GError **error); | |||
/* accessors */ | /* accessors */ | |||
GPtrArray *up_client_get_devices (UpClient *client); | GPtrArray *up_client_get_devices (UpClient *client); | |||
const gchar *up_client_get_daemon_version (UpClient *client); | const gchar *up_client_get_daemon_version (UpClient *client); | |||
gboolean up_client_get_can_hibernate (UpClient *client); | gboolean up_client_get_can_hibernate (UpClient *client); | |||
End of changes. 4 change blocks. | ||||
4 lines changed or deleted | 13 lines changed or added | |||
up-types.h | up-types.h | |||
---|---|---|---|---|
skipping to change at line 98 | skipping to change at line 98 | |||
* | * | |||
* The type of QOS request. | * The type of QOS request. | |||
**/ | **/ | |||
typedef enum { | typedef enum { | |||
UP_QOS_KIND_UNKNOWN, | UP_QOS_KIND_UNKNOWN, | |||
UP_QOS_KIND_NETWORK, | UP_QOS_KIND_NETWORK, | |||
UP_QOS_KIND_CPU_DMA, | UP_QOS_KIND_CPU_DMA, | |||
UP_QOS_KIND_LAST | UP_QOS_KIND_LAST | |||
} UpQosKind; | } UpQosKind; | |||
/** | ||||
* UpSleepKind: | ||||
* | ||||
* The type of QOS request. | ||||
**/ | ||||
typedef enum { | ||||
UP_SLEEP_KIND_UNKNOWN, | ||||
UP_SLEEP_KIND_SUSPEND, | ||||
UP_SLEEP_KIND_HIBERNATE, | ||||
UP_SLEEP_KIND_HYBRID, | ||||
UP_SLEEP_KIND_LAST | ||||
} UpSleepKind; | ||||
const gchar *up_device_kind_to_string (UpDeviceKind type_enum); | const gchar *up_device_kind_to_string (UpDeviceKind type_enum); | |||
const gchar *up_device_state_to_string (UpDeviceState state_enum); | const gchar *up_device_state_to_string (UpDeviceState state_enum); | |||
const gchar *up_device_technology_to_string (UpDeviceTechnology technology_enum); | const gchar *up_device_technology_to_string (UpDeviceTechnology technology_enum); | |||
UpDeviceKind up_device_kind_from_string (const gchar *type); | UpDeviceKind up_device_kind_from_string (const gchar *type); | |||
UpDeviceState up_device_state_from_string (const gchar *state); | UpDeviceState up_device_state_from_string (const gchar *state); | |||
UpDeviceTechnology up_device_technology_from_string (const gchar *technology); | UpDeviceTechnology up_device_technology_from_string (const gchar *technology); | |||
const gchar *up_qos_kind_to_string (UpQosKind type); | const gchar *up_qos_kind_to_string (UpQosKind type); | |||
UpQosKind up_qos_kind_from_string (const gchar *type); | UpQosKind up_qos_kind_from_string (const gchar *type); | |||
const gchar *up_sleep_kind_to_string (UpSleepKind | ||||
sleep_kind_enum); | ||||
UpSleepKind up_sleep_kind_from_string (const gchar | ||||
*sleep_kind); | ||||
G_END_DECLS | G_END_DECLS | |||
#endif /* __UP_TYPES_H */ | #endif /* __UP_TYPES_H */ | |||
End of changes. 2 change blocks. | ||||
0 lines changed or deleted | 17 lines changed or added | |||
up-version.h | up-version.h | |||
---|---|---|---|---|
skipping to change at line 58 | skipping to change at line 58 | |||
* | * | |||
* The compile-time minor version | * The compile-time minor version | |||
*/ | */ | |||
#define UP_MINOR_VERSION (9) | #define UP_MINOR_VERSION (9) | |||
/** | /** | |||
* UP_MICRO_VERSION: | * UP_MICRO_VERSION: | |||
* | * | |||
* The compile-time micro version | * The compile-time micro version | |||
*/ | */ | |||
#define UP_MICRO_VERSION (9) | #define UP_MICRO_VERSION (13) | |||
/* check whether a UPower version equal to or greater than | /* check whether a UPower version equal to or greater than | |||
* major.minor.micro. | * major.minor.micro. | |||
*/ | */ | |||
#define UP_CHECK_VERSION(major,minor,micro) \ | #define UP_CHECK_VERSION(major,minor,micro) \ | |||
(UP_MAJOR_VERSION > (major) || \ | (UP_MAJOR_VERSION > (major) || \ | |||
(UP_MAJOR_VERSION == (major) && UP_MINOR_VERSION > (minor)) || \ | (UP_MAJOR_VERSION == (major) && UP_MINOR_VERSION > (minor)) || \ | |||
(UP_MAJOR_VERSION == (major) && UP_MINOR_VERSION == (minor) && \ | (UP_MAJOR_VERSION == (major) && UP_MINOR_VERSION == (minor) && \ | |||
UP_MICRO_VERSION >= (micro))) | UP_MICRO_VERSION >= (micro))) | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added | |||