[mammoth] Move EndpointClient to move-only semantics.
This commit is contained in:
parent
2e89aee5a3
commit
90f33f31c5
15 changed files with 44 additions and 30 deletions
|
|
@ -6,12 +6,13 @@
|
|||
|
||||
class DenaliClient {
|
||||
public:
|
||||
DenaliClient(const EndpointClient& endpoint) : endpoint_(endpoint) {}
|
||||
DenaliClient(glcr::UniquePtr<EndpointClient> endpoint)
|
||||
: endpoint_(glcr::Move(endpoint)) {}
|
||||
|
||||
glcr::ErrorOr<MappedMemoryRegion> ReadSectors(uint64_t device_id,
|
||||
uint64_t lba,
|
||||
uint64_t num_sectors);
|
||||
|
||||
private:
|
||||
EndpointClient endpoint_;
|
||||
glcr::UniquePtr<EndpointClient> endpoint_;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue