Kernel: Mark USBTransfer's constructor as private

We have a try_create method for that.
This commit is contained in:
Hendiadyoin1 2021-12-08 13:51:09 +01:00 committed by Brian Gianforcaro
parent 21c5c4026b
commit b03b7f806a

View file

@ -21,9 +21,7 @@ class Transfer : public RefCounted<Transfer> {
public:
static ErrorOr<NonnullRefPtr<Transfer>> try_create(Pipe&, u16 length);
public:
Transfer() = delete;
Transfer(Pipe& pipe, u16 len, NonnullOwnPtr<Memory::Region>);
~Transfer();
void set_setup_packet(const USBRequestData& request);
@ -41,6 +39,7 @@ public:
bool error_occurred() const { return m_error_occurred; }
private:
Transfer(Pipe& pipe, u16 len, NonnullOwnPtr<Memory::Region>);
Pipe& m_pipe; // Pipe that initiated this transfer
USBRequestData m_request; // USB request
NonnullOwnPtr<Memory::Region> m_data_buffer; // DMA Data buffer for transaction