diff options
author | Martin Szulecki | 2015-01-26 23:26:40 +0100 |
---|---|---|
committer | Martin Szulecki | 2015-01-27 22:01:23 +0100 |
commit | 9aa2fdef1c2b6d2292562d926f8482424c3b65fb (patch) | |
tree | 64e9d9efa3b6adcd0ef33952450032f1c09b92cf /tools | |
parent | 148e8b96d848a33f197378e9dd183ab22c005222 (diff) | |
download | libimobiledevice-9aa2fdef1c2b6d2292562d926f8482424c3b65fb.tar.gz libimobiledevice-9aa2fdef1c2b6d2292562d926f8482424c3b65fb.tar.bz2 |
idevicedebug: Use new return attributes helper
Diffstat (limited to 'tools')
-rw-r--r-- | tools/idevicedebug.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/tools/idevicedebug.c b/tools/idevicedebug.c index 1d49e07..c9648d0 100644 --- a/tools/idevicedebug.c +++ b/tools/idevicedebug.c @@ -63,13 +63,7 @@ static instproxy_error_t instproxy_client_get_object_by_key_from_info_directiona instproxy_client_options_add(client_opts, "ApplicationType", "Any", NULL); // only return attributes we need - plist_t return_attributes = plist_new_array(); - plist_array_append_item(return_attributes, plist_new_string("CFBundleIdentifier")); - plist_array_append_item(return_attributes, plist_new_string("CFBundleExecutable")); - plist_array_append_item(return_attributes, plist_new_string(key)); - instproxy_client_options_add(client_opts, "ReturnAttributes", return_attributes, NULL); - plist_free(return_attributes); - return_attributes = NULL; + instproxy_client_options_set_return_attributes(client_opts, "CFBundleIdentifier", "CFBundleExecutable", key, NULL); // query device for list of apps instproxy_error_t ierr = instproxy_browse(client, client_opts, &apps); |