2022-12-03 04:20:27 +00:00
|
|
|
//---------------------------------------------------------------------------
|
|
|
|
//
|
2022-12-05 17:58:23 +00:00
|
|
|
// SCSI Target Emulator PiSCSI
|
2022-12-03 04:20:27 +00:00
|
|
|
// for Raspberry Pi
|
|
|
|
//
|
|
|
|
// Copyright (C) 2022 Uwe Seimet
|
|
|
|
// Copyright (C) 2022 akuker
|
|
|
|
//
|
|
|
|
//---------------------------------------------------------------------------
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <map>
|
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
using namespace std;
|
|
|
|
|
|
|
|
class ScsiLoop
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
ScsiLoop() = default;
|
|
|
|
~ScsiLoop() = default;
|
|
|
|
|
|
|
|
int run(const vector<char *> &args);
|
|
|
|
|
|
|
|
private:
|
|
|
|
void Banner(const vector<char *> &) const;
|
|
|
|
static void TerminationHandler(int signum);
|
|
|
|
bool ParseArgument(const vector<char *> &);
|
|
|
|
bool SetLogLevel(const string &);
|
|
|
|
};
|