summaryrefslogtreecommitdiffstats
path: root/src/debug.h
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2011-09-03 02:10:48 +0200
committerGravatar Martin Szulecki2012-03-18 20:40:54 +0100
commitdcb85727c3649c254c985d840aa2efb36f727872 (patch)
tree0f6f551b70bd845f57d5a044915e617a1bd40ac6 /src/debug.h
parent6a83ef58a1032e3b336587e2f3a19659ae325c25 (diff)
downloadlibimobiledevice-dcb85727c3649c254c985d840aa2efb36f727872.tar.gz
libimobiledevice-dcb85727c3649c254c985d840aa2efb36f727872.tar.bz2
Completely remove glib dependency.
Diffstat (limited to 'src/debug.h')
-rw-r--r--src/debug.h17
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
40G_GNUC_INTERNAL inline void debug_info_real(const char *func, 47LIBIMOBILEDEVICE_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
45G_GNUC_INTERNAL inline void debug_buffer(const char *data, const int length); 52LIBIMOBILEDEVICE_INTERNAL inline void debug_buffer(const char *data, const int length);
46G_GNUC_INTERNAL inline void debug_buffer_to_file(const char *file, const char *data, const int length); 53LIBIMOBILEDEVICE_INTERNAL inline void debug_buffer_to_file(const char *file, const char *data, const int length);
47G_GNUC_INTERNAL inline void debug_plist_real(const char *func, 54LIBIMOBILEDEVICE_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);