diff options
Diffstat (limited to 'src/afc.h')
| -rw-r--r-- | src/afc.h | 5 |
1 files changed, 3 insertions, 2 deletions
| @@ -30,6 +30,7 @@ | |||
| 30 | #endif | 30 | #endif |
| 31 | 31 | ||
| 32 | #include "libimobiledevice/afc.h" | 32 | #include "libimobiledevice/afc.h" |
| 33 | #include "service.h" | ||
| 33 | #include "endianness.h" | 34 | #include "endianness.h" |
| 34 | 35 | ||
| 35 | #define AFC_MAGIC "CFA6LPAA" | 36 | #define AFC_MAGIC "CFA6LPAA" |
| @@ -57,7 +58,7 @@ typedef struct { | |||
| 57 | } AFCFilePacket; | 58 | } AFCFilePacket; |
| 58 | 59 | ||
| 59 | struct afc_client_private { | 60 | struct afc_client_private { |
| 60 | idevice_connection_t connection; | 61 | service_client_t parent; |
| 61 | AFCPacket *afc_packet; | 62 | AFCPacket *afc_packet; |
| 62 | int file_handle; | 63 | int file_handle; |
| 63 | int lock; | 64 | int lock; |
| @@ -66,7 +67,7 @@ struct afc_client_private { | |||
| 66 | #else | 67 | #else |
| 67 | pthread_mutex_t mutex; | 68 | pthread_mutex_t mutex; |
| 68 | #endif | 69 | #endif |
| 69 | int own_connection; | 70 | int free_parent; |
| 70 | }; | 71 | }; |
| 71 | 72 | ||
| 72 | /* AFC Operations */ | 73 | /* AFC Operations */ |
