mirror of
https://github.com/momo5502/hypervisor.git
synced 2025-07-04 18:21:55 +00:00
Extract into library
This commit is contained in:
20
src/library/driver.hpp
Normal file
20
src/library/driver.hpp
Normal file
@ -0,0 +1,20 @@
|
||||
#pragma once
|
||||
#include "service_handle.hpp"
|
||||
|
||||
class driver
|
||||
{
|
||||
public:
|
||||
driver() = default;
|
||||
driver(const std::filesystem::path& driver_file, const std::string& service_name);
|
||||
~driver();
|
||||
|
||||
driver(const driver&) = delete;
|
||||
driver& operator=(const driver&) = delete;
|
||||
|
||||
driver(driver&& obj) noexcept = default;;
|
||||
driver& operator=(driver&& obj) noexcept = default;
|
||||
|
||||
private:
|
||||
service_handle manager_{};
|
||||
service_handle service_{};
|
||||
};
|
Reference in New Issue
Block a user