diff options
Diffstat (limited to 'src/afc.c')
| -rw-r--r-- | src/afc.c | 10 |
1 files changed, 3 insertions, 7 deletions
| @@ -612,9 +612,7 @@ afc_error_t afc_get_file_info(afc_client_t client, const char *path, char ***inf | |||
| 612 | return ret; | 612 | return ret; |
| 613 | } | 613 | } |
| 614 | 614 | ||
| 615 | idevice_error_t | 615 | afc_error_t afc_file_open(afc_client_t client, const char *filename, afc_file_mode_t file_mode, uint64_t *handle) |
| 616 | afc_file_open(afc_client_t client, const char *filename, | ||
| 617 | afc_file_mode_t file_mode, uint64_t *handle) | ||
| 618 | { | 616 | { |
| 619 | if (!client || !client->parent || !client->afc_packet) | 617 | if (!client || !client->parent || !client->afc_packet) |
| 620 | return AFC_E_INVALID_ARG; | 618 | return AFC_E_INVALID_ARG; |
| @@ -662,8 +660,7 @@ afc_file_open(afc_client_t client, const char *filename, | |||
| 662 | return ret; | 660 | return ret; |
| 663 | } | 661 | } |
| 664 | 662 | ||
| 665 | idevice_error_t | 663 | afc_error_t afc_file_read(afc_client_t client, uint64_t handle, char *data, uint32_t length, uint32_t *bytes_read) |
| 666 | afc_file_read(afc_client_t client, uint64_t handle, char *data, uint32_t length, uint32_t *bytes_read) | ||
| 667 | { | 664 | { |
| 668 | char *input = NULL; | 665 | char *input = NULL; |
| 669 | uint32_t current_count = 0, bytes_loc = 0; | 666 | uint32_t current_count = 0, bytes_loc = 0; |
| @@ -716,8 +713,7 @@ afc_file_read(afc_client_t client, uint64_t handle, char *data, uint32_t length, | |||
| 716 | return ret; | 713 | return ret; |
| 717 | } | 714 | } |
| 718 | 715 | ||
| 719 | idevice_error_t | 716 | afc_error_t afc_file_write(afc_client_t client, uint64_t handle, const char *data, uint32_t length, uint32_t *bytes_written) |
| 720 | afc_file_write(afc_client_t client, uint64_t handle, const char *data, uint32_t length, uint32_t *bytes_written) | ||
| 721 | { | 717 | { |
| 722 | uint32_t current_count = 0; | 718 | uint32_t current_count = 0; |
| 723 | uint32_t bytes_loc = 0; | 719 | uint32_t bytes_loc = 0; |
