mirror of
https://github.com/akuker/RASCSI.git
synced 2024-11-25 20:33:35 +00:00
08194af424
- Moved C++ code to cpp/ from src/raspberrypi - Related updates to Makefile, easyinstall.sh, and the github build rules - Removed the native X68k C code in src/x68k from the repo
31 lines
911 B
C++
31 lines
911 B
C++
//---------------------------------------------------------------------------
|
|
//
|
|
// SCSI Target Emulator RaSCSI Reloaded
|
|
// for Raspberry Pi
|
|
//
|
|
// Copyright (C) 2021-2022 Uwe Seimet
|
|
//
|
|
// Helper methods for setting up/evaluating protobuf messages
|
|
//
|
|
//---------------------------------------------------------------------------
|
|
|
|
#pragma once
|
|
|
|
#include "google/protobuf/message.h"
|
|
#include "rascsi_interface.pb.h"
|
|
#include <string>
|
|
|
|
using namespace std;
|
|
using namespace rascsi_interface;
|
|
|
|
namespace protobuf_util
|
|
{
|
|
void ParseParameters(PbDeviceDefinition&, const string&);
|
|
string GetParam(const PbCommand&, const string&);
|
|
string GetParam(const PbDeviceDefinition&, const string&);
|
|
void SetParam(PbCommand&, const string&, string_view);
|
|
void SetParam(PbDevice&, const string&, string_view);
|
|
void SetParam(PbDeviceDefinition&, const string&, string_view);
|
|
void SetPatternParams(PbCommand&, string_view);
|
|
}
|