summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2014-10-03 15:51:43 +0200
committerGravatar Martin Szulecki2014-10-03 16:29:42 +0200
commit4c4bbd31f52845de70f5b828121eeea62f8b4514 (patch)
tree6655c2eeba4a9865752523e68d73e982e8a0d515 /common
parentd335f9350eef7b0140a249f92b791dc88b2900e5 (diff)
downloadlibimobiledevice-4c4bbd31f52845de70f5b828121eeea62f8b4514.tar.gz
libimobiledevice-4c4bbd31f52845de70f5b828121eeea62f8b4514.tar.bz2
Avoid exporting non-public symbols
Diffstat (limited to 'common')
-rw-r--r--common/Makefile.am2
-rw-r--r--common/debug.c3
-rw-r--r--common/debug.h16
3 files changed, 7 insertions, 14 deletions
diff --git a/common/Makefile.am b/common/Makefile.am
index b5ea6c1..eb1db28 100644
--- a/common/Makefile.am
+++ b/common/Makefile.am
@@ -1,4 +1,4 @@
-AM_CPPFLAGS = -I$(top_srcdir)/include
+AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/src
AM_CFLAGS = $(GLOBAL_CFLAGS) $(libusbmuxd_CFLAGS) $(libplist_CFLAGS) $(LFS_CFLAGS)
AM_LDFLAGS = $(libusbmuxd_LIBS) $(libplist_LIBS) ${libpthread_LIBS}
diff --git a/common/debug.c b/common/debug.c
index 2cc9db1..a7e33df 100644
--- a/common/debug.c
+++ b/common/debug.c
@@ -32,6 +32,7 @@
#include <time.h>
#include "debug.h"
+#include "idevice.h"
#include "libimobiledevice/libimobiledevice.h"
#ifndef STRIP_DEBUG_CODE
@@ -46,7 +47,7 @@ int debug_level = 0;
*
* @param level Set to 0 for no debugging or 1 for debugging.
*/
-void idevice_set_debug_level(int level)
+LIBIMOBILEDEVICE_API void idevice_set_debug_level(int level)
{
debug_level = level;
}
diff --git a/common/debug.h b/common/debug.h
index 3a66ee4..99a94b7 100644
--- a/common/debug.h
+++ b/common/debug.h
@@ -25,14 +25,6 @@
#include <plist/plist.h>
-#ifndef LIBIMOBILEDEVICE_INTERNAL
-#ifdef WIN32
-#define LIBIMOBILEDEVICE_INTERNAL
-#else
-#define LIBIMOBILEDEVICE_INTERNAL __attribute__((visibility("hidden")))
-#endif
-#endif
-
#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L && !defined(STRIP_DEBUG_CODE)
#define debug_info(...) debug_info_real (__func__, __FILE__, __LINE__, __VA_ARGS__)
#define debug_plist(a) debug_plist_real (__func__, __FILE__, __LINE__, a)
@@ -44,14 +36,14 @@
#define debug_plist(a)
#endif
-LIBIMOBILEDEVICE_INTERNAL void debug_info_real(const char *func,
+void debug_info_real(const char *func,
const char *file,
int line,
const char *format, ...);
-LIBIMOBILEDEVICE_INTERNAL void debug_buffer(const char *data, const int length);
-LIBIMOBILEDEVICE_INTERNAL void debug_buffer_to_file(const char *file, const char *data, const int length);
-LIBIMOBILEDEVICE_INTERNAL void debug_plist_real(const char *func,
+void debug_buffer(const char *data, const int length);
+void debug_buffer_to_file(const char *file, const char *data, const int length);
+void debug_plist_real(const char *func,
const char *file,
int line,
plist_t plist);