diff options
| author | 2013-02-26 17:24:23 +0100 | |
|---|---|---|
| committer | 2013-02-27 16:18:15 +0100 | |
| commit | f8066bbf5169b7d7e68771bce677355e33a595c1 (patch) | |
| tree | 8e8ee0a82c3a363c171c7124884af80a68e7cd08 /src/afc.h | |
| parent | ca23188eaab07d744e9cf85d9bf69ed323e94186 (diff) | |
| download | libimobiledevice-f8066bbf5169b7d7e68771bce677355e33a595c1.tar.gz libimobiledevice-f8066bbf5169b7d7e68771bce677355e33a595c1.tar.bz2 | |
implement base service that all other services inherit from
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 */ |
