From 9aa2fdef1c2b6d2292562d926f8482424c3b65fb Mon Sep 17 00:00:00 2001 From: Martin Szulecki Date: Mon, 26 Jan 2015 23:26:40 +0100 Subject: idevicedebug: Use new return attributes helper --- tools/idevicedebug.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'tools/idevicedebug.c') 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); -- cgit v1.1-32-gdbae