diff options
| author | 2009-07-25 02:40:25 +0200 | |
|---|---|---|
| committer | 2009-07-25 02:40:25 +0200 | |
| commit | f5e9d76ebd74999512ab73f44fabba86879b1c1f (patch) | |
| tree | 9e01e1b8bda52c04c31c5334805a530403713e08 /dev/iphoneinfo.c | |
| parent | d11abfb48218a37d9c66831ebec8b0a736d5385f (diff) | |
| download | libimobiledevice-f5e9d76ebd74999512ab73f44fabba86879b1c1f.tar.gz libimobiledevice-f5e9d76ebd74999512ab73f44fabba86879b1c1f.tar.bz2 | |
Update lockdown API and introduce new error codes
Diffstat (limited to 'dev/iphoneinfo.c')
| -rw-r--r-- | dev/iphoneinfo.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/dev/iphoneinfo.c b/dev/iphoneinfo.c index 02b62d5..52d7c8a 100644 --- a/dev/iphoneinfo.c +++ b/dev/iphoneinfo.c | |||
| @@ -136,13 +136,13 @@ int main(int argc, char *argv[]) | |||
| 136 | } | 136 | } |
| 137 | } | 137 | } |
| 138 | 138 | ||
| 139 | if (IPHONE_E_SUCCESS != lockdownd_new_client(phone, &client)) { | 139 | if (LOCKDOWN_E_SUCCESS != lockdownd_client_new(phone, &client)) { |
| 140 | iphone_free_device(phone); | 140 | iphone_free_device(phone); |
| 141 | return -1; | 141 | return -1; |
| 142 | } | 142 | } |
| 143 | 143 | ||
| 144 | /* run query and output information */ | 144 | /* run query and output information */ |
| 145 | if(lockdownd_get_value(client, domain, key, &node) == IPHONE_E_SUCCESS) | 145 | if(lockdownd_get_value(client, domain, key, &node) == LOCKDOWN_E_SUCCESS) |
| 146 | { | 146 | { |
| 147 | if (plist_get_node_type(node) == PLIST_DICT) { | 147 | if (plist_get_node_type(node) == PLIST_DICT) { |
| 148 | if (plist_get_first_child(node)) | 148 | if (plist_get_first_child(node)) |
| @@ -169,7 +169,7 @@ int main(int argc, char *argv[]) | |||
| 169 | 169 | ||
| 170 | if (domain != NULL) | 170 | if (domain != NULL) |
| 171 | free(domain); | 171 | free(domain); |
| 172 | lockdownd_free_client(client); | 172 | lockdownd_client_free(client); |
| 173 | iphone_free_device(phone); | 173 | iphone_free_device(phone); |
| 174 | 174 | ||
| 175 | return 0; | 175 | return 0; |
