summaryrefslogtreecommitdiffstats
path: root/src/main.c
AgeCommit message (Collapse)AuthorFilesLines
2009-08-09Reduce buffer size to prevent connection to freak out.Gravatar Nikias Bassen1-1/+1
There's a problem with packets larger than 65535 bytes, I suppose this has something to do with the length16 field in the usbmux_tcp_header.
2009-08-04udev operation mode; -x and -X options to exit a running instanceGravatar Nikias Bassen1-6/+55
In udev mode (-u|--udev) the return value is 0 if another instance is already running -x|--exit tells a running instance to exit by sending signal 3 (SIGQUIT) -X|--force-exit tells a running instance to exit even if devices are still connected by sending signal 15 (SIGTERM)
2009-08-04Revert "Add udev mode of operation"Gravatar Nikias Bassen1-21/+4
This reverts commit b7d4f48d7e85c43f0dd1111619acf79aba535371. Not working as expected.
2009-08-03Add udev mode of operationGravatar Bastien Nocera1-4/+21
When starting up, force background operation when in udev mode and don't error out when already running. When disconnecting, check if there are any devices left-over, and exit if not. Signed-off-by: Nikias Bassen <nikias@gmx.li>
2009-08-03Fix build warningsGravatar Bastien Nocera1-2/+2
usbmux.c: In function ‘usbmux_free_device’: usbmux.c:412: warning: ‘bytes’ may be used uninitialized in this function main.c: In function ‘usbmuxd_client_init_thread’: main.c:197: warning: dereferencing pointer ‘s_req.55’ does break strict-aliasing rules main.c:613: note: initialized from here main.c:944: warning: ‘j’ may be used uninitialized in this function Signed-off-by: Nikias Bassen <nikias@gmx.li>
2009-06-20Do not wait for connection request after scan requestGravatar Nikias Bassen1-2/+4
2009-06-20removed debugging outputGravatar Nikias Bassen1-4/+1
2009-06-20hopefully fixed race condition on connection setupGravatar Nikias Bassen1-0/+22
2009-06-19Add product ids to support iPhone 3GSGravatar Martin Szulecki1-2/+2
Signed-off-by: Nikias Bassen <nikias@gmx.li>
2009-06-15Additional mutex when writing to device.Gravatar Nikias Bassen1-2/+4
2009-05-24Removed parameter -p and added parameter -d to allow to drop privileges.Gravatar Nikias Bassen1-7/+7
Default is to NOT drop the privileges as is causes permission problems on some systems.
2009-05-23Make usb enumeration work properly.Gravatar Nikias Bassen1-32/+25
2009-05-23Enable libusb debugging when verbose is >= 2Gravatar Nikias Bassen1-0/+3
2009-05-23Some debugging output for usb_open().Gravatar Nikias Bassen1-6/+5
2009-05-23Debugging: print correct usb bus location and dev filename.Gravatar Nikias Bassen1-3/+3
2009-05-21Added parameter -p to prevent usbmuxd from dropping privilegesGravatar Nikias Bassen1-5/+12
(see this as a workaround for systems where the usb device access is restricted)
2009-05-19Let the daemon terminate only when no more device is attachedGravatar Nikias Bassen1-15/+30
2009-05-04null children[i] pointers after freeing them and check for errors whenGravatar Nikias Bassen1-3/+10
calling freopen (prevents compiler warnings).
2009-05-04Use autotools build system and add licenseGravatar Martin Szulecki1-0/+1351
Signed-off-by: Nikias Bassen <nikias@gmx.li>