2021-10-06 21:25:43 +00:00
|
|
|
//---------------------------------------------------------------------------
|
|
|
|
//
|
|
|
|
// SCSI Target Emulator RaSCSI (*^..^*)
|
|
|
|
// for Raspberry Pi
|
|
|
|
//
|
|
|
|
// Copyright (C) 2021 Uwe Seimet
|
|
|
|
//
|
|
|
|
//---------------------------------------------------------------------------
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "rascsi_interface.pb.h"
|
|
|
|
#include "rasctl_display.h"
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
using namespace std;
|
|
|
|
using namespace rascsi_interface;
|
|
|
|
|
|
|
|
class RasctlCommands
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
|
|
|
|
RasctlCommands(PbCommand&, const string&, int);
|
|
|
|
~RasctlCommands() {};
|
|
|
|
|
|
|
|
void SendCommand();
|
|
|
|
void CommandDevicesInfo();
|
|
|
|
void CommandLogLevel(const string&);
|
|
|
|
void CommandReserveIds(const string&);
|
|
|
|
void CommandCreateImage(const string&);
|
|
|
|
void CommandDeleteImage(const string&);
|
|
|
|
void CommandRenameImage(const string&);
|
|
|
|
void CommandCopyImage(const string&);
|
|
|
|
void CommandDefaultImageFolder(const string&);
|
|
|
|
void CommandDeviceInfo();
|
|
|
|
void CommandDeviceTypesInfo();
|
|
|
|
void CommandVersionInfo();
|
|
|
|
void CommandServerInfo();
|
|
|
|
void CommandDefaultImageFilesInfo();
|
|
|
|
void CommandImageFileInfo(const string&);
|
|
|
|
void CommandNetworkInterfacesInfo();
|
|
|
|
void CommandLogLevelInfo();
|
|
|
|
void CommandReservedIdsInfo();
|
|
|
|
void CommandMappingInfo();
|
2021-12-17 16:53:11 +00:00
|
|
|
void CommandOperationInfo();
|
2021-10-06 21:25:43 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
|
|
PbCommand command;
|
|
|
|
string hostname;
|
|
|
|
int port;
|
|
|
|
|
|
|
|
PbResult result;
|
|
|
|
|
|
|
|
RasctlDisplay rasctl_display;
|
|
|
|
};
|