[gvfs/mtp-backend: 21/64] MTP: Put conditional test in gphoto2 monitor for libmtp.
- From: Philip Langdale <philipl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gvfs/mtp-backend: 21/64] MTP: Put conditional test in gphoto2 monitor for libmtp.
- Date: Sat, 12 Jan 2013 04:35:54 +0000 (UTC)
commit 09e9f1234983066c91aa4cfd14d7c51efa9a803c
Author: Philip Langdale <philipl overt org>
Date: Wed Aug 15 22:18:13 2012 -0700
MTP: Put conditional test in gphoto2 monitor for libmtp.
monitor/gphoto2/ggphoto2volumemonitor.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/monitor/gphoto2/ggphoto2volumemonitor.c b/monitor/gphoto2/ggphoto2volumemonitor.c
index 1f3ecc4..24811d4 100644
--- a/monitor/gphoto2/ggphoto2volumemonitor.c
+++ b/monitor/gphoto2/ggphoto2volumemonitor.c
@@ -201,11 +201,13 @@ gudev_add_camera (GGPhoto2VolumeMonitor *monitor, GUdevDevice *device, gboolean
return;
}
#endif /* HAVE_AFC */
+#ifdef HAVE_LIBMTP
if (g_udev_device_get_property_as_boolean (device, "ID_MTP_DEVICE"))
{
- /* g_debug ("ignoring device, is AFC"); */
+ /* g_debug ("ignoring device, is MTP"); */
return;
}
+#endif /* HAVE_LIBMTP */
usb_bus_num = g_udev_device_get_property (device, "BUSNUM");
if (usb_bus_num == NULL) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]