summaryrefslogtreecommitdiffstats
path: root/src/AFC.h
diff options
context:
space:
mode:
authorGravatar Jonathan Beck2008-09-14 22:23:01 +0200
committerGravatar Jonathan Beck2008-10-25 17:43:47 +0200
commit587990158fe0a7ee9a8ee086d83d1d61d61cc56b (patch)
treeedbb0422140e5df84b3e547984b7f87833619757 /src/AFC.h
parent0691e6e4cee6f0e54b432fbf0e478d699e964eaf (diff)
downloadlibimobiledevice-587990158fe0a7ee9a8ee086d83d1d61d61cc56b.tar.gz
libimobiledevice-587990158fe0a7ee9a8ee086d83d1d61d61cc56b.tar.bz2
Change lock to mutex and add tool to check AFC in multithreaded env.
Diffstat (limited to 'src/AFC.h')
-rw-r--r--src/AFC.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/AFC.h b/src/AFC.h
index f05d831..463c13e 100644
--- a/src/AFC.h
+++ b/src/AFC.h
@@ -26,6 +26,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <sys/stat.h>
+#include <glib.h>
typedef struct {
uint32 header1, header2;
@@ -46,6 +47,7 @@ struct iphone_afc_client_int {
AFCPacket *afc_packet;
int file_handle;
int lock;
+ GMutex *mutex;
};
struct iphone_afc_file_int {