| // 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; |
| } |