summaryrefslogtreecommitdiff
path: root/src/afc.h
diff options
context:
space:
mode:
authorNikias Bassen <nikias@gmx.li>2013-02-26 17:24:23 +0100
committerMartin Szulecki <opensuse@sukimashita.com>2013-02-27 16:18:15 +0100
commitf8066bbf5169b7d7e68771bce677355e33a595c1 (patch)
tree8e8ee0a82c3a363c171c7124884af80a68e7cd08 /src/afc.h
parentca23188eaab07d744e9cf85d9bf69ed323e94186 (diff)
downloadlibimobiledevice-f8066bbf5169b7d7e68771bce677355e33a595c1.tar.gz
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 @@
#endif
#include "libimobiledevice/afc.h"
+#include "service.h"
#include "endianness.h"
#define AFC_MAGIC "CFA6LPAA"
@@ -57,7 +58,7 @@ typedef struct {
} AFCFilePacket;
struct afc_client_private {
- idevice_connection_t connection;
+ service_client_t parent;
AFCPacket *afc_packet;
int file_handle;
int lock;
@@ -66,7 +67,7 @@ struct afc_client_private {
#else
pthread_mutex_t mutex;
#endif
- int own_connection;
+ int free_parent;
};
/* AFC Operations */