Expand description
Raw FFI to the statically-linked idevicerestore client API
(see vendor/idevicerestore/src/idevicerestore.h).
Structs§
- idevicerestore_
client_ t - Opaque idevicerestore client handle.
Constants§
- FLAG_
DEBUG - FLAG_
ERASE - LL_
DEBUG - LL_
ERROR - LL_INFO
- LL_
NOTICE - LL_
VERBOSE - LL_
WARNING - RESTORE_
STEP_ DETECT - RESTORE_
STEP_ FLASH_ BB - RESTORE_
STEP_ FLASH_ FW - RESTORE_
STEP_ FUD - RESTORE_
STEP_ PREPARE - RESTORE_
STEP_ UPLOAD_ FS - RESTORE_
STEP_ UPLOAD_ IMG - RESTORE_
STEP_ VERIFY_ FS
Functions§
- error_
tail - The last
max_linescaptured error/warning lines, newest-relevant last. - idevicerestore_
client_ ⚠free - idevicerestore_
client_ ⚠new - idevicerestore_
set_ ⚠cache_ path - idevicerestore_
set_ ⚠ecid - idevicerestore_
set_ ⚠flags - idevicerestore_
set_ ⚠ipsw - idevicerestore_
set_ ⚠progress_ callback - idevicerestore_
set_ ⚠udid - idevicerestore_
start ⚠ - init_
progress - Initialize idevicerestore’s progress subsystem before a restore.
- install_
log_ capture - Route idevicerestore’s logging into the capture sink. When
echois set, lines are also printed to stderr (for verbose mode). Clears prior lines. - register_
progress ⚠ - Register a progress bar (or, with a NULL label, just run the one-time init of idevicerestore’s global progress mutex).
- restorekit_
log_ ⚠capture - Called from C (log_capture.c) for each idevicerestore log line.
- set_
log_ level - Set idevicerestore’s global log verbosity. Messages more verbose than
levelare never emitted (by default it dumps everything to stdout). - usbmuxd_
cleanup - Tear down USB devices, close the listen socket, and unlink the socket file.
- usbmuxd_
run - Run the usbmuxd event loop (blocks until
usbmuxd_stopis called). - usbmuxd_
start - Initialize the embedded usbmuxd server, binding a Unix socket at
path. ReturnsOk(())on success. - usbmuxd_
stop - Signal the event loop to exit.