mirror of
https://github.com/jkcoxson/idevice.git
synced 2026-03-02 06:26:15 +01:00
Update README.md (#32)
This commit is contained in:
@@ -82,7 +82,7 @@ async fn main() {
|
|||||||
// We'll ask usbmuxd for a device
|
// We'll ask usbmuxd for a device
|
||||||
let mut usbmuxd = UsbmuxdConnection::default()
|
let mut usbmuxd = UsbmuxdConnection::default()
|
||||||
.await
|
.await
|
||||||
.expect("Unable to connect to usbmxud")
|
.expect("Unable to connect to usbmuxd");
|
||||||
let devs = usbmuxd.get_devices().unwrap();
|
let devs = usbmuxd.get_devices().unwrap();
|
||||||
if devs.is_empty() {
|
if devs.is_empty() {
|
||||||
eprintln!("No devices connected!");
|
eprintln!("No devices connected!");
|
||||||
@@ -119,12 +119,12 @@ async fn main() {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
More examples are in the ``tools`` crate and in the crate documentation.
|
More examples are in the [`tools`](tools/) crate and in the crate documentation.
|
||||||
|
|
||||||
## FFI
|
## FFI
|
||||||
|
|
||||||
For use in other languages, a small FFI crate has been created to start exposing
|
For use in other languages, a small FFI crate has been created to start exposing
|
||||||
idevice. Example C programs can be found in this repository.
|
idevice. Example C programs can be found in the [`ffi/examples`](ffi/examples/) directory.
|
||||||
|
|
||||||
## Version Policy
|
## Version Policy
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user