diff options
-rw-r--r-- | dev/iphone_id.c | 2 | ||||
-rw-r--r-- | dev/iphoneinfo.c | 2 | ||||
-rw-r--r-- | dev/lckdclient.c | 2 | ||||
-rw-r--r-- | dev/main.c | 4 | ||||
-rw-r--r-- | dev/syslog_relay.c | 2 | ||||
-rw-r--r-- | include/libiphone/libiphone.h | 4 | ||||
-rw-r--r-- | src/utils.c | 2 | ||||
-rw-r--r-- | swig/iphone.i | 2 |
8 files changed, 10 insertions, 10 deletions
diff --git a/dev/iphone_id.c b/dev/iphone_id.c index 15081f0..dde15bc 100644 --- a/dev/iphone_id.c +++ b/dev/iphone_id.c @@ -60,7 +60,7 @@ int main(int argc, char **argv) return 0; } - iphone_set_debug(0); + iphone_set_debug_level(0); iphone_get_device_by_uuid(&phone, argv[0]); if (!phone) { diff --git a/dev/iphoneinfo.c b/dev/iphoneinfo.c index 67e7552..02b62d5 100644 --- a/dev/iphoneinfo.c +++ b/dev/iphoneinfo.c @@ -73,7 +73,7 @@ int main(int argc, char *argv[]) for (i = 1; i < argc; i++) { if (!strcmp(argv[i], "-d") || !strcmp(argv[i], "--debug")) { iphone_set_debug_mask(DBGMASK_ALL); - iphone_set_debug(1); + iphone_set_debug_level(1); continue; } else if (!strcmp(argv[i], "-u") || !strcmp(argv[i], "--uuid")) { diff --git a/dev/lckdclient.c b/dev/lckdclient.c index e7ad962..820d05f 100644 --- a/dev/lckdclient.c +++ b/dev/lckdclient.c @@ -34,7 +34,7 @@ int main(int argc, char *argv[]) lockdownd_client_t client = NULL; iphone_device_t phone = NULL; - iphone_set_debug(1); + iphone_set_debug_level(1); if (IPHONE_E_SUCCESS != iphone_get_device(&phone)) { printf("No iPhone found, is it plugged in?\n"); @@ -68,10 +68,10 @@ int main(int argc, char *argv[]) np_client_t gnp = NULL; if (argc > 1 && !strcasecmp(argv[1], "--debug")) { - iphone_set_debug(1); + iphone_set_debug_level(1); iphone_set_debug_mask(DBGMASK_ALL); } else { - iphone_set_debug(0); + iphone_set_debug_level(0); iphone_set_debug_mask(DBGMASK_NONE); } diff --git a/dev/syslog_relay.c b/dev/syslog_relay.c index a93e85b..09be6b8 100644 --- a/dev/syslog_relay.c +++ b/dev/syslog_relay.c @@ -62,7 +62,7 @@ int main(int argc, char *argv[]) for (i = 1; i < argc; i++) { if (!strcmp(argv[i], "-d") || !strcmp(argv[i], "--debug")) { iphone_set_debug_mask(DBGMASK_ALL); - iphone_set_debug(1); + iphone_set_debug_level(1); continue; } else if (!strcmp(argv[i], "-u") || !strcmp(argv[i], "--uuid")) { diff --git a/include/libiphone/libiphone.h b/include/libiphone/libiphone.h index fa26d14..fef59e0 100644 --- a/include/libiphone/libiphone.h +++ b/include/libiphone/libiphone.h @@ -57,7 +57,7 @@ typedef int16_t iphone_error_t; struct iphone_device_int; typedef struct iphone_device_int *iphone_device_t; -//debug related functions +/* Debugging */ #define DBGMASK_ALL 0xFFFF #define DBGMASK_NONE 0x0000 #define DBGMASK_USBMUX (1 << 1) @@ -65,7 +65,7 @@ typedef struct iphone_device_int *iphone_device_t; #define DBGMASK_MOBILESYNC (1 << 3) void iphone_set_debug_mask(uint16_t mask); -void iphone_set_debug(int level); +void iphone_set_debug_level(int level); //device related functions iphone_error_t iphone_get_device(iphone_device_t *device); diff --git a/src/utils.c b/src/utils.c index 5b0872d..121bc55 100644 --- a/src/utils.c +++ b/src/utils.c @@ -31,7 +31,7 @@ uint16_t dbg_mask = 0; * * @param level Set to 0 for no debugging or 1 for debugging. */ -void iphone_set_debug(int level) +void iphone_set_debug_level(int level) { toto_debug = level; } diff --git a/swig/iphone.i b/swig/iphone.i index 53fa8da..a089cc2 100644 --- a/swig/iphone.i +++ b/swig/iphone.i @@ -118,7 +118,7 @@ MobileSync* my_new_MobileSync(Lockdownd* lckd) { } void set_debug_level(int level) { - iphone_set_debug(level); + iphone_set_debug_level(level); } int init_device_by_uuid(char* uuid) { |