summaryrefslogtreecommitdiffstats
path: root/src/afc.h
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2013-02-26 17:24:23 +0100
committerGravatar Martin Szulecki2013-02-27 16:18:15 +0100
commitf8066bbf5169b7d7e68771bce677355e33a595c1 (patch)
tree8e8ee0a82c3a363c171c7124884af80a68e7cd08 /src/afc.h
parentca23188eaab07d744e9cf85d9bf69ed323e94186 (diff)
downloadlibimobiledevice-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.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/afc.h b/src/afc.h
index 0c242f5..bdb1f16 100644
--- a/src/afc.h
+++ b/src/afc.h
@@ -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
59struct afc_client_private { 60struct 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 */