blob: 42ba9c1bd6d7266acf25d7962c249ef4ada28704 [file] [log] [blame]
// Copyright 2019 The Fuchsia 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 <lib/async-loop/cpp/loop.h>
#include <lib/async-loop/default.h>
#include "src/camera/camera_manager2/camera_manager_app.h"
#include "src/lib/syslog/cpp/logger.h"
int main() {
syslog::SetTags({"camera_manager"});
async::Loop loop(&kAsyncLoopConfigAttachToCurrentThread);
auto context = sys::ComponentContext::Create();
auto app = camera::CameraManagerApp::Create(std::move(context));
if (app) {
loop.Run();
}
return 0;
}