mirror of
https://gitlab.freedesktop.org/upower/upower.git
synced 2026-05-09 03:38:05 +02:00
bugfix: fix compile failure with gcc-4.4.0 and old versions of glib2
This commit is contained in:
parent
5da8f57446
commit
31bd686693
7 changed files with 7 additions and 7 deletions
|
|
@ -57,7 +57,7 @@ typedef struct
|
|||
void (*changed) (DkpClient *client);
|
||||
} DkpClientClass;
|
||||
|
||||
GType dkp_client_get_type (void) G_GNUC_CONST;
|
||||
GType dkp_client_get_type (void);
|
||||
DkpClient *dkp_client_new (void);
|
||||
GPtrArray *dkp_client_enumerate_devices (DkpClient *client);
|
||||
gboolean dkp_client_suspend (DkpClient *client,
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ typedef struct
|
|||
const DkpObject *obj);
|
||||
} DkpDeviceClass;
|
||||
|
||||
GType dkp_device_get_type (void) G_GNUC_CONST;
|
||||
GType dkp_device_get_type (void);
|
||||
DkpDevice *dkp_device_new (void);
|
||||
|
||||
const DkpObject *dkp_device_get_object (const DkpDevice *device);
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@ typedef struct
|
|||
guint value);
|
||||
} DkpWakeupsClass;
|
||||
|
||||
GType dkp_wakeups_get_type (void) G_GNUC_CONST;
|
||||
GType dkp_wakeups_get_type (void);
|
||||
DkpWakeups *dkp_wakeups_new (void);
|
||||
guint dkp_wakeups_get_total (DkpWakeups *wakeups,
|
||||
GError **error);
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@ typedef gint (*EggObjListCompareFunc) (gconstpointer data1,
|
|||
typedef gpointer (*EggObjListFromStringFunc) (const gchar *data);
|
||||
typedef gchar *(*EggObjListToStringFunc) (gconstpointer data);
|
||||
|
||||
GType egg_obj_list_get_type (void) G_GNUC_CONST;
|
||||
GType egg_obj_list_get_type (void);
|
||||
EggObjList *egg_obj_list_new (void);
|
||||
|
||||
void egg_obj_list_set_new (EggObjList *list,
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ typedef struct
|
|||
GObjectClass parent_class;
|
||||
} DkpDeviceListClass;
|
||||
|
||||
GType dkp_device_list_get_type (void) G_GNUC_CONST;
|
||||
GType dkp_device_list_get_type (void);
|
||||
DkpDeviceList *dkp_device_list_new (void);
|
||||
DkpDevice *dkp_device_list_lookup (DkpDeviceList *list,
|
||||
DevkitDevice *d);
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@ typedef enum {
|
|||
} DkpHistoryType;
|
||||
|
||||
|
||||
GType dkp_history_get_type (void) G_GNUC_CONST;
|
||||
GType dkp_history_get_type (void);
|
||||
DkpHistory *dkp_history_new (void);
|
||||
EggObjList *dkp_history_get_data (DkpHistory *history,
|
||||
DkpHistoryType type,
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ typedef struct
|
|||
GObjectClass parent_class;
|
||||
} DkpPolkitClass;
|
||||
|
||||
GType dkp_polkit_get_type (void) G_GNUC_CONST;
|
||||
GType dkp_polkit_get_type (void);
|
||||
DkpPolkit *dkp_polkit_new (void);
|
||||
PolKitCaller *dkp_polkit_get_caller (DkpPolkit *polkit,
|
||||
DBusGMethodInvocation *context);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue