diff options
author | Nikias Bassen | 2010-01-28 17:25:24 +0100 |
---|---|---|
committer | Martin Szulecki | 2010-01-28 18:12:30 +0100 |
commit | b1b746ec1826c3c42652e098fad469e514c10087 (patch) | |
tree | c9101ede64798478316af5611fa449aada36e21e /src/device.c | |
parent | d7844e59f766ee95a04ecf00d1e26aca974e9229 (diff) | |
download | sbmanager-b1b746ec1826c3c42652e098fad469e514c10087.tar.gz sbmanager-b1b746ec1826c3c42652e098fad469e514c10087.tar.bz2 |
Split up code into more separate files
Diffstat (limited to 'src/device.c')
-rw-r--r-- | src/device.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/device.c b/src/device.c index 9cfd667..bf2f2a2 100644 --- a/src/device.c +++ b/src/device.c @@ -54,6 +54,8 @@ sbservices_client_t device_sbs_new(const char *uuid, GError **error) lockdownd_client_t client = NULL; uint16_t port = 0; + printf("%s: %s\n", __func__, uuid); + g_mutex_lock(libiphone_mutex); if (IPHONE_E_SUCCESS != iphone_device_new(&phone, uuid)) { if (error) @@ -208,10 +210,14 @@ gboolean device_get_info(const char *uuid, device_info_t *device_info, GError ** lockdownd_client_t client = NULL; gboolean res = FALSE; + printf("%s: %s\n", __func__, uuid); + if (!device_info) { return res; } + printf("%s\n", __func__); + g_mutex_lock(libiphone_mutex); if (IPHONE_E_SUCCESS != iphone_device_new(&phone, uuid)) { *error = g_error_new(device_domain, ENODEV, _("No device found, is it plugged in?")); |