diff options
| author | 2024-03-22 12:04:50 +0100 | |
|---|---|---|
| committer | 2024-03-22 12:04:50 +0100 | |
| commit | 90cd5efc8fd8ce31ede6121d691324ca2d588436 (patch) | |
| tree | 73dfa6d84c887ccff6829c7973a1860581176987 /tools/irecovery.c | |
| parent | d3198a50e51674e0ec19284f44f4aeb027d160a3 (diff) | |
| download | libirecovery-90cd5efc8fd8ce31ede6121d691324ca2d588436.tar.gz libirecovery-90cd5efc8fd8ce31ede6121d691324ca2d588436.tar.bz2 | |
Change irecv_send_buffer to accept an options bitfield instead of just one value
This allows to specify different options. To not break existing behavior, a
value of 1 or (1 << 0) means IRECV_SEND_OPT_DFU_NOTIFY_FINISH which is used
extensively in e.g. idevicerestore. Other options are
IRECV_SEND_OPT_DFU_FORCE_ZLP which I don't remember what it was added for,
and a new option IRECV_SEND_OPT_DFU_SMALL_PKT which needed for upload in
port DFU mode, as it won't accept packets with more than 64 bytes data and
also doesn't like a CRC attached to it.
Diffstat (limited to 'tools/irecovery.c')
| -rw-r--r-- | tools/irecovery.c | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/tools/irecovery.c b/tools/irecovery.c index 955d3ca..61d053a 100644 --- a/tools/irecovery.c +++ b/tools/irecovery.c @@ -596,7 +596,7 @@ int main(int argc, char* argv[])  		case kSendFile:  			irecv_event_subscribe(client, IRECV_PROGRESS, &progress_cb, NULL); -			error = irecv_send_file(client, argument, 1); +			error = irecv_send_file(client, argument, IRECV_SEND_OPT_DFU_NOTIFY_FINISH);  			debug("%s\n", irecv_strerror(error));  			break; | 
