blob: e6cfdc82f6c7e7cac63d7d2d1e80a0270ba06dfa [file] [log] [blame]
// Copyright 2018 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.
#ifndef SRC_VIRTUALIZATION_BIN_GUEST_MANAGER_GUEST_SERVICES_H_
#define SRC_VIRTUALIZATION_BIN_GUEST_MANAGER_GUEST_SERVICES_H_
#include <fuchsia/sys/cpp/fidl.h>
#include <fuchsia/virtualization/vmm/cpp/fidl.h>
#include <lib/svc/cpp/service_provider_bridge.h>
#include "src/virtualization/bin/guest_manager/guest_vsock_endpoint.h"
class GuestServices : public fuchsia::virtualization::vmm::LaunchInfoProvider {
public:
GuestServices(fuchsia::virtualization::LaunchInfo launch_info);
fuchsia::sys::ServiceListPtr ServeDirectory();
private:
// |fuchsia::virtualization::vmm::LaunchInfoProvider|
void GetLaunchInfo(GetLaunchInfoCallback callback) override;
component::ServiceProviderBridge services_;
fidl::Binding<fuchsia::virtualization::vmm::LaunchInfoProvider> binding_{this};
fuchsia::virtualization::LaunchInfo launch_info_;
};
#endif // SRC_VIRTUALIZATION_BIN_GUEST_MANAGER_GUEST_SERVICES_H_