summaryrefslogtreecommitdiffstats
path: root/src/libusbmuxd.c
AgeCommit message (Collapse)AuthorFilesLines
2016-07-14Report pthread_kill/pthread_join errors in usbmuxd_unsubscribeGravatar Christophe Fergeau1-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).
2016-07-14Handle 'Paired' message and pass event to client through callbackGravatar Nikias Bassen1-0/+12
2016-07-13Log all errors during receive for debuggingGravatar BALATON Zoltan1-11/+7
2016-07-13Catch Paired message even if it is ignored now to prevent returning anGravatar BALATON Zoltan1-2/+18
error to the user on receiving this message.
2014-10-10inotify: Work around race condition by adding a retry loopGravatar Nikias Bassen1-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).
2014-10-10Fix check for file descriptor validityGravatar Nikias Bassen1-1/+1
2014-10-06Update copyright headerGravatar Martin Szulecki1-2/+2
2014-10-06Fix undefined pointer operation warning from latest ClangGravatar Martin Szulecki1-1/+1
Fixes #20, which caused a warning due to "-Wtautological-pointer-compare".
2014-10-03win32: Avoid exporting non-public symbols with declspec dllexportGravatar Nikias Bassen1-3/+7
2014-10-03Use -fvisibility=hidden to avoid exporting non-public symbolsGravatar Chow Loong Jin1-16/+22
2014-10-03Update copyright headers of all source files to matchGravatar Martin Szulecki1-21/+20
2014-09-11Return 0 on success in usbmuxd_read_buid()Gravatar Nikias Bassen1-1/+2
2014-06-20Properly dereference record_data to check that it's set.Gravatar Aaron Burghardt1-1/+1
Signed-off-by: Martin Szulecki <m.szulecki@libimobiledevice.org>
2014-05-06Make sure to close socket if usbmuxd_get_device_list() errors outGravatar Nikias Bassen1-0/+3
2014-04-24Close socket in usbmuxd_read_buid() and usbmuxd_*_pair_record() functionsGravatar Nikias Bassen1-0/+4
2014-03-24Properly handle segmented send/receive situationsGravatar Nikias Bassen1-4/+20
2014-03-24Improve error checking around usbmuxd_get_result()Gravatar Nikias Bassen1-15/+18
2014-03-22Use plist_dict_set_item() instead of deprecated plist_dict_insert_item()Gravatar Nikias Bassen1-9/+9
2014-03-11usbmuxd_send(): return negative errno value on errorGravatar Nikias Bassen1-1/+1
2014-03-10use socket_send() instead of send()Gravatar Nikias Bassen1-1/+1
2014-03-02plug several memory leaksGravatar Nikias Bassen1-4/+7
2014-03-02remove invalid freeGravatar Nikias Bassen1-1/+0
2014-02-10Change vendor id to org.libimobiledevice.usbmuxdGravatar Martin Szulecki1-1/+1
2014-02-10Replace socket implementation and fix indentation in iproxy sourcesGravatar Martin Szulecki1-21/+21
2014-01-15removed mutex lock - concurrency issues where caused by tag mismatchGravatar Nikias Bassen1-18/+0
2014-01-10make usbmuxd_send() return a negative errno value like specified in the docsGravatar Nikias Bassen1-1/+2
2014-01-08make 'use_tag' usage thread safe and ignore tag mismatch errorsGravatar Nikias Bassen1-28/+39
2014-01-07Fix checking return values from usbmuxdGravatar Nikias Bassen1-4/+4
2013-12-13correct some debug messagesGravatar Nikias Bassen1-4/+4
2013-12-13implemented usbmuxd_read/save/delete_pair_record()Gravatar Nikias Bassen1-0/+133
2013-12-13implemented usbmuxd_read_buid()Gravatar Nikias Bassen1-0/+51
2013-12-13make libplist dependency/protov1 support mandatoryGravatar Nikias Bassen1-44/+7
2013-12-12implement ListDevices command and use it in usbmuxd_get_device_list()Gravatar Nikias Bassen1-31/+131
2013-12-11usbmuxd_get_result: allow getting the plist result for newer usbmuxd commandsGravatar Nikias Bassen1-8/+23
2013-12-11default to proto v1 (plist) with fallback to binary-onlyGravatar Nikias Bassen1-6/+10
2013-12-09add missing kLibUSBMuxVersion to plist messagesGravatar Nikias Bassen1-0/+2
2013-12-09add plist helper functions to reduce code duplicationGravatar Nikias Bassen1-28/+31
2013-11-12Fixed misuse of free() instead of plist_free().Gravatar Aaron Burghardt1-1/+1
2013-09-17disable debug output by defaultGravatar Nikias Bassen1-1/+1
2013-09-17improve speed my lowering timeout when getting device listGravatar Nikias Bassen1-1/+1
2013-09-17initial commit of adapted source tree.Gravatar Nikias Bassen1-0/+980