summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2014-10-27 02:40:14 +0100
committerGravatar Martin Szulecki2014-10-27 02:40:14 +0100
commite229e28cb37bc6e938a0410d13d1afe94af57319 (patch)
tree45b1356d2880501888d9fbf46e1c944a94f6ad81 /src
parent1e86eab358edcd647b2d3544570e4f6988cc2aa5 (diff)
downloadlibimobiledevice-e229e28cb37bc6e938a0410d13d1afe94af57319.tar.gz
libimobiledevice-e229e28cb37bc6e938a0410d13d1afe94af57319.tar.bz2
debug: Fix linking failure on OS X by keeping debug level symbol internal
This change keeps the debug level symbol within the internal convenience library and makes it accessible using an internal helper. This fixes linking, prevents new exported symbols and finally allows proper control of enabling debug messages.
Diffstat (limited to 'src')
-rw-r--r--src/idevice.c2
-rw-r--r--src/idevice.h2
2 files changed, 1 insertions, 3 deletions
diff --git a/src/idevice.c b/src/idevice.c
index c40c59a..367eb0f 100644
--- a/src/idevice.c
+++ b/src/idevice.c
@@ -224,7 +224,7 @@ LIBIMOBILEDEVICE_API idevice_error_t idevice_device_list_free(char **devices)
224 224
225LIBIMOBILEDEVICE_API void idevice_set_debug_level(int level) 225LIBIMOBILEDEVICE_API void idevice_set_debug_level(int level)
226{ 226{
227 idevice_debug_level = level; 227 internal_set_debug_level(level);
228} 228}
229 229
230LIBIMOBILEDEVICE_API idevice_error_t idevice_new(idevice_t * device, const char *udid) 230LIBIMOBILEDEVICE_API idevice_error_t idevice_new(idevice_t * device, const char *udid)
diff --git a/src/idevice.h b/src/idevice.h
index 1a52480..08e24e6 100644
--- a/src/idevice.h
+++ b/src/idevice.h
@@ -46,8 +46,6 @@
46#include "common/userpref.h" 46#include "common/userpref.h"
47#include "libimobiledevice/libimobiledevice.h" 47#include "libimobiledevice/libimobiledevice.h"
48 48
49int idevice_debug_level;
50
51enum connection_type { 49enum connection_type {
52 CONNECTION_USBMUXD = 1 50 CONNECTION_USBMUXD = 1
53}; 51};