summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2024-03-22 12:04:50 +0100
committerGravatar Nikias Bassen2024-03-22 12:04:50 +0100
commit90cd5efc8fd8ce31ede6121d691324ca2d588436 (patch)
tree73dfa6d84c887ccff6829c7973a1860581176987 /tools
parentd3198a50e51674e0ec19284f44f4aeb027d160a3 (diff)
downloadlibirecovery-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')
-rw-r--r--tools/irecovery.c2
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[])
596 596
597 case kSendFile: 597 case kSendFile:
598 irecv_event_subscribe(client, IRECV_PROGRESS, &progress_cb, NULL); 598 irecv_event_subscribe(client, IRECV_PROGRESS, &progress_cb, NULL);
599 error = irecv_send_file(client, argument, 1); 599 error = irecv_send_file(client, argument, IRECV_SEND_OPT_DFU_NOTIFY_FINISH);
600 debug("%s\n", irecv_strerror(error)); 600 debug("%s\n", irecv_strerror(error));
601 break; 601 break;
602 602