mirror of
https://github.com/akuker/RASCSI.git
synced 2025-01-08 18:30:55 +00:00
a30438279e
* Moved rasctl/rascsi core code to folders * Improved granularity in order to add more unit tests * Pointer handling update * Updated ID and controller handling * Updated memory management * Added unit tests * Fixed SonarCloud issues
30 lines
865 B
C++
30 lines
865 B
C++
//---------------------------------------------------------------------------
|
|
//
|
|
// SCSI Target Emulator RaSCSI Reloaded
|
|
// for Raspberry Pi
|
|
//
|
|
// Copyright (C) 2021-2022 Uwe Seimet
|
|
//
|
|
// Helper methods for serializing/deserializing protobuf messages
|
|
//
|
|
//---------------------------------------------------------------------------
|
|
|
|
#pragma once
|
|
|
|
#include "google/protobuf/message.h"
|
|
#include "rascsi_interface.pb.h"
|
|
#include <string>
|
|
|
|
using namespace std;
|
|
using namespace rascsi_interface;
|
|
|
|
namespace command_util
|
|
{
|
|
void ParseParameters(PbDeviceDefinition&, const string&);
|
|
string GetParam(const PbCommand&, const string&);
|
|
string GetParam(const PbDeviceDefinition&, const string&);
|
|
void AddParam(PbCommand&, const string&, string_view);
|
|
void AddParam(PbDevice&, const string&, string_view);
|
|
void AddParam(PbDeviceDefinition&, const string&, string_view);
|
|
}
|