Remove support for old imobiledevice uuid, it won't work anyway because

of other changes
This commit is contained in:
Jonas Kvinge 2019-07-13 17:55:50 +02:00
parent b089ba2e04
commit c8bd89e56f
3 changed files with 1 additions and 9 deletions

View File

@ -388,10 +388,6 @@ include_directories(${GLIB_INCLUDE_DIRS})
include_directories(${GLIBCONFIG_INCLUDE_DIRS})
include_directories(${TAGLIB_INCLUDE_DIRS})
if(HAVE_IMOBILEDEVICE AND LIBIMOBILEDEVICE_VERSION VERSION_GREATER 1.1.1)
set(IMOBILEDEVICE_USES_UDIDS ON)
endif()
# Subdirectories
add_subdirectory(src)
add_subdirectory(dist)

View File

@ -40,7 +40,6 @@
#cmakedefine HAVE_CHROMAPRINT
#cmakedefine HAVE_TAGLIB_DSFFILE
#cmakedefine HAVE_GLOBALSHORTCUTS
#cmakedefine IMOBILEDEVICE_USES_UDIDS
#cmakedefine USE_INSTALL_PREFIX
#cmakedefine HAVE_GSTREAMER

View File

@ -43,13 +43,10 @@ bool iLister::Init() {
}
void iLister::EventCallback(const idevice_event_t *event, void *context) {
iLister *me = reinterpret_cast<iLister*>(context);
#ifdef IMOBILEDEVICE_USES_UDIDS
const char *uuid = event->udid;
#else
const char *uuid = event->uuid;
#endif
switch (event->event) {
case IDEVICE_DEVICE_ADD: