mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 09:51:57 -05:00
Kernel: Mark USBTransfer's constructor as private
We have a try_create method for that.
This commit is contained in:
parent
21c5c4026b
commit
b03b7f806a
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue