From 90cd5efc8fd8ce31ede6121d691324ca2d588436 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Fri, 22 Mar 2024 12:04:50 +0100 Subject: 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. --- tools/irecovery.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools') 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; -- cgit v1.1-32-gdbae