From 1e86eab358edcd647b2d3544570e4f6988cc2aa5 Mon Sep 17 00:00:00 2001 From: Martin Szulecki Date: Sun, 26 Oct 2014 16:40:55 +0100 Subject: debug: Fix symbol locality for linker so debug messages are printed again --- src/idevice.c | 6 ++++++ src/idevice.h | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/idevice.c b/src/idevice.c index 7ec46ed..c40c59a 100644 --- a/src/idevice.c +++ b/src/idevice.c @@ -44,6 +44,7 @@ #else #include #endif + #include "idevice.h" #include "common/userpref.h" #include "common/thread.h" @@ -221,6 +222,11 @@ LIBIMOBILEDEVICE_API idevice_error_t idevice_device_list_free(char **devices) return IDEVICE_E_SUCCESS; } +LIBIMOBILEDEVICE_API void idevice_set_debug_level(int level) +{ + idevice_debug_level = level; +} + LIBIMOBILEDEVICE_API idevice_error_t idevice_new(idevice_t * device, const char *udid) { usbmuxd_device_info_t muxdev; diff --git a/src/idevice.h b/src/idevice.h index 575e313..1a52480 100644 --- a/src/idevice.h +++ b/src/idevice.h @@ -44,9 +44,10 @@ #endif #include "common/userpref.h" - #include "libimobiledevice/libimobiledevice.h" +int idevice_debug_level; + enum connection_type { CONNECTION_USBMUXD = 1 }; -- cgit v1.1-32-gdbae