diff options
| author | 2008-10-17 22:58:50 -0700 | |
|---|---|---|
| committer | 2008-10-25 14:51:23 +0200 | |
| commit | bbd813da84c1ff8484bbd3eb7f575775271424da (patch) | |
| tree | 6ce51f659e09d45646f393d04eb13adeac8aed8f /src/main.c | |
| parent | 37fff2713545f7d660097842acfeb67e6eb5026c (diff) | |
| download | libimobiledevice-bbd813da84c1ff8484bbd3eb7f575775271424da.tar.gz libimobiledevice-bbd813da84c1ff8484bbd3eb7f575775271424da.tar.bz2 | |
Change iphone_debug to be an API call
Change the iphone_debug to use the new API
Diffstat (limited to 'src/main.c')
| -rw-r--r-- | src/main.c | 5 |
1 files changed, 2 insertions, 3 deletions
| @@ -32,7 +32,6 @@ | |||
| 32 | 32 | ||
| 33 | #include <libiphone/libiphone.h> | 33 | #include <libiphone/libiphone.h> |
| 34 | 34 | ||
| 35 | int debug = 1; | ||
| 36 | 35 | ||
| 37 | int main(int argc, char *argv[]) | 36 | int main(int argc, char *argv[]) |
| 38 | { | 37 | { |
| @@ -41,9 +40,9 @@ int main(int argc, char *argv[]) | |||
| 41 | iphone_device_t phone = NULL; | 40 | iphone_device_t phone = NULL; |
| 42 | 41 | ||
| 43 | if (argc > 1 && !strcasecmp(argv[1], "--debug")) { | 42 | if (argc > 1 && !strcasecmp(argv[1], "--debug")) { |
| 44 | debug = 1; | 43 | iphone_set_debug(1); |
| 45 | } else { | 44 | } else { |
| 46 | debug = 0; | 45 | iphone_set_debug(0); |
| 47 | } | 46 | } |
| 48 | 47 | ||
| 49 | if (IPHONE_E_SUCCESS != iphone_get_device(&phone)) { | 48 | if (IPHONE_E_SUCCESS != iphone_get_device(&phone)) { |
