mirror of
https://github.com/akuker/RASCSI.git
synced 2024-06-01 04:41:38 +00:00
ec31198d83
* Added authentication by access token * No authentication is required for getting the rascsi version * Added comment * Interface description update * Manpage update * Added error code * Enum value update (backwards compatible) * Error code update * Error code update * Added CHECK_AUTHENTICATION * Comment update * VERSION_INFO also requires authentication * rasctl: Made token an optional parameter for -P * Fixed interface comment
57 lines
1.3 KiB
C++
57 lines
1.3 KiB
C++
//---------------------------------------------------------------------------
|
|
//
|
|
// 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, const string&);
|
|
~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();
|
|
|
|
private:
|
|
|
|
PbCommand command;
|
|
string hostname;
|
|
int port;
|
|
string token;
|
|
|
|
PbResult result;
|
|
|
|
RasctlDisplay rasctl_display;
|
|
};
|