blob: c52ec5f4b369d56b4564a254701b54b88c23d3ec [file] [log] [blame]
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <string>
#include "base/files/file_path.h"
namespace itunes {
// Extracts the library XML location from the iTunes preferences XML data.
// Return the path the the library XML location if found. The minimal
// valid snippet of XML is:
// <plist>
// <dict>
// <key>User Preferences</key>
// <dict>
// <key>iTunes Library XML Location:1</key>
// <data>Base64 encoded w string path</data>
// </dict>
// </dict>
// </plist>
base::FilePath::StringType FindLibraryLocationInPrefXml(
const std::string& pref_xml_data);
} // namespace itunes