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 @@
26#include <stdio.h> 26#include <stdio.h>
27#include <stdlib.h> 27#include <stdlib.h>
28#include <sys/stat.h> 28#include <sys/stat.h>
29#include <glib.h>
29 30
30typedef struct { 31typedef struct {
31 uint32 header1, header2; 32 uint32 header1, header2;
@@ -46,6 +47,7 @@ struct iphone_afc_client_int {
46 AFCPacket *afc_packet; 47 AFCPacket *afc_packet;
47 int file_handle; 48 int file_handle;
48 int lock; 49 int lock;
50 GMutex *mutex;
49}; 51};
50 52
51struct iphone_afc_file_int { 53struct iphone_afc_file_int {