| // Copyright 2022 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 FUCHSIA_SDK_EXAMPLES_CC_COMPOSITE_SAMPLE_H_ |
| #define FUCHSIA_SDK_EXAMPLES_CC_COMPOSITE_SAMPLE_H_ |
| |
| #include <lib/driver2/driver2_cpp.h> |
| |
| namespace composite_sample { |
| |
| class CompositeSampleDriver : public driver::DriverBase { |
| public: |
| CompositeSampleDriver(driver::DriverStartArgs start_args, |
| fdf::UnownedDispatcher driver_dispatcher) |
| : driver::DriverBase("composite-sample", std::move(start_args), |
| std::move(driver_dispatcher)) {} |
| |
| virtual ~CompositeSampleDriver() = default; |
| |
| zx::result<> Start() override; |
| |
| private: |
| zx::result<> PrintTopologicalPath(std::string_view name); |
| }; |
| |
| } // namespace composite_sample |
| |
| #endif // FUCHSIA_SDK_EXAMPLES_CC_COMPOSITE_SAMPLE_H_ |