IOS: Change devices to always return IPCCommandResult

This commit changes devices to always return IPCCommandResult rather
than just a return code for Open() and Close() in order to be able
to better emulate reply timing.

In hindsight, I should have considered we would want to emulate
timing when I cleaned up the device interface, but alas.
This rectifies that mistake.
This commit is contained in:
Léo Lam
2018-02-27 20:48:57 +01:00
parent 9282be1058
commit 80b1bf13c2
30 changed files with 68 additions and 79 deletions

View File

@ -21,7 +21,7 @@ class Stub final : public Device
public:
// Inherit the constructor from the Device class, since we don't need to do anything special.
using Device::Device;
ReturnCode Open(const OpenRequest& request) override;
IPCCommandResult Open(const OpenRequest& request) override;
IPCCommandResult IOCtl(const IOCtlRequest& request) override;
IPCCommandResult IOCtlV(const IOCtlVRequest& request) override;
};