diff options
author | Nikias Bassen | 2009-07-19 20:07:21 +0200 |
---|---|---|
committer | Martin Szulecki | 2009-07-20 11:01:59 +0200 |
commit | 37f8ad0f3e64c23cd32c8c58636510f7964f1891 (patch) | |
tree | 332918af6206fb240dbb79c6ba896810174b3920 /dev/main.c | |
parent | 67a0fe9b8eb5c85348f282fee540e4fee6eedde9 (diff) | |
download | libimobiledevice-37f8ad0f3e64c23cd32c8c58636510f7964f1891.tar.gz libimobiledevice-37f8ad0f3e64c23cd32c8c58636510f7964f1891.tar.bz2 |
New type afc_lock_op_t with allowed lock operations for afc_lock_file. Only non-blocking locks are supported via AFC.
Signed-off-by: Martin Szulecki <opensuse@sukimashita.com>
Diffstat (limited to 'dev/main.c')
-rw-r--r-- | dev/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -128,7 +128,7 @@ int main(int argc, char *argv[]) afc_open_file(afc, "/com.apple.itunes.lock_sync", AFC_FOPEN_RW, &lockfile); if (lockfile) { printf("locking file\n"); - afc_lock_file(afc, lockfile, 2 | 4); + afc_lock_file(afc, lockfile, AFC_LOCK_EX); perform_notification(phone, client, NP_SYNC_DID_START); } @@ -227,7 +227,7 @@ int main(int argc, char *argv[]) //perform_notification(phone, control, NP_SYNC_DID_FINISH); printf("XXX unlocking file\n"); - afc_lock_file(afc, lockfile, 8 | 4); + afc_lock_file(afc, lockfile, AFC_LOCK_UN); printf("XXX closing file\n"); afc_close_file(afc, lockfile); |