From aa065346d3230d5facd45ad1e4d50ceae206773f Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sun, 5 Jul 2009 22:26:11 -0400 Subject: [PATCH] Register ids for new file attributes --- gio/gfileinfo-priv.h | 12 ++++++++---- gio/gfileinfo.c | 4 ++++ 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/gio/gfileinfo-priv.h b/gio/gfileinfo-priv.h index 10ada1da4..0069a0b6f 100644 --- a/gio/gfileinfo-priv.h +++ b/gio/gfileinfo-priv.h @@ -57,10 +57,14 @@ #define G_FILE_ATTRIBUTE_ID_MOUNTABLE_CAN_UNMOUNT (5242880 + 2) #define G_FILE_ATTRIBUTE_ID_MOUNTABLE_CAN_EJECT (5242880 + 3) #define G_FILE_ATTRIBUTE_ID_MOUNTABLE_UNIX_DEVICE (5242880 + 4) -#define G_FILE_ATTRIBUTE_ID_MOUNTABLE_HAL_UDI (5242880 + 5) -#define G_FILE_ATTRIBUTE_ID_MOUNTABLE_CAN_START (5242880 + 6) -#define G_FILE_ATTRIBUTE_ID_MOUNTABLE_CAN_STOP (5242880 + 7) -#define G_FILE_ATTRIBUTE_ID_MOUNTABLE_START_STOP_TYPE (5242880 + 8) +#define G_FILE_ATTRIBUTE_ID_MOUNTABLE_UNIX_DEVICE_FILE (5242880 + 5) +#define G_FILE_ATTRIBUTE_ID_MOUNTABLE_HAL_UDI (5242880 + 6) +#define G_FILE_ATTRIBUTE_ID_MOUNTABLE_CAN_START (5242880 + 7) +#define G_FILE_ATTRIBUTE_ID_MOUNTABLE_CAN_START_DEGRADED (5242880 + 8) +#define G_FILE_ATTRIBUTE_ID_MOUNTABLE_CAN_STOP (5242880 + 9) +#define G_FILE_ATTRIBUTE_ID_MOUNTABLE_START_STOP_TYPE (5242880 + 10) +#define G_FILE_ATTRIBUTE_ID_MOUNTABLE_CAN_POLL (5242880 + 11) +#define G_FILE_ATTRIBUTE_ID_MOUNTABLE_IS_MEDIA_CHECK_AUTOMATIC (5242880 + 12) #define G_FILE_ATTRIBUTE_ID_TIME_MODIFIED (6291456 + 1) #define G_FILE_ATTRIBUTE_ID_TIME_MODIFIED_USEC (6291456 + 2) #define G_FILE_ATTRIBUTE_ID_TIME_ACCESS (6291456 + 3) diff --git a/gio/gfileinfo.c b/gio/gfileinfo.c index 72ed95933..488e42a05 100644 --- a/gio/gfileinfo.c +++ b/gio/gfileinfo.c @@ -217,10 +217,14 @@ ensure_attribute_hash (void) REGISTER_ATTRIBUTE (MOUNTABLE_CAN_UNMOUNT); REGISTER_ATTRIBUTE (MOUNTABLE_CAN_EJECT); REGISTER_ATTRIBUTE (MOUNTABLE_UNIX_DEVICE); + REGISTER_ATTRIBUTE (MOUNTABLE_UNIX_DEVICE_FILE); REGISTER_ATTRIBUTE (MOUNTABLE_HAL_UDI); REGISTER_ATTRIBUTE (MOUNTABLE_CAN_START); + REGISTER_ATTRIBUTE (MOUNTABLE_CAN_START_DEGRADED); REGISTER_ATTRIBUTE (MOUNTABLE_CAN_STOP); REGISTER_ATTRIBUTE (MOUNTABLE_START_STOP_TYPE); + REGISTER_ATTRIBUTE (MOUNTABLE_CAN_POLL); + REGISTER_ATTRIBUTE (MOUNTABLE_IS_MEDIA_CHECK_AUTOMATIC); REGISTER_ATTRIBUTE (TIME_MODIFIED); REGISTER_ATTRIBUTE (TIME_MODIFIED_USEC); REGISTER_ATTRIBUTE (TIME_ACCESS);