Gwendal Grignou | 9fad7e4 | 2025-01-10 08:37:44 | [diff] [blame] | 1 | // Copyright 2025 The ChromiumOS Authors |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #ifndef LIBMEMS_IIO_CONTEXT_FACTORY_H_ |
| 6 | #define LIBMEMS_IIO_CONTEXT_FACTORY_H_ |
| 7 | |
| 8 | #include <memory> |
| 9 | |
| 10 | #include "libmems/export.h" |
| 11 | #include "libmems/iio_context.h" |
| 12 | |
| 13 | namespace libmems { |
| 14 | |
| 15 | class LIBMEMS_EXPORT IioContextFactory { |
| 16 | public: |
| 17 | IioContextFactory(); |
| 18 | virtual ~IioContextFactory() = default; |
| 19 | |
| 20 | virtual std::unique_ptr<IioContext> Generate(); |
| 21 | }; |
| 22 | |
| 23 | } // namespace libmems |
| 24 | |
| 25 | #endif // LIBMEMS_IIO_CONTEXT_FACTORY_H_ |