blob: 25a8cc65c2eb79d8d8d7a6120ed8d841922337d2 [file] [log] [blame]
/*
* Copyright (C) 2017 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <iostream>
#include <vintf/parse_xml.h>
#include <vintf/parse_string.h>
#include <vintf/VintfObject.h>
int main(int, char **) {
using namespace ::android::vintf;
const HalManifest *vm = VintfObject::GetDeviceHalManifest();
if (vm != nullptr)
std::cout << gHalManifestConverter(*vm);
const HalManifest *fm = VintfObject::GetFrameworkHalManifest();
if (fm != nullptr)
std::cout << gHalManifestConverter(*fm);
std::cout << std::endl;
const RuntimeInfo *ki = VintfObject::GetRuntimeInfo();
if (ki != nullptr)
std::cout << dump(*ki);
std::cout << std::endl;
}