diff options
author | Martin Szulecki | 2013-09-26 22:48:28 +0200 |
---|---|---|
committer | Martin Szulecki | 2013-09-26 22:48:28 +0200 |
commit | 1557e9c8bcb83b90b55f43eb5375929fc382dfd6 (patch) | |
tree | 079ed369c4094145874aa05b1d3f47a8931d5d53 /src/libirecovery.c | |
parent | fc74c3e181fd5a279b960b6ecea73f04e075a2fc (diff) | |
download | libirecovery-1557e9c8bcb83b90b55f43eb5375929fc382dfd6.tar.gz libirecovery-1557e9c8bcb83b90b55f43eb5375929fc382dfd6.tar.bz2 |
Use more accurate names for "open device" methods which use the ecid
Diffstat (limited to 'src/libirecovery.c')
-rw-r--r-- | src/libirecovery.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libirecovery.c b/src/libirecovery.c index 63bfecf..dd973f5 100644 --- a/src/libirecovery.c +++ b/src/libirecovery.c @@ -503,7 +503,7 @@ static int irecv_get_string_descriptor_ascii(irecv_client_t client, uint8_t desc #endif } -irecv_error_t irecv_open(irecv_client_t* pclient, unsigned long long ecid) { +irecv_error_t irecv_open_with_ecid(irecv_client_t* pclient, unsigned long long ecid) { if(libirecovery_debug) { irecv_set_debug_level(libirecovery_debug); } @@ -696,7 +696,7 @@ irecv_error_t irecv_reset(irecv_client_t client) { return IRECV_E_SUCCESS; } -irecv_error_t irecv_open_attempts(irecv_client_t* pclient, unsigned long long ecid, int attempts) { +irecv_error_t irecv_open_with_ecid_and_attempts(irecv_client_t* pclient, unsigned long long ecid, int attempts) { int i; for (i = 0; i < attempts; i++) { @@ -704,7 +704,7 @@ irecv_error_t irecv_open_attempts(irecv_client_t* pclient, unsigned long long ec irecv_close(*pclient); *pclient = NULL; } - if (irecv_open(pclient, ecid) != IRECV_E_SUCCESS) { + if (irecv_open_with_ecid(pclient, ecid) != IRECV_E_SUCCESS) { debug("Connection failed. Waiting 1 sec before retry.\n"); sleep(1); } else { @@ -1480,7 +1480,7 @@ irecv_client_t irecv_reconnect(irecv_client_t client, int initial_pause) { sleep(initial_pause); } - error = irecv_open_attempts(&new_client, ecid, 10); + error = irecv_open_with_ecid_and_attempts(&new_client, ecid, 10); if(error != IRECV_E_SUCCESS) { return NULL; } |