diff options
Diffstat (limited to 'monitor/afc/afcvolumemonitor.c')
-rw-r--r-- | monitor/afc/afcvolumemonitor.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/monitor/afc/afcvolumemonitor.c b/monitor/afc/afcvolumemonitor.c index dfc3fa55..9f24753a 100644 --- a/monitor/afc/afcvolumemonitor.c +++ b/monitor/afc/afcvolumemonitor.c @@ -83,15 +83,22 @@ static void g_vfs_afc_monitor_idevice_event (const idevice_event_t *event, void *user_data) { GVfsAfcVolumeMonitor *self; + gchar *event_udid; g_return_if_fail (event != NULL); self = G_VFS_AFC_VOLUME_MONITOR(user_data); +#ifdef HAVE_LIBIMOBILEDEVICE_1_1_2 + event_udid = event->udid; +#else + event_udid = event->uuid; +#endif + if (event->event == IDEVICE_DEVICE_ADD) - g_vfs_afc_monitor_create_volume (self, event->uuid); + g_vfs_afc_monitor_create_volume (self, event_udid); else - g_vfs_afc_monitor_remove_volume (self, event->uuid); + g_vfs_afc_monitor_remove_volume (self, event_udid); } static GObject * |