bugfix: fix compile failure with gcc-4.4.0 and old versions of glib2

This commit is contained in:
Richard Hughes 2009-02-04 09:41:53 +00:00
parent 5da8f57446
commit 31bd686693
7 changed files with 7 additions and 7 deletions

View file

@ -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,

View file

@ -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);

View file

@ -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);

View file

@ -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,

View file

@ -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);

View file

@ -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,

View file

@ -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);