summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Fix compiler warning about missing void in function declaration of ↵fidetro2020-04-271-1/+1
| | | | usbmuxd_unsubscribe()
* Remove unnecessary NULL pointer checksNikias Bassen2019-05-261-9/+4
|
* inotify: Fix hang when usbmuxd is not running and device monitor is stoppedNikias Bassen2019-05-251-2/+47
|
* Make sure device monitor thread can be cancelled without pthread_cancelNikias Bassen2019-05-251-3/+5
|
* Make sure to send device remove events when unregistering the callbackNikias Bassen2019-05-231-0/+8
|
* Add new usbmuxd_events_subscribe/unsubscribe functions with a context so it ↵Nikias Bassen2019-05-221-36/+138
| | | | can be used in different threads
* Fix Segmentation Fault when UDID parsing failed by bailing out in case of errorNikias Bassen2019-03-231-1/+1
| | | | Fixes #63.
* Use common thread implementation as used in other libimobiledevice librariesNikias Bassen2019-02-272-33/+14
|
* win32: Make sure ECONNREFUSED is definedNikias Bassen2019-02-261-0/+3
|
* Return meaningful error codes from usbmuxd_connect()Nikias Bassen2019-01-181-5/+13
|
* Avoid code duplication for sanitizing udidNikias Bassen2018-10-161-14/+15
|
* Rename DEBUG and ERROR macros to avoid name collisionNikias Bassen2018-10-151-52/+52
|
* Allow using non-standard usbmuxd socket address via environment variableNikias Bassen2018-10-141-0/+44
| | | | | | | | By using USBMUXD_SOCKET_ADDRESS environment variable, it is possible to make libusbmuxd connect to the specified address. The value needs to be in format ADDRESS:PORT (or UNIX:PATH on unix systems). If no port number is specified or parsing fails, the standard socket address (or unix domain socket file path) will be used silently.
* Add proper support for USB and network (WiFi sync) devices reported by usbmuxdNikias Bassen2018-10-131-101/+201
| | | | | | | | | | This commit extends the interface with a new function usbmuxd_get_device() that allows to look up USB *and* network devices, while the 'old' interface usbmuxd_get_device_by_udid() only targets USB devices. The usbmuxd_device_info_t structure now has new members 'conn_type' and 'conn_data' so that the returned device info allows to figure out if a device is available via USB or network. Check the comments in include/usbmuxd.h for more details.
* Silence compiler warning about signed vs. unsigned compareNikias Bassen2018-10-121-2/+2
|
* Properly detect availability of program_invocation_short_name and suppress ↵Nikias Bassen2018-10-121-2/+2
| | | | compiler warning
* Add hyphen to new style UDIDs on device add events tooNikias Bassen2018-10-121-0/+5
|
* Add hyphen to new style UDIDs introduced with iPhone XS/XRBALATON Zoltan2018-10-081-0/+5
|
* Add usbmuxd_save_pair_record_with_device_id() to target a device by it's ↵Nikias Bassen2018-09-151-5/+13
| | | | usbmux id
* Set ClientVersionString to a more adequate string (PACKAGE_VERSION)Nikias Bassen2018-09-151-1/+1
|
* Properly set ProgName (and BundleID if available) in plist messages to usbmuxdNikias Bassen2018-09-151-8/+165
|
* win32: Only define sleep() when it's not found and reorder header file includesNikias Bassen2017-01-031-3/+5
|
* Use ax_pthread.m4 and get rid of clang compiler warning about pthreadNikias Bassen2016-12-271-1/+1
|
* Move EBADMSG and EPROTO defines out of the WIN32 ifdefDavid Crosby2016-07-141-4/+5
| | | | Fixes compilation on OpenBSD, which surprisingly doesn't have them
* win32: Return WaitForSingleObject error code in usbmuxd_unsubscribeNikias Bassen2016-07-141-1/+4
| | | | | | Similar to the previous commit, WaitForSingleObject may return an error code. While not sure how to handle this error we return it to the caller of usbmuxd_unsubscribe.
* Report pthread_kill/pthread_join errors in usbmuxd_unsubscribeChristophe Fergeau2016-07-141-2/+7
| | | | | | | | | | | | | | In order to avoid race condition between an usbmuxd_event_cb_t firing in a different thread and usbmuxd_unsubscribe() being called, libusbmuxd users must assume that once usbmuxd_unsubcribe() returns, no more usbmuxd_event_cb_t callbacks will fire, but also that those which were already started when usbmuxd_unsubcribe() is called will have completed. usbmuxd_unsubcribe() tries to guarantee this, but pthread_kill/pthread_join may fail, in which case this guarantee would not hold. This commit makes sure an error is reported to the caller when we get in this situation (though I'm not really sure how the caller could handle it).
* Handle 'Paired' message and pass event to client through callbackNikias Bassen2016-07-141-0/+12
|
* Log all errors during receive for debuggingBALATON Zoltan2016-07-131-11/+7
|
* Catch Paired message even if it is ignored now to prevent returning anBALATON Zoltan2016-07-131-2/+18
| | | | error to the user on receiving this message.
* inotify: Work around race condition by adding a retry loopNikias Bassen2014-10-101-1/+8
| | | | | | | | | In certain circumstances usbmuxd might not have been started up when the socket file creation event has occured. This causes connect_usbmuxd_socket() to fail and usbmuxd_listen_inotify() is invoked again, but the socket file creation event will not occur anymore. To fix this we retry to connect to usbmuxd after waiting a second in case the first connection attempt failed (with a maximum of 10 retries).
* Fix check for file descriptor validityNikias Bassen2014-10-101-1/+1
|
* Update copyright headerMartin Szulecki2014-10-061-2/+2
|
* Fix undefined pointer operation warning from latest ClangMartin Szulecki2014-10-061-1/+1
| | | | Fixes #20, which caused a warning due to "-Wtautological-pointer-compare".
* win32: Avoid exporting non-public symbols with declspec dllexportNikias Bassen2014-10-031-3/+7
|
* Use -fvisibility=hidden to avoid exporting non-public symbolsChow Loong Jin2014-10-031-16/+22
|
* Move socket and collection functions to a convenience libraryChow Loong Jin2014-10-035-633/+3
| | | | This avoids the iproxy tool from relying on undocumented library ABI.
* Update copyright headers of all source files to matchMartin Szulecki2014-10-035-71/+68
|
* Properly rename header guards according to C++ standardNikias Bassen2014-09-132-5/+5
|
* Return 0 on success in usbmuxd_read_buid()Nikias Bassen2014-09-111-1/+2
|
* Properly dereference record_data to check that it's set.Aaron Burghardt2014-06-201-1/+1
| | | | Signed-off-by: Martin Szulecki <m.szulecki@libimobiledevice.org>
* Make sure to close socket if usbmuxd_get_device_list() errors outNikias Bassen2014-05-061-0/+3
|
* Close socket in usbmuxd_read_buid() and usbmuxd_*_pair_record() functionsNikias Bassen2014-04-241-0/+4
|
* Fix check for validity of socket file descriptorNikias Bassen2014-03-251-1/+1
|
* Properly handle segmented send/receive situationsNikias Bassen2014-03-241-4/+20
|
* Improve error checking around usbmuxd_get_result()Nikias Bassen2014-03-241-15/+18
|
* Use plist_dict_set_item() instead of deprecated plist_dict_insert_item()Nikias Bassen2014-03-221-9/+9
|
* socket: Fix compiler warning due to unused variableMartin Szulecki2014-03-121-0/+4
|
* socket: avoid SIGPIPE using SO_NOSIGPIPE or MSG_NOSIGNALNikias Bassen2014-03-111-1/+40
|
* usbmuxd_send(): return negative errno value on errorNikias Bassen2014-03-111-1/+1
|
* use socket_send() instead of send()Nikias Bassen2014-03-101-1/+1
|