1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-16 00:00:02 +01:00

add driver interface

Signed-off-by: Pascal Bauer <pascal.bauer@rwth-aachen.de>
This commit is contained in:
Pascal Bauer 2024-08-24 12:36:12 +02:00
parent babe80f53e
commit d312e377bb

View file

@ -0,0 +1,28 @@
/* Driver
*
* Author: Pascal Bauer <pascal.bauer@rwth-aachen.de>
*
* SPDX-FileCopyrightText: 2023-2024 Pascal Bauer <pascal.bauer@rwth-aachen.de>
* SPDX-License-Identifier: Apache-2.0
*/
#pragma once
namespace villas {
namespace kernel {
namespace devices {
class Device;
class Driver {
public:
virtual void attach(const Device &device) const = 0;
virtual void bind(const Device &device) const = 0;
virtual std::string name() const = 0;
virtual void override(const Device &device) const = 0;
virtual void unbind(const Device &device) const = 0;
};
} // namespace devices
} // namespace kernel
} // namespace villas