| // Copyright 2023 The ChromiumOS Authors |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #ifndef LIBSEGMENTATION_FEATURE_MANAGEMENT_INTERFACE_H_ |
| #define LIBSEGMENTATION_FEATURE_MANAGEMENT_INTERFACE_H_ |
| |
| #include <string> |
| |
| namespace segmentation { |
| |
| class FeatureManagementInterface { |
| public: |
| virtual ~FeatureManagementInterface() = default; |
| |
| // Check if a feature can be enabled on the device. |
| // |
| // @param name The name of the feature to check |
| // @return |false| if the feature should not be used, |true| otherwise. |
| virtual bool IsFeatureEnabled(const std::string& name) const = 0; |
| |
| // Return the feature level for the device |
| // |
| // @return 0 when no additional features can be used, |
| // >0 when some feature can be used. |
| virtual int GetFeatureLevel() const = 0; |
| }; |
| |
| } // namespace segmentation |
| |
| #endif // LIBSEGMENTATION_FEATURE_MANAGEMENT_INTERFACE_H_ |