//--------------------------------------------------------------------------- // // SCSI Target Emulator RaSCSI Reloaded // for Raspberry Pi // // Copyright (C) 2022 Uwe Seimet // //--------------------------------------------------------------------------- #pragma once #include "scsi.h" #include "rascsi_interface.pb.h" #include #include #include using namespace std; using namespace filesystem; using namespace rascsi_interface; class PrimaryDevice; class MockAbstractController; shared_ptr CreateDevice(PbDeviceType, MockAbstractController&, const string& = ""); void TestInquiry(PbDeviceType, scsi_defs::device_type, scsi_defs::scsi_level, const string&, int, bool, const string& = ""); void TestDispatch(PbDeviceType); pair OpenTempFile(); path CreateTempFile(int); int GetInt16(const vector&, int); uint32_t GetInt32(const vector&, int);