-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
2,001 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
*~ | ||
build | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Nikias Bassen | ||
Hector Martin | ||
Bastien Nocera | ||
Paul Sladen | ||
Martin Szulecki |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
PROJECT(usbmuxd) | ||
|
||
cmake_minimum_required(VERSION 2.6) | ||
|
||
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/Modules/") | ||
|
||
add_subdirectory (libusbmuxd) | ||
add_subdirectory (usbmuxd) | ||
add_subdirectory (tools) | ||
add_subdirectory (udev) |
Large diffs are not rendered by default.
Oops, something went wrong.
File renamed without changes.
Large diffs are not rendered by default.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
Background | ||
========== | ||
|
||
'libusbmuxd' makes it really simple to talk to a running 'usbmuxd' and | ||
hides all the details for you. There are two function calls: | ||
|
||
usbmuxd_scan() | ||
-------------- | ||
|
||
This returns a list of all available iPhone-like devices that are | ||
available for talking to. The returned array contains the USB | ||
product_id, hex formatted serial_number of any iPhones/iTouches and a | ||
non-descript 'handle' for all those devices that are within range (as | ||
of March 2009, that means a device directly plugged into the | ||
computer's USB port). | ||
|
||
Once you have found the device you want to communicate with, take its | ||
'handle' and pass this to usbmuxd_connect(). | ||
|
||
usbmuxd_connect() | ||
----------------- | ||
|
||
This takes a handle, a destination port number and tries to setup | ||
a proxy a connection. It returns a file-descriptor which you should | ||
be able to read(), write() and select() on like any other active network | ||
socket connection. | ||
|
||
|
||
Technical details | ||
================= | ||
|
||
When usbmuxd is running (normally started, or stopped as a result of | ||
'udev' auto-insertion messages), it provides a socket interface in | ||
'/var/run/usbmuxd' that is designed to be compatible with the socket | ||
interface that is provided on MacOSX. | ||
|
||
The structures for communicating over this device are documented | ||
in the 'usbmuxd-proto.h', but you shouldn't need to view them | ||
directly if you are using the libusbmuxd.so library for easy access. | ||
|
||
|
||
Example | ||
======= | ||
|
||
#include <usbmuxd.h> | ||
|
||
... | ||
|
||
gcc -o leetphone leetphone.c -lusbmuxd | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
add_library (libusbmuxd libusbmuxd.c sock_stuff.c) | ||
|
||
# 'lib' is a UNIXism, the proper CMake target is usbmuxd | ||
# But we can't use that due to the conflict with the usbmuxd daemon, | ||
# so instead change the library output base name to usbmuxd here | ||
set_target_properties(libusbmuxd PROPERTIES OUTPUT_NAME usbmuxd) | ||
|
||
install(TARGETS libusbmuxd | ||
ARCHIVE DESTINATION lib | ||
LIBRARY DESTINATION lib | ||
) | ||
install(FILES usbmuxd.h usbmuxd-proto.h DESTINATION include) |
Oops, something went wrong.