Skip to main content

Crate restorekit_sys

Crate restorekit_sys 

Source
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_lines captured 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 echo is 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 level are 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_stop is called).
usbmuxd_start
Initialize the embedded usbmuxd server, binding a Unix socket at path. Returns Ok(()) on success.
usbmuxd_stop
Signal the event loop to exit.

Type Aliases§

idevicerestore_progress_cb_t