blob: 42ff272a930c9422d62e4398fd9b3eada8756d7f [file] [log] [blame]
// Copyright 2021 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_DEVICES_LIB_BIND_FFI_BINDINGS_H_
#define SRC_DEVICES_LIB_BIND_FFI_BINDINGS_H_
struct device_property_t {
uint32_t key;
uint32_t value;
};
extern "C" {
bool match_bind_rules(const uint8_t *bytecode, size_t bytecode_sz,
const device_property_t *properties, size_t properties_sz,
uint8_t protocol_id, bool autobind);
}
#endif // SRC_DEVICES_LIB_BIND_FFI_BINDINGS_H_