diff options
Diffstat (limited to 'src/debug.h')
| -rw-r--r-- | src/debug.h | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/src/debug.h b/src/debug.h index 2fd0960..cb1bf97 100644 --- a/src/debug.h +++ b/src/debug.h | |||
| @@ -24,7 +24,14 @@ | |||
| 24 | #define DEBUG_H | 24 | #define DEBUG_H |
| 25 | 25 | ||
| 26 | #include <plist/plist.h> | 26 | #include <plist/plist.h> |
| 27 | #include <glib.h> | 27 | |
| 28 | #ifndef LIBIMOBILEDEVICE_INTERNAL | ||
| 29 | #ifdef WIN32 | ||
| 30 | #define LIBIMOBILEDEVICE_INTERNAL | ||
| 31 | #else | ||
| 32 | #define LIBIMOBILEDEVICE_INTERNAL __attribute__((visibility("hidden"))) | ||
| 33 | #endif | ||
| 34 | #endif | ||
| 28 | 35 | ||
| 29 | #if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L && !defined(STRIP_DEBUG_CODE) | 36 | #if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L && !defined(STRIP_DEBUG_CODE) |
| 30 | #define debug_info(...) debug_info_real (__func__, __FILE__, __LINE__, __VA_ARGS__) | 37 | #define debug_info(...) debug_info_real (__func__, __FILE__, __LINE__, __VA_ARGS__) |
| @@ -37,14 +44,14 @@ | |||
| 37 | #define debug_plist(a) | 44 | #define debug_plist(a) |
| 38 | #endif | 45 | #endif |
| 39 | 46 | ||
| 40 | G_GNUC_INTERNAL inline void debug_info_real(const char *func, | 47 | LIBIMOBILEDEVICE_INTERNAL inline void debug_info_real(const char *func, |
| 41 | const char *file, | 48 | const char *file, |
| 42 | int line, | 49 | int line, |
| 43 | const char *format, ...); | 50 | const char *format, ...); |
| 44 | 51 | ||
| 45 | G_GNUC_INTERNAL inline void debug_buffer(const char *data, const int length); | 52 | LIBIMOBILEDEVICE_INTERNAL inline void debug_buffer(const char *data, const int length); |
| 46 | G_GNUC_INTERNAL inline void debug_buffer_to_file(const char *file, const char *data, const int length); | 53 | LIBIMOBILEDEVICE_INTERNAL inline void debug_buffer_to_file(const char *file, const char *data, const int length); |
| 47 | G_GNUC_INTERNAL inline void debug_plist_real(const char *func, | 54 | LIBIMOBILEDEVICE_INTERNAL inline void debug_plist_real(const char *func, |
| 48 | const char *file, | 55 | const char *file, |
| 49 | int line, | 56 | int line, |
| 50 | plist_t plist); | 57 | plist_t plist); |
