From b1b746ec1826c3c42652e098fad469e514c10087 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Thu, 28 Jan 2010 17:25:24 +0100 Subject: Split up code into more separate files --- src/device.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/device.c') 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?")); -- cgit v1.1-32-gdbae