summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2010-01-12 17:38:36 +0100
committerGravatar Martin Szulecki2010-01-12 17:38:36 +0100
commit3b57fa5d0ed2d8060233fa9604bd7f98a7d6cdab (patch)
tree5849ff972c4890b2db61a70c5e806cbd03a292b7
parent219a8db037ec1cc163d2ad4902e6e4578040a2de (diff)
downloadlibimobiledevice-3b57fa5d0ed2d8060233fa9604bd7f98a7d6cdab.tar.gz
libimobiledevice-3b57fa5d0ed2d8060233fa9604bd7f98a7d6cdab.tar.bz2
Rename utils to debug as it does exactly that, contain debug code
-rw-r--r--dev/iphoneclient.c1
-rw-r--r--src/AFC.c2
-rw-r--r--src/InstallationProxy.c2
-rw-r--r--src/Makefile.am2
-rw-r--r--src/MobileSync.c2
-rw-r--r--src/NotificationProxy.c2
-rw-r--r--src/SBServices.c2
-rw-r--r--src/debug.c (renamed from src/utils.c)4
-rw-r--r--src/debug.h (renamed from src/utils.h)6
-rw-r--r--src/device_link_service.c2
-rw-r--r--src/iphone.c2
-rw-r--r--src/lockdown.c2
-rw-r--r--src/property_list_service.c2
-rw-r--r--src/userpref.c2
-rw-r--r--swig/iphone.i2
15 files changed, 17 insertions, 18 deletions
diff --git a/dev/iphoneclient.c b/dev/iphoneclient.c
index 5bd0e6b..dbdf0f1 100644
--- a/dev/iphoneclient.c
+++ b/dev/iphoneclient.c
@@ -29,7 +29,6 @@
29#include <libiphone/lockdown.h> 29#include <libiphone/lockdown.h>
30#include <libiphone/afc.h> 30#include <libiphone/afc.h>
31#include <libiphone/notification_proxy.h> 31#include <libiphone/notification_proxy.h>
32#include "../src/utils.h"
33 32
34static void notifier(const char *notification) 33static void notifier(const char *notification)
35{ 34{
diff --git a/src/AFC.c b/src/AFC.c
index 956c8fc..fe8e1af 100644
--- a/src/AFC.c
+++ b/src/AFC.c
@@ -25,7 +25,7 @@
25 25
26#include "AFC.h" 26#include "AFC.h"
27#include "iphone.h" 27#include "iphone.h"
28#include "utils.h" 28#include "debug.h"
29 29
30// This is the maximum size an AFC data packet can be 30// This is the maximum size an AFC data packet can be
31static const int MAXIMUM_PACKET_SIZE = (2 << 15); 31static const int MAXIMUM_PACKET_SIZE = (2 << 15);
diff --git a/src/InstallationProxy.c b/src/InstallationProxy.c
index 34777d1..8d994c6 100644
--- a/src/InstallationProxy.c
+++ b/src/InstallationProxy.c
@@ -27,7 +27,7 @@
27 27
28#include "InstallationProxy.h" 28#include "InstallationProxy.h"
29#include "property_list_service.h" 29#include "property_list_service.h"
30#include "utils.h" 30#include "debug.h"
31 31
32struct instproxy_status_data { 32struct instproxy_status_data {
33 instproxy_client_t client; 33 instproxy_client_t client;
diff --git a/src/Makefile.am b/src/Makefile.am
index bc98de4..bb7252e 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -13,5 +13,5 @@ libiphone_la_SOURCES = iphone.c iphone.h \
13 InstallationProxy.c InstallationProxy.h\ 13 InstallationProxy.c InstallationProxy.h\
14 SBServices.c SBServices.h\ 14 SBServices.c SBServices.h\
15 userpref.c userpref.h\ 15 userpref.c userpref.h\
16 utils.c utils.h\ 16 debug.c debug.h\
17 MobileSync.c MobileSync.h 17 MobileSync.c MobileSync.h
diff --git a/src/MobileSync.c b/src/MobileSync.c
index 5102619..e904fcc 100644
--- a/src/MobileSync.c
+++ b/src/MobileSync.c
@@ -26,7 +26,7 @@
26 26
27#include "MobileSync.h" 27#include "MobileSync.h"
28#include "device_link_service.h" 28#include "device_link_service.h"
29#include "utils.h" 29#include "debug.h"
30 30
31#define MSYNC_VERSION_INT1 100 31#define MSYNC_VERSION_INT1 100
32#define MSYNC_VERSION_INT2 100 32#define MSYNC_VERSION_INT2 100
diff --git a/src/NotificationProxy.c b/src/NotificationProxy.c
index ef2063c..1b13a29 100644
--- a/src/NotificationProxy.c
+++ b/src/NotificationProxy.c
@@ -28,7 +28,7 @@
28 28
29#include "NotificationProxy.h" 29#include "NotificationProxy.h"
30#include "property_list_service.h" 30#include "property_list_service.h"
31#include "utils.h" 31#include "debug.h"
32 32
33struct np_thread { 33struct np_thread {
34 np_client_t client; 34 np_client_t client;
diff --git a/src/SBServices.c b/src/SBServices.c
index 2a724d1..2b65785 100644
--- a/src/SBServices.c
+++ b/src/SBServices.c
@@ -27,7 +27,7 @@
27 27
28#include "SBServices.h" 28#include "SBServices.h"
29#include "property_list_service.h" 29#include "property_list_service.h"
30#include "utils.h" 30#include "debug.h"
31 31
32/** Locks an sbservices client, done for thread safety stuff. 32/** Locks an sbservices client, done for thread safety stuff.
33 * 33 *
diff --git a/src/utils.c b/src/debug.c
index 3c08351..b5f74ad 100644
--- a/src/utils.c
+++ b/src/debug.c
@@ -1,5 +1,5 @@
1/* 1/*
2 * utils.c 2 * debug.c
3 * contains utilitary methos for logging and debugging 3 * contains utilitary methos for logging and debugging
4 * 4 *
5 * Copyright (c) 2008 Jonathan Beck All Rights Reserved. 5 * Copyright (c) 2008 Jonathan Beck All Rights Reserved.
@@ -22,7 +22,7 @@
22#include <stdio.h> 22#include <stdio.h>
23#include <stdint.h> 23#include <stdint.h>
24 24
25#include "utils.h" 25#include "debug.h"
26#include "libiphone/libiphone.h" 26#include "libiphone/libiphone.h"
27 27
28int toto_debug = 0; 28int toto_debug = 0;
diff --git a/src/utils.h b/src/debug.h
index c99730a..96844dd 100644
--- a/src/utils.h
+++ b/src/debug.h
@@ -1,5 +1,5 @@
1/* 1/*
2 * utils.h 2 * debug.h
3 * contains utilitary methos for logging and debugging 3 * contains utilitary methos for logging and debugging
4 * 4 *
5 * Copyright (c) 2008 Jonathan Beck All Rights Reserved. 5 * Copyright (c) 2008 Jonathan Beck All Rights Reserved.
@@ -19,8 +19,8 @@
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 */ 20 */
21 21
22#ifndef UTILS_H 22#ifndef DEBUG_H
23#define UTILS_H 23#define DEBUG_H
24 24
25#include <glib.h> 25#include <glib.h>
26 26
diff --git a/src/device_link_service.c b/src/device_link_service.c
index 83b0676..b1106fe 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 "utils.h" 25#include "debug.h"
26 26
27/** 27/**
28 * Internally used function to extract the message string from a DLMessage* 28 * Internally used function to extract the message string from a DLMessage*
diff --git a/src/iphone.c b/src/iphone.c
index 9307b19..7b21bb5 100644
--- a/src/iphone.c
+++ b/src/iphone.c
@@ -27,7 +27,7 @@
27 27
28#include <usbmuxd.h> 28#include <usbmuxd.h>
29#include "iphone.h" 29#include "iphone.h"
30#include "utils.h" 30#include "debug.h"
31 31
32static iphone_event_cb_t event_cb = NULL; 32static iphone_event_cb_t event_cb = NULL;
33 33
diff --git a/src/lockdown.c b/src/lockdown.c
index f78fbb4..5927192 100644
--- a/src/lockdown.c
+++ b/src/lockdown.c
@@ -31,7 +31,7 @@
31#include "property_list_service.h" 31#include "property_list_service.h"
32#include "lockdown.h" 32#include "lockdown.h"
33#include "iphone.h" 33#include "iphone.h"
34#include "utils.h" 34#include "debug.h"
35#include "userpref.h" 35#include "userpref.h"
36 36
37#define RESULT_SUCCESS 0 37#define RESULT_SUCCESS 0
diff --git a/src/property_list_service.c b/src/property_list_service.c
index 9d16bbc..b549cb4 100644
--- a/src/property_list_service.c
+++ b/src/property_list_service.c
@@ -25,7 +25,7 @@
25 25
26#include "property_list_service.h" 26#include "property_list_service.h"
27#include "iphone.h" 27#include "iphone.h"
28#include "utils.h" 28#include "debug.h"
29 29
30/** 30/**
31 * Convert an iphone_error_t value to an property_list_service_error_t value. 31 * Convert an iphone_error_t value to an property_list_service_error_t value.
diff --git a/src/userpref.c b/src/userpref.c
index 54fdafc..c677fda 100644
--- a/src/userpref.c
+++ b/src/userpref.c
@@ -31,7 +31,7 @@
31#include <gcrypt.h> 31#include <gcrypt.h>
32 32
33#include "userpref.h" 33#include "userpref.h"
34#include "utils.h" 34#include "debug.h"
35 35
36#define LIBIPHONE_CONF_DIR "libiphone" 36#define LIBIPHONE_CONF_DIR "libiphone"
37#define LIBIPHONE_CONF_FILE "libiphonerc" 37#define LIBIPHONE_CONF_FILE "libiphonerc"
diff --git a/swig/iphone.i b/swig/iphone.i
index 6b8ef3f..184f7f9 100644
--- a/swig/iphone.i
+++ b/swig/iphone.i
@@ -8,7 +8,7 @@
8 #include <libiphone/mobilesync.h> 8 #include <libiphone/mobilesync.h>
9 #include <plist/plist.h> 9 #include <plist/plist.h>
10 #include <plist/plist++.h> 10 #include <plist/plist++.h>
11 #include "../src/utils.h" 11 #include "../src/debug.h"
12 typedef struct { 12 typedef struct {
13 iphone_device_t dev; 13 iphone_device_t dev;
14 } iPhone; 14 } iPhone;