diff options
| author | 2008-09-14 22:23:01 +0200 | |
|---|---|---|
| committer | 2008-10-25 17:43:47 +0200 | |
| commit | 587990158fe0a7ee9a8ee086d83d1d61d61cc56b (patch) | |
| tree | edbb0422140e5df84b3e547984b7f87833619757 /src/AFC.h | |
| parent | 0691e6e4cee6f0e54b432fbf0e478d699e964eaf (diff) | |
| download | libimobiledevice-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.h | 2 |
1 files changed, 2 insertions, 0 deletions
| @@ -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 | ||
| 30 | typedef struct { | 31 | typedef 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 | ||
| 51 | struct iphone_afc_file_int { | 53 | struct iphone_afc_file_int { |
