2022-11-02 22:41:45 +00:00
|
|
|
//---------------------------------------------------------------------------
|
|
|
|
//
|
2022-12-05 17:58:23 +00:00
|
|
|
// SCSI Target Emulator PiSCSI
|
2022-11-02 22:41:45 +00:00
|
|
|
// for Raspberry Pi
|
|
|
|
//
|
2023-11-26 04:13:26 +00:00
|
|
|
// Copyright (C) 2022 Uwe Seimet
|
2022-11-02 22:41:45 +00:00
|
|
|
//
|
|
|
|
//---------------------------------------------------------------------------
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2022-12-05 17:58:23 +00:00
|
|
|
#include "generated/piscsi_interface.pb.h"
|
2022-11-02 22:41:45 +00:00
|
|
|
#include <vector>
|
2022-11-11 20:08:48 +00:00
|
|
|
#include <string>
|
2022-11-02 22:41:45 +00:00
|
|
|
|
|
|
|
using namespace std;
|
2022-12-05 17:58:23 +00:00
|
|
|
using namespace piscsi_interface;
|
2022-11-02 22:41:45 +00:00
|
|
|
|
2022-12-05 17:58:23 +00:00
|
|
|
class ScsiCtl
|
2022-11-02 22:41:45 +00:00
|
|
|
{
|
2022-11-10 06:44:06 +00:00
|
|
|
public:
|
2022-11-02 22:41:45 +00:00
|
|
|
|
2022-12-05 17:58:23 +00:00
|
|
|
ScsiCtl() = default;
|
|
|
|
~ScsiCtl() = default;
|
2022-11-02 22:41:45 +00:00
|
|
|
|
|
|
|
int run(const vector<char *>&) const;
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
|
|
void Banner(const vector<char *>&) const;
|
|
|
|
};
|