summaryrefslogtreecommitdiffstats
path: root/libusbmuxd/libusbmuxd.c
AgeCommit message (Collapse)AuthorFilesLines
2013-04-18libusbmuxd: fix race conition in automatic usbmuxd_init invocationGravatar Nikias Bassen1-2/+17
2013-02-28libusbmuxd: use a monitor to handle device events and use a device list cacheGravatar Nikias Bassen1-24/+74
this greatly improves the lookup speed if a lot of devices are attached.
2012-07-11libusbmuxd: Add function to allow dis-/enabling inotify support (Linux only)Gravatar Nikias Bassen1-0/+14
2012-05-11libusbmuxd: silence debug printfs and add libusbmuxd_set_debug_level()Gravatar Nikias Bassen1-35/+40
2012-05-05libusbmuxd: use mutex to handle concurrency issuesGravatar Nikias Bassen1-0/+15
2012-04-18win32: fix missing parameter for device_monitor_cleanup callGravatar Nikias Bassen1-1/+1
2012-04-08replace uuid by udid, which is the correct term for itGravatar Nikias Bassen1-13/+13
2012-04-07libusbmuxd: Do not close inotify watch descriptor like a file descriptorGravatar Martin S1-5/+5
This caused stdout (fd 1) to be closed in certain situations which does not happen any longer.
2012-04-07libusbmuxd: use pthread_cancel to make usbmuxd_unsubscribe work properlyGravatar Nikias Bassen1-5/+17
This actually only affects inotify-enabled builds. Since the faulty SIGINT pthread 'killing' was replaced with a proper solution, this fix is required for the situation where usbmuxd isn't initially running or was terminated; in these cases libusbmuxd was hanging inside a read() system call (waiting for an inotify event) causing pthread_join in usbmuxd_unsubscribe() to wait infinitely.
2012-04-07libusbmuxd: only fall back to polling if inotify setup failsGravatar Nikias Bassen1-3/+3
2012-04-06libusbmuxd: make ffff* restore mode udid uniqueGravatar Nikias Bassen1-0/+8
Devices in restore mode may have an all-f UDID if a previous restore procedure wasn't completed successfully. To be able to differentiate multiple of these devices we add the usbmuxd device handle to make the UDID unique.
2012-04-05libusbmuxd: fix usbmuxd_unsubscribe() by using shutdown() instead of SIGINTGravatar Nikias Bassen1-5/+5
2012-03-31libusbmuxd: handle remove messages in usbmuxd_get_device_listGravatar Nikias Bassen1-26/+49
2012-02-07libusbmuxd: only print unexpected msg warning when hdr.length > 0Gravatar Nikias Bassen1-1/+1
2012-01-17libusbmuxd: free device info after removing it from collectionGravatar Nikias Bassen1-0/+3
2012-01-12Fix possible buffer overflow (thanks Rigan)Gravatar Nikias Bassen1-1/+1
2011-01-08libusbmuxd/iproxy: use windows threads instead of pthread for win32 buildGravatar Nikias Bassen1-1/+23
2010-11-26libusbmuxd: Fix detection of already running usbmuxd (inotify)Gravatar Bastien Nocera1-1/+5
2010-11-26libusbmuxd: implement inotify supportGravatar Bastien Nocera1-10/+86
2010-09-25Use Winsock's closesocket() function instead of close() on Windows.Gravatar David Sansome1-9/+9
2010-06-13Fix cygwin buildsGravatar Cerrato Renaud1-1/+1
- libusbmuxd/CMakeLists.txt : there was a neglect into install rules, for DLL, RUNTIME was missing. - libusbmuxd.c : added __CYGWIN__ conditionnal compilation checks to force regular socket instead of UNIX sockets on CYGWIN platform.
2010-06-12Send the port number in screwed up endian in the plist (Apple compat)Gravatar Hector Martin1-1/+1
2010-05-26libusbmuxd: use winsock API for win32Gravatar Nikias Bassen1-0/+6
2010-05-26Add protocol version 1 (plist based) support using libplistGravatar Nikias Bassen1-13/+188
2010-05-26libusbmuxd: add send_packet and send_listen/connect_packet functionsGravatar Nikias Bassen1-30/+59
... and use a global tag variable changing with each request
2010-05-26libusbmuxd: add generic receive_packet function and use itGravatar Nikias Bassen1-91/+117
2010-05-26libusbmuxd: use define for the win32 port numberGravatar Nikias Bassen1-1/+1
2010-05-26libusbmuxd: use connect_usbmuxd_socket instead of connect_unix_socketGravatar Nikias Bassen1-1/+1
... inside usbmuxd_get_device_list. This makes sure it works on win32 systems.
2010-05-26Use more common predefined compiler macro to detect win32Gravatar Nikias Bassen1-1/+1
2010-04-08libusbmuxd: close connection after enumerating devicesGravatar Nikias Bassen1-0/+3
2010-04-08libusbmuxd: support shorter device info record messagesGravatar Nikias Bassen1-1/+1
This adds support for older original usbmuxd implementations shipped with iTunes.
2010-01-25Remove libusbmuxd debug again that slipped byGravatar Hector Martin1-1/+0
2010-01-24Clean up libusbmuxd warningsGravatar Hector Martin1-3/+1
2010-01-24Add missing pthread.h include to libusbmuxdGravatar Hector Martin1-0/+1
2010-01-19Removed debugging printf's and added __func__ to all remaining fprintf'sGravatar Nikias Bassen1-22/+11
2009-11-05Fix: properly remove devices from collection when usbmuxd terminatesv1.0.0Gravatar Nikias Bassen1-2/+1
... instead of freeing the collection itself. This fixes the problem with gvfs Volumes not getting removed when unplugging a device and thus increasing the number of devices listed under 'Places' or the save file dialog in GNOME.
2009-10-25Add missing license headers and make them consistentGravatar Hector Martin1-0/+23
2009-09-23Add usbmuxd_device_list_free functionGravatar Martin Szulecki1-0/+8
2009-09-08Protocol definition updated.Gravatar Nikias Bassen1-6/+41
renamed: usbmuxd_scan() -> usbmuxd_get_device_list() new: usbmuxd_get_device_by_uuid()
2009-09-05Silence 64-bit compiler warnings.Gravatar Nikias Bassen1-2/+2
2009-08-26Renamed 'enum usbmuxd_device_event' to 'enum usbmuxd_event_type'.Gravatar Nikias Bassen1-1/+1
2009-08-26Allow passing user_data to the callback function.Gravatar Nikias Bassen1-9/+9
2009-08-21Updated usbmuxd protocol definition and public header.Gravatar Nikias Bassen1-45/+288
[Hector] Merged by putting utils.c into a common dir, avoiding log.c dependency for libusbmuxd, adding CMake magic to tie things up.
2009-08-20Merge the two development historiesGravatar Hector Martin1-0/+248