blob: d43a573b9647efdad2b4c53ed4ddd319f4db524a [file] [log] [blame]
// 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 LIBEC_GET_FEATURES_COMMAND_H_
#define LIBEC_GET_FEATURES_COMMAND_H_
#include <brillo/brillo_export.h>
#include "libec/ec_command.h"
namespace ec {
class BRILLO_EXPORT GetFeaturesCommand
: public EcCommand<EmptyParam, struct ec_response_get_features> {
public:
GetFeaturesCommand();
~GetFeaturesCommand() override = default;
bool IsFeatureSupported(enum ec_feature_code code) const;
};
static_assert(!std::is_copy_constructible<GetFeaturesCommand>::value,
"EcCommands are not copyable by default");
static_assert(!std::is_copy_assignable<GetFeaturesCommand>::value,
"EcCommands are not copy-assignable by default");
} // namespace ec
#endif // LIBEC_GET_FEATURES_COMMAND_H_