diff options
| author | 2014-10-26 16:40:55 +0100 | |
|---|---|---|
| committer | 2014-10-26 16:40:55 +0100 | |
| commit | 1e86eab358edcd647b2d3544570e4f6988cc2aa5 (patch) | |
| tree | 001359149c1d54804a90260deb29f6c761f7d7e7 /src | |
| parent | 9418c9957a4bd10c2a6fd19c7e38553fd51a59bf (diff) | |
| download | libimobiledevice-1e86eab358edcd647b2d3544570e4f6988cc2aa5.tar.gz libimobiledevice-1e86eab358edcd647b2d3544570e4f6988cc2aa5.tar.bz2 | |
debug: Fix symbol locality for linker so debug messages are printed again
Diffstat (limited to 'src')
| -rw-r--r-- | src/idevice.c | 6 | ||||
| -rw-r--r-- | src/idevice.h | 3 |
2 files changed, 8 insertions, 1 deletions
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 @@ | |||
| 44 | #else | 44 | #else |
| 45 | #include <gnutls/gnutls.h> | 45 | #include <gnutls/gnutls.h> |
| 46 | #endif | 46 | #endif |
| 47 | |||
| 47 | #include "idevice.h" | 48 | #include "idevice.h" |
| 48 | #include "common/userpref.h" | 49 | #include "common/userpref.h" |
| 49 | #include "common/thread.h" | 50 | #include "common/thread.h" |
| @@ -221,6 +222,11 @@ LIBIMOBILEDEVICE_API idevice_error_t idevice_device_list_free(char **devices) | |||
| 221 | return IDEVICE_E_SUCCESS; | 222 | return IDEVICE_E_SUCCESS; |
| 222 | } | 223 | } |
| 223 | 224 | ||
| 225 | LIBIMOBILEDEVICE_API void idevice_set_debug_level(int level) | ||
| 226 | { | ||
| 227 | idevice_debug_level = level; | ||
| 228 | } | ||
| 229 | |||
| 224 | LIBIMOBILEDEVICE_API idevice_error_t idevice_new(idevice_t * device, const char *udid) | 230 | LIBIMOBILEDEVICE_API idevice_error_t idevice_new(idevice_t * device, const char *udid) |
| 225 | { | 231 | { |
| 226 | usbmuxd_device_info_t muxdev; | 232 | 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 @@ | |||
| 44 | #endif | 44 | #endif |
| 45 | 45 | ||
| 46 | #include "common/userpref.h" | 46 | #include "common/userpref.h" |
| 47 | |||
| 48 | #include "libimobiledevice/libimobiledevice.h" | 47 | #include "libimobiledevice/libimobiledevice.h" |
| 49 | 48 | ||
| 49 | int idevice_debug_level; | ||
| 50 | |||
| 50 | enum connection_type { | 51 | enum connection_type { |
| 51 | CONNECTION_USBMUXD = 1 | 52 | CONNECTION_USBMUXD = 1 |
| 52 | }; | 53 | }; |
