summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2015-01-26 23:26:40 +0100
committerGravatar Martin Szulecki2015-01-27 22:01:23 +0100
commit9aa2fdef1c2b6d2292562d926f8482424c3b65fb (patch)
tree64e9d9efa3b6adcd0ef33952450032f1c09b92cf
parent148e8b96d848a33f197378e9dd183ab22c005222 (diff)
downloadlibimobiledevice-9aa2fdef1c2b6d2292562d926f8482424c3b65fb.tar.gz
libimobiledevice-9aa2fdef1c2b6d2292562d926f8482424c3b65fb.tar.bz2
idevicedebug: Use new return attributes helper
-rw-r--r--tools/idevicedebug.c8
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
63 instproxy_client_options_add(client_opts, "ApplicationType", "Any", NULL); 63 instproxy_client_options_add(client_opts, "ApplicationType", "Any", NULL);
64 64
65 // only return attributes we need 65 // only return attributes we need
66 plist_t return_attributes = plist_new_array(); 66 instproxy_client_options_set_return_attributes(client_opts, "CFBundleIdentifier", "CFBundleExecutable", key, NULL);
67 plist_array_append_item(return_attributes, plist_new_string("CFBundleIdentifier"));
68 plist_array_append_item(return_attributes, plist_new_string("CFBundleExecutable"));
69 plist_array_append_item(return_attributes, plist_new_string(key));
70 instproxy_client_options_add(client_opts, "ReturnAttributes", return_attributes, NULL);
71 plist_free(return_attributes);
72 return_attributes = NULL;
73 67
74 // query device for list of apps 68 // query device for list of apps
75 instproxy_error_t ierr = instproxy_browse(client, client_opts, &apps); 69 instproxy_error_t ierr = instproxy_browse(client, client_opts, &apps);