diff options
| author | 2013-04-25 17:43:54 +0100 | |
|---|---|---|
| committer | 2013-04-25 17:43:54 +0100 | |
| commit | 4748e1ac72ede8ba1f7a28ec8c1b8d5bb0f0afd3 (patch) | |
| tree | 708d1ec3ee0fcc3a3f49be45457c5f641c108dc2 | |
| parent | 927c34ee8e6974a34b1dfd7d1a4fde5eabbeca7a (diff) | |
| download | libimobiledevice-4748e1ac72ede8ba1f7a28ec8c1b8d5bb0f0afd3.tar.gz libimobiledevice-4748e1ac72ede8ba1f7a28ec8c1b8d5bb0f0afd3.tar.bz2 | |
common: Move debug and userpref code into libinternalcommon
31 files changed, 32 insertions, 32 deletions
diff --git a/common/Makefile.am b/common/Makefile.am index dfa6852..664e13b 100644 --- a/common/Makefile.am +++ b/common/Makefile.am | |||
| @@ -8,7 +8,9 @@ libinternalcommon_la_LIBADD = | |||
| 8 | libinternalcommon_la_LDFLAGS = $(AM_LDFLAGS) -no-undefined | 8 | libinternalcommon_la_LDFLAGS = $(AM_LDFLAGS) -no-undefined |
| 9 | libinternalcommon_la_SOURCES = \ | 9 | libinternalcommon_la_SOURCES = \ |
| 10 | socket.c socket.h \ | 10 | socket.c socket.h \ |
| 11 | thread.c thread.h | 11 | thread.c thread.h \ |
| 12 | debug.c debug.h \ | ||
| 13 | userpref.c userpref.h | ||
| 12 | 14 | ||
| 13 | if WIN32 | 15 | if WIN32 |
| 14 | libinternalcommon_la_LIBADD += -lole32 | 16 | libinternalcommon_la_LIBADD += -lole32 |
diff --git a/src/debug.c b/common/debug.c index 0bb87a2..0bb87a2 100644 --- a/src/debug.c +++ b/common/debug.c | |||
diff --git a/src/debug.h b/common/debug.h index b7cff80..b7cff80 100644 --- a/src/debug.h +++ b/common/debug.h | |||
diff --git a/src/userpref.c b/common/userpref.c index 0e774b7..0e774b7 100644 --- a/src/userpref.c +++ b/common/userpref.c | |||
diff --git a/src/userpref.h b/common/userpref.h index 14db985..14db985 100644 --- a/src/userpref.h +++ b/common/userpref.h | |||
diff --git a/src/Makefile.am b/src/Makefile.am index 66be29f..7024ead 100644 --- a/src/Makefile.am +++ b/src/Makefile.am | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | AM_CPPFLAGS = -I$(top_srcdir)/include | 1 | AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_srcdir) |
| 2 | 2 | ||
| 3 | AM_CFLAGS = $(GLOBAL_CFLAGS) $(libusbmuxd_CFLAGS) $(libgnutls_CFLAGS) $(libtasn1_CFLAGS) $(libplist_CFLAGS) $(LFS_CFLAGS) $(openssl_CFLAGS) | 3 | AM_CFLAGS = $(GLOBAL_CFLAGS) $(libusbmuxd_CFLAGS) $(libgnutls_CFLAGS) $(libtasn1_CFLAGS) $(libplist_CFLAGS) $(LFS_CFLAGS) $(openssl_CFLAGS) |
| 4 | AM_LDFLAGS = $(libgnutls_LIBS) $(libtasn1_LIBS) $(libplist_LIBS) $(libusbmuxd_LIBS) $(libgcrypt_LIBS) ${libpthread_LIBS} $(openssl_LIBS) | 4 | AM_LDFLAGS = $(libgnutls_LIBS) $(libtasn1_LIBS) $(libplist_LIBS) $(libusbmuxd_LIBS) $(libgcrypt_LIBS) ${libpthread_LIBS} $(openssl_LIBS) |
| @@ -7,8 +7,6 @@ lib_LTLIBRARIES = libimobiledevice.la | |||
| 7 | libimobiledevice_la_LIBADD = $(top_srcdir)/common/libinternalcommon.la | 7 | libimobiledevice_la_LIBADD = $(top_srcdir)/common/libinternalcommon.la |
| 8 | libimobiledevice_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LIBIMOBILEDEVICE_SO_VERSION) -no-undefined | 8 | libimobiledevice_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LIBIMOBILEDEVICE_SO_VERSION) -no-undefined |
| 9 | libimobiledevice_la_SOURCES = idevice.c idevice.h \ | 9 | libimobiledevice_la_SOURCES = idevice.c idevice.h \ |
| 10 | debug.c debug.h\ | ||
| 11 | userpref.c userpref.h\ | ||
| 12 | service.c service.h\ | 10 | service.c service.h\ |
| 13 | property_list_service.c property_list_service.h\ | 11 | property_list_service.c property_list_service.h\ |
| 14 | device_link_service.c device_link_service.h\ | 12 | device_link_service.c device_link_service.h\ |
| @@ -29,7 +29,7 @@ | |||
| 29 | 29 | ||
| 30 | #include "afc.h" | 30 | #include "afc.h" |
| 31 | #include "idevice.h" | 31 | #include "idevice.h" |
| 32 | #include "debug.h" | 32 | #include "common/debug.h" |
| 33 | #include "endianness.h" | 33 | #include "endianness.h" |
| 34 | 34 | ||
| 35 | /** The maximum size an AFC data packet can be */ | 35 | /** The maximum size an AFC data packet can be */ |
diff --git a/src/device_link_service.c b/src/device_link_service.c index 2608b9f..e9ca5f6 100644 --- a/src/device_link_service.c +++ b/src/device_link_service.c | |||
| @@ -22,7 +22,7 @@ | |||
| 22 | #include <stdlib.h> | 22 | #include <stdlib.h> |
| 23 | #include "device_link_service.h" | 23 | #include "device_link_service.h" |
| 24 | #include "property_list_service.h" | 24 | #include "property_list_service.h" |
| 25 | #include "debug.h" | 25 | #include "common/debug.h" |
| 26 | 26 | ||
| 27 | /** | 27 | /** |
| 28 | * Internally used function to extract the message string from a DL* message | 28 | * Internally used function to extract the message string from a DL* message |
diff --git a/src/diagnostics_relay.c b/src/diagnostics_relay.c index 506b901..6069169 100644 --- a/src/diagnostics_relay.c +++ b/src/diagnostics_relay.c | |||
| @@ -22,7 +22,7 @@ | |||
| 22 | #include <stdlib.h> | 22 | #include <stdlib.h> |
| 23 | #include "diagnostics_relay.h" | 23 | #include "diagnostics_relay.h" |
| 24 | #include "property_list_service.h" | 24 | #include "property_list_service.h" |
| 25 | #include "debug.h" | 25 | #include "common/debug.h" |
| 26 | 26 | ||
| 27 | #define RESULT_SUCCESS 0 | 27 | #define RESULT_SUCCESS 0 |
| 28 | #define RESULT_FAILURE 1 | 28 | #define RESULT_FAILURE 1 |
diff --git a/src/file_relay.c b/src/file_relay.c index b1adb4f..2b45d70 100644 --- a/src/file_relay.c +++ b/src/file_relay.c | |||
| @@ -22,7 +22,7 @@ | |||
| 22 | #include <stdlib.h> | 22 | #include <stdlib.h> |
| 23 | #include "file_relay.h" | 23 | #include "file_relay.h" |
| 24 | #include "property_list_service.h" | 24 | #include "property_list_service.h" |
| 25 | #include "debug.h" | 25 | #include "common/debug.h" |
| 26 | 26 | ||
| 27 | /** | 27 | /** |
| 28 | * Connects to the file_relay service on the specified device. | 28 | * Connects to the file_relay service on the specified device. |
diff --git a/src/heartbeat.c b/src/heartbeat.c index cee852e..b33f236 100644 --- a/src/heartbeat.c +++ b/src/heartbeat.c | |||
| @@ -28,7 +28,7 @@ | |||
| 28 | 28 | ||
| 29 | #include "heartbeat.h" | 29 | #include "heartbeat.h" |
| 30 | #include "lockdown.h" | 30 | #include "lockdown.h" |
| 31 | #include "debug.h" | 31 | #include "common/debug.h" |
| 32 | 32 | ||
| 33 | /** | 33 | /** |
| 34 | * Convert a property_list_service_error_t value to a heartbeat_error_t value. | 34 | * Convert a property_list_service_error_t value to a heartbeat_error_t value. |
diff --git a/src/house_arrest.c b/src/house_arrest.c index 5dfd1b6..4eaf5e3 100644 --- a/src/house_arrest.c +++ b/src/house_arrest.c | |||
| @@ -27,7 +27,7 @@ | |||
| 27 | #include "house_arrest.h" | 27 | #include "house_arrest.h" |
| 28 | #include "property_list_service.h" | 28 | #include "property_list_service.h" |
| 29 | #include "afc.h" | 29 | #include "afc.h" |
| 30 | #include "debug.h" | 30 | #include "common/debug.h" |
| 31 | 31 | ||
| 32 | /** | 32 | /** |
| 33 | * Convert a property_list_service_error_t value to a house_arrest_error_t | 33 | * Convert a property_list_service_error_t value to a house_arrest_error_t |
diff --git a/src/idevice.c b/src/idevice.c index 1dd6c0f..f0d89df 100644 --- a/src/idevice.c +++ b/src/idevice.c | |||
| @@ -35,8 +35,8 @@ | |||
| 35 | #include <gnutls/gnutls.h> | 35 | #include <gnutls/gnutls.h> |
| 36 | #endif | 36 | #endif |
| 37 | #include "idevice.h" | 37 | #include "idevice.h" |
| 38 | #include "userpref.h" | 38 | #include "common/userpref.h" |
| 39 | #include "debug.h" | 39 | #include "common/debug.h" |
| 40 | 40 | ||
| 41 | #ifdef HAVE_OPENSSL | 41 | #ifdef HAVE_OPENSSL |
| 42 | static int openssl_init_done = 0; | 42 | static int openssl_init_done = 0; |
diff --git a/src/idevice.h b/src/idevice.h index 0833090..0fdcdfe 100644 --- a/src/idevice.h +++ b/src/idevice.h | |||
| @@ -33,7 +33,7 @@ | |||
| 33 | #include <gnutls/x509.h> | 33 | #include <gnutls/x509.h> |
| 34 | #endif | 34 | #endif |
| 35 | 35 | ||
| 36 | #include "userpref.h" | 36 | #include "common/userpref.h" |
| 37 | 37 | ||
| 38 | #include "libimobiledevice/libimobiledevice.h" | 38 | #include "libimobiledevice/libimobiledevice.h" |
| 39 | 39 | ||
diff --git a/src/installation_proxy.c b/src/installation_proxy.c index b1dfeb4..3e2726e 100644 --- a/src/installation_proxy.c +++ b/src/installation_proxy.c | |||
| @@ -26,7 +26,7 @@ | |||
| 26 | 26 | ||
| 27 | #include "installation_proxy.h" | 27 | #include "installation_proxy.h" |
| 28 | #include "property_list_service.h" | 28 | #include "property_list_service.h" |
| 29 | #include "debug.h" | 29 | #include "common/debug.h" |
| 30 | 30 | ||
| 31 | struct instproxy_status_data { | 31 | struct instproxy_status_data { |
| 32 | instproxy_client_t client; | 32 | instproxy_client_t client; |
diff --git a/src/lockdown.c b/src/lockdown.c index f78a78d..1319e5d 100644 --- a/src/lockdown.c +++ b/src/lockdown.c | |||
| @@ -43,8 +43,8 @@ | |||
| 43 | #include "property_list_service.h" | 43 | #include "property_list_service.h" |
| 44 | #include "lockdown.h" | 44 | #include "lockdown.h" |
| 45 | #include "idevice.h" | 45 | #include "idevice.h" |
| 46 | #include "debug.h" | 46 | #include "common/debug.h" |
| 47 | #include "userpref.h" | 47 | #include "common/userpref.h" |
| 48 | #include "asprintf.h" | 48 | #include "asprintf.h" |
| 49 | 49 | ||
| 50 | #define RESULT_SUCCESS 0 | 50 | #define RESULT_SUCCESS 0 |
diff --git a/src/lockdown.h b/src/lockdown.h index 59b1659..30ebc15 100644 --- a/src/lockdown.h +++ b/src/lockdown.h | |||
| @@ -22,7 +22,7 @@ | |||
| 22 | #ifndef __LOCKDOWND_H | 22 | #ifndef __LOCKDOWND_H |
| 23 | #define __LOCKDOWND_H | 23 | #define __LOCKDOWND_H |
| 24 | 24 | ||
| 25 | #include "userpref.h" | 25 | #include "common/userpref.h" |
| 26 | 26 | ||
| 27 | #include "libimobiledevice/lockdown.h" | 27 | #include "libimobiledevice/lockdown.h" |
| 28 | #include "property_list_service.h" | 28 | #include "property_list_service.h" |
diff --git a/src/misagent.c b/src/misagent.c index 1bc4519..331fc6c 100644 --- a/src/misagent.c +++ b/src/misagent.c | |||
| @@ -27,7 +27,7 @@ | |||
| 27 | 27 | ||
| 28 | #include "misagent.h" | 28 | #include "misagent.h" |
| 29 | #include "property_list_service.h" | 29 | #include "property_list_service.h" |
| 30 | #include "debug.h" | 30 | #include "common/debug.h" |
| 31 | 31 | ||
| 32 | /** | 32 | /** |
| 33 | * Convert a property_list_service_error_t value to a misagent_error_t | 33 | * Convert a property_list_service_error_t value to a misagent_error_t |
diff --git a/src/mobile_image_mounter.c b/src/mobile_image_mounter.c index 209e367..f2e423a 100644 --- a/src/mobile_image_mounter.c +++ b/src/mobile_image_mounter.c | |||
| @@ -26,7 +26,7 @@ | |||
| 26 | 26 | ||
| 27 | #include "mobile_image_mounter.h" | 27 | #include "mobile_image_mounter.h" |
| 28 | #include "property_list_service.h" | 28 | #include "property_list_service.h" |
| 29 | #include "debug.h" | 29 | #include "common/debug.h" |
| 30 | 30 | ||
| 31 | /** | 31 | /** |
| 32 | * Locks a mobile_image_mounter client, used for thread safety. | 32 | * Locks a mobile_image_mounter client, used for thread safety. |
diff --git a/src/mobilebackup.c b/src/mobilebackup.c index aae4b06..6382b94 100644 --- a/src/mobilebackup.c +++ b/src/mobilebackup.c | |||
| @@ -25,7 +25,7 @@ | |||
| 25 | 25 | ||
| 26 | #include "mobilebackup.h" | 26 | #include "mobilebackup.h" |
| 27 | #include "device_link_service.h" | 27 | #include "device_link_service.h" |
| 28 | #include "debug.h" | 28 | #include "common/debug.h" |
| 29 | 29 | ||
| 30 | #define MBACKUP_VERSION_INT1 100 | 30 | #define MBACKUP_VERSION_INT1 100 |
| 31 | #define MBACKUP_VERSION_INT2 0 | 31 | #define MBACKUP_VERSION_INT2 0 |
diff --git a/src/mobilebackup2.c b/src/mobilebackup2.c index 6356376..c1159e1 100644 --- a/src/mobilebackup2.c +++ b/src/mobilebackup2.c | |||
| @@ -25,7 +25,7 @@ | |||
| 25 | 25 | ||
| 26 | #include "mobilebackup2.h" | 26 | #include "mobilebackup2.h" |
| 27 | #include "device_link_service.h" | 27 | #include "device_link_service.h" |
| 28 | #include "debug.h" | 28 | #include "common/debug.h" |
| 29 | 29 | ||
| 30 | #define MBACKUP2_VERSION_INT1 300 | 30 | #define MBACKUP2_VERSION_INT1 300 |
| 31 | #define MBACKUP2_VERSION_INT2 0 | 31 | #define MBACKUP2_VERSION_INT2 0 |
diff --git a/src/mobilesync.c b/src/mobilesync.c index af70ea4..0e98709 100644 --- a/src/mobilesync.c +++ b/src/mobilesync.c | |||
| @@ -30,7 +30,7 @@ | |||
| 30 | 30 | ||
| 31 | #include "mobilesync.h" | 31 | #include "mobilesync.h" |
| 32 | #include "device_link_service.h" | 32 | #include "device_link_service.h" |
| 33 | #include "debug.h" | 33 | #include "common/debug.h" |
| 34 | 34 | ||
| 35 | #define MSYNC_VERSION_INT1 300 | 35 | #define MSYNC_VERSION_INT1 300 |
| 36 | #define MSYNC_VERSION_INT2 100 | 36 | #define MSYNC_VERSION_INT2 100 |
diff --git a/src/notification_proxy.c b/src/notification_proxy.c index 291c257..410a519 100644 --- a/src/notification_proxy.c +++ b/src/notification_proxy.c | |||
| @@ -26,7 +26,7 @@ | |||
| 26 | 26 | ||
| 27 | #include "notification_proxy.h" | 27 | #include "notification_proxy.h" |
| 28 | #include "property_list_service.h" | 28 | #include "property_list_service.h" |
| 29 | #include "debug.h" | 29 | #include "common/debug.h" |
| 30 | 30 | ||
| 31 | #ifdef WIN32 | 31 | #ifdef WIN32 |
| 32 | #define sleep(x) Sleep(x*1000) | 32 | #define sleep(x) Sleep(x*1000) |
diff --git a/src/property_list_service.c b/src/property_list_service.c index 941f37e..f1c3f86 100644 --- a/src/property_list_service.c +++ b/src/property_list_service.c | |||
| @@ -25,7 +25,7 @@ | |||
| 25 | #include <string.h> | 25 | #include <string.h> |
| 26 | 26 | ||
| 27 | #include "property_list_service.h" | 27 | #include "property_list_service.h" |
| 28 | #include "debug.h" | 28 | #include "common/debug.h" |
| 29 | #include "endianness.h" | 29 | #include "endianness.h" |
| 30 | 30 | ||
| 31 | /** | 31 | /** |
diff --git a/src/restore.c b/src/restore.c index 1b2ff78..85009e4 100644 --- a/src/restore.c +++ b/src/restore.c | |||
| @@ -27,7 +27,7 @@ | |||
| 27 | #include "property_list_service.h" | 27 | #include "property_list_service.h" |
| 28 | #include "restore.h" | 28 | #include "restore.h" |
| 29 | #include "idevice.h" | 29 | #include "idevice.h" |
| 30 | #include "debug.h" | 30 | #include "common/debug.h" |
| 31 | 31 | ||
| 32 | #define RESULT_SUCCESS 0 | 32 | #define RESULT_SUCCESS 0 |
| 33 | #define RESULT_FAILURE 1 | 33 | #define RESULT_FAILURE 1 |
diff --git a/src/sbservices.c b/src/sbservices.c index 1cd17db..dde8b9d 100644 --- a/src/sbservices.c +++ b/src/sbservices.c | |||
| @@ -26,7 +26,7 @@ | |||
| 26 | 26 | ||
| 27 | #include "sbservices.h" | 27 | #include "sbservices.h" |
| 28 | #include "property_list_service.h" | 28 | #include "property_list_service.h" |
| 29 | #include "debug.h" | 29 | #include "common/debug.h" |
| 30 | 30 | ||
| 31 | /** | 31 | /** |
| 32 | * Locks an sbservices client, used for thread safety. | 32 | * Locks an sbservices client, used for thread safety. |
diff --git a/src/screenshotr.c b/src/screenshotr.c index b538232..2e16032 100644 --- a/src/screenshotr.c +++ b/src/screenshotr.c | |||
| @@ -25,7 +25,7 @@ | |||
| 25 | 25 | ||
| 26 | #include "screenshotr.h" | 26 | #include "screenshotr.h" |
| 27 | #include "device_link_service.h" | 27 | #include "device_link_service.h" |
| 28 | #include "debug.h" | 28 | #include "common/debug.h" |
| 29 | 29 | ||
| 30 | #define SCREENSHOTR_VERSION_INT1 300 | 30 | #define SCREENSHOTR_VERSION_INT1 300 |
| 31 | #define SCREENSHOTR_VERSION_INT2 0 | 31 | #define SCREENSHOTR_VERSION_INT2 0 |
diff --git a/src/service.c b/src/service.c index abd1696..5bc7aea 100644 --- a/src/service.c +++ b/src/service.c | |||
| @@ -26,7 +26,7 @@ | |||
| 26 | 26 | ||
| 27 | #include "service.h" | 27 | #include "service.h" |
| 28 | #include "idevice.h" | 28 | #include "idevice.h" |
| 29 | #include "debug.h" | 29 | #include "common/debug.h" |
| 30 | 30 | ||
| 31 | /** | 31 | /** |
| 32 | * Convert an idevice_error_t value to an service_error_t value. | 32 | * Convert an idevice_error_t value to an service_error_t value. |
diff --git a/src/webinspector.c b/src/webinspector.c index aef6d6f..d7c86d0 100644 --- a/src/webinspector.c +++ b/src/webinspector.c | |||
| @@ -28,7 +28,7 @@ | |||
| 28 | 28 | ||
| 29 | #include "webinspector.h" | 29 | #include "webinspector.h" |
| 30 | #include "lockdown.h" | 30 | #include "lockdown.h" |
| 31 | #include "debug.h" | 31 | #include "common/debug.h" |
| 32 | 32 | ||
| 33 | /** | 33 | /** |
| 34 | * Convert a property_list_service_error_t value to a webinspector_error_t value. | 34 | * Convert a property_list_service_error_t value to a webinspector_error_t value. |
diff --git a/tools/Makefile.am b/tools/Makefile.am index e668592..fe9b1fa 100644 --- a/tools/Makefile.am +++ b/tools/Makefile.am | |||
| @@ -11,9 +11,9 @@ ideviceinfo_LDFLAGS = $(AM_LDFLAGS) | |||
| 11 | ideviceinfo_LDADD = ../src/libimobiledevice.la | 11 | ideviceinfo_LDADD = ../src/libimobiledevice.la |
| 12 | 12 | ||
| 13 | idevicepair_SOURCES = idevicepair.c | 13 | idevicepair_SOURCES = idevicepair.c |
| 14 | idevicepair_CFLAGS = $(AM_CFLAGS) -I$(top_srcdir)/src | 14 | idevicepair_CFLAGS = $(AM_CFLAGS) |
| 15 | idevicepair_LDFLAGS = $(AM_LDFLAGS) | 15 | idevicepair_LDFLAGS = $(AM_LDFLAGS) |
| 16 | idevicepair_LDADD = ../src/libimobiledevice.la | 16 | idevicepair_LDADD = $(top_srcdir)/common/libinternalcommon.la ../src/libimobiledevice.la |
| 17 | 17 | ||
| 18 | idevicesyslog_SOURCES = idevicesyslog.c | 18 | idevicesyslog_SOURCES = idevicesyslog.c |
| 19 | idevicesyslog_CFLAGS = $(AM_CFLAGS) | 19 | idevicesyslog_CFLAGS = $(AM_CFLAGS) |
diff --git a/tools/idevicepair.c b/tools/idevicepair.c index dddb6ee..d634d5f 100644 --- a/tools/idevicepair.c +++ b/tools/idevicepair.c | |||
| @@ -23,7 +23,7 @@ | |||
| 23 | #include <string.h> | 23 | #include <string.h> |
| 24 | #include <stdlib.h> | 24 | #include <stdlib.h> |
| 25 | #include <getopt.h> | 25 | #include <getopt.h> |
| 26 | #include "userpref.h" | 26 | #include "common/userpref.h" |
| 27 | 27 | ||
| 28 | #include <libimobiledevice/libimobiledevice.h> | 28 | #include <libimobiledevice/libimobiledevice.h> |
| 29 | #include <libimobiledevice/lockdown.h> | 29 | #include <libimobiledevice/lockdown.h> |
