]> git.pld-linux.org Git - packages/clementine.git/blame - libimobiledevice-1.1.2.patch
update files
[packages/clementine.git] / libimobiledevice-1.1.2.patch
CommitLineData
4fa200b4
ER
1commit 119c9c27ac74d4e0f2941a66143afde2b3c64870
2Author: David Sansome <me@davidsansome.com>
3Date: Tue Mar 27 21:24:38 2012 +0100
4
5 Detect libimobiledevice 1.1.2 and use its new "udid" field instead of "uuid".
6
7diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
8index c250704..3339ba1 100644
9--- a/src/CMakeLists.txt
10+++ b/src/CMakeLists.txt
11@@ -25,6 +25,10 @@ if (QT_VERSION_MINOR GREATER 5)
12 endif(QT_VERSION_MINOR GREATER 7)
13 endif(QT_VERSION_MINOR GREATER 5)
14
15+if(ENABLE_IMOBILEDEVICE AND IMOBILEDEVICE_VERSION VERSION_GREATER 1.1.1)
16+ set(IMOBILEDEVICE_USES_UDIDS ON)
17+endif()
18+
19 include_directories(${CMAKE_BINARY_DIR})
20 include_directories(${GLIB_INCLUDE_DIRS})
21 include_directories(${LIBXML_INCLUDE_DIRS})
22@@ -1079,6 +1083,7 @@ if(HAVE_IMOBILEDEVICE)
23 ${USBMUXD_LIBRARIES}
24 gstafcsrc
25 )
26+ link_directories(${IMOBILEDEVICE_LIBRARY_DIRS})
27 link_directories(${USBMUXD_LIBRARY_DIRS})
28 endif(HAVE_IMOBILEDEVICE)
29
30diff --git a/src/config.h.in b/src/config.h.in
31index aae8b77..e2b1ce5 100644
32--- a/src/config.h.in
33+++ b/src/config.h.in
34@@ -39,6 +39,7 @@
35 #cmakedefine HAVE_SPOTIFY
36 #cmakedefine HAVE_STATIC_SQLITE
37 #cmakedefine HAVE_WIIMOTEDEV
38+#cmakedefine IMOBILEDEVICE_USES_UDIDS
39 #cmakedefine LEOPARD
40 #cmakedefine SNOW_LEOPARD
41 #cmakedefine USE_INSTALL_PREFIX
42diff --git a/src/devices/ilister.cpp b/src/devices/ilister.cpp
43index c0140d9..a27f37b 100644
44--- a/src/devices/ilister.cpp
45+++ b/src/devices/ilister.cpp
46@@ -1,3 +1,4 @@
47+#include "config.h"
48 #include "ilister.h"
49 #include "imobiledeviceconnection.h"
50
51@@ -17,7 +18,11 @@ void iLister::Init() {
52 void iLister::EventCallback(const idevice_event_t* event, void* context) {
53 iLister* me = reinterpret_cast<iLister*>(context);
54
55+#ifdef IMOBILEDEVICE_USES_UDIDS
56+ const char* uuid = event->udid;
57+#else
58 const char* uuid = event->uuid;
59+#endif
60
61 switch (event->event) {
62 case IDEVICE_DEVICE_ADD:
This page took 0.102456 seconds and 4 git commands to generate.