Skip to content

Commit c98e010

Browse files
committed
Renaming
1 parent 7fa9ca0 commit c98e010

16 files changed

+20
-20
lines changed

api/s2p_interface.proto api/target_api.proto

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//
33
// SCSI2Pi, SCSI device emulator and SCSI tools for the Raspberry Pi
44
//
5-
// Copyright (C) 2021-2024 Uwe Seimet
5+
// Copyright (C) 2021-2025 Uwe Seimet
66
//
77
//---------------------------------------------------------------------------
88

@@ -13,8 +13,8 @@
1313
// All operations accept an optional access token, specified by the "token" parameter.
1414
// All operations also accept an optional locale, specified with the "locale" parameter. If there is
1515
// a localized error message it is returned, with English being the fallback language.
16-
// This interface is backwards compatible with PiSCSI. Numbers 100 and higher are used for messages
17-
// and fields not known by PISCSI 23.11.01 and newer.
16+
// This interface is backwards compatible with PiSCSI 24.04.01. Numbers 100 and higher are used for
17+
// messages and fields not supported by PiSCSI.
1818
//
1919

2020
syntax = "proto3";

cpp/Makefile

+3-3
Original file line numberDiff line numberDiff line change
@@ -168,9 +168,9 @@ DIR_CONTROLLERS := controllers
168168
DIR_DEVICES := devices
169169
DIR_PI := pi
170170

171-
PROTO_TARGET_API := ../api/s2p_interface.proto
171+
PROTO_TARGET_API := ../api/target_api.proto
172172

173-
SRC_TARGET_API = $(GENERATED_DIR)/s2p_interface.pb.cpp
173+
SRC_TARGET_API = $(GENERATED_DIR)/target_api.pb.cpp
174174

175175
SRC_SHARED = $(shell ls -1 $(DIR_SHARED)/*.cpp | grep -v sg_)
176176
ifdef IS_LINUX
@@ -375,7 +375,7 @@ $(OBJ_TARGET_API): | $(OBJDIR)
375375

376376
$(SRC_TARGET_API): $(PROTO_TARGET_API) | $(GENERATED_DIR)
377377
protoc -I ../api --cpp_out=$(GENERATED_DIR) $(PROTO_TARGET_API)
378-
mv $(GENERATED_DIR)/s2p_interface.pb.cc $@
378+
mv $(GENERATED_DIR)/target_api.pb.cc $@
379379

380380
## Build targets:
381381
## all Buidl all executable files (default target)

cpp/base/device.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#include <spdlog/spdlog.h>
1212
#include "shared/s2p_util.h"
1313
#include "shared/s2p_version.h"
14-
#include "generated/s2p_interface.pb.h"
14+
#include "generated/target_api.pb.h"
1515

1616
using namespace spdlog;
1717
using namespace s2p_interface;

cpp/base/device_factory.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
#include <unordered_map>
1414
#include "shared/s2p_util.h"
15-
#include "generated/s2p_interface.pb.h"
15+
#include "generated/target_api.pb.h"
1616

1717
using namespace std;
1818
using namespace s2p_interface;

cpp/command/command_context.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
#include <spdlog/spdlog.h>
1212
#include "command_localizer.h"
13-
#include "generated/s2p_interface.pb.h"
13+
#include "generated/target_api.pb.h"
1414

1515
using namespace std;
1616
using namespace spdlog;

cpp/command/command_response.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#include <string>
1212
#include <unordered_set>
1313
#include <spdlog/spdlog.h>
14-
#include "generated/s2p_interface.pb.h"
14+
#include "generated/target_api.pb.h"
1515

1616
class PrimaryDevice;
1717

cpp/devices/cache.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#pragma once
1010

1111
#include "shared/s2p_defs.h"
12-
#include "generated/s2p_interface.pb.h"
12+
#include "generated/target_api.pb.h"
1313

1414
using namespace std;
1515
using namespace s2p_interface;

cpp/protobuf/protobuf_util.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#include <span>
1212
#include <unordered_map>
1313
#include <vector>
14-
#include "generated/s2p_interface.pb.h"
14+
#include "generated/target_api.pb.h"
1515

1616
using namespace std;
1717
using namespace s2p_interface;

cpp/s2p/s2p_parser.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#include <spdlog/spdlog.h>
1414
#include "controllers/controller_factory.h"
1515
#include "shared/s2p_exceptions.h"
16-
#include "generated/s2p_interface.pb.h"
16+
#include "generated/target_api.pb.h"
1717

1818
using namespace s2p_util;
1919
using namespace s2p_interface;

cpp/s2pctl/s2pctl_commands.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
#pragma once
1010

11-
#include "generated/s2p_interface.pb.h"
11+
#include "generated/target_api.pb.h"
1212

1313
using namespace std;
1414
using namespace s2p_interface;

cpp/s2pctl/s2pctl_core.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#include <string>
1212
#include <unordered_map>
1313
#include <vector>
14-
#include "generated/s2p_interface.pb.h"
14+
#include "generated/target_api.pb.h"
1515

1616
using namespace std;
1717
using namespace s2p_interface;

cpp/s2pctl/s2pctl_display.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
#pragma once
1010

11-
#include "generated/s2p_interface.pb.h"
11+
#include "generated/target_api.pb.h"
1212

1313
using namespace std;
1414
using namespace s2p_interface;

cpp/s2pproto/s2pproto_core.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
#include "buses/bus_factory.h"
1717
#include "initiator/initiator_util.h"
1818
#include "shared/s2p_exceptions.h"
19-
#include "generated/s2p_interface.pb.h"
19+
#include "generated/target_api.pb.h"
2020

2121
using namespace google::protobuf;
2222
using namespace google::protobuf::util;

cpp/s2pproto/s2pproto_executor.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#include <sstream>
1313
#include <google/protobuf/text_format.h>
1414
#include <google/protobuf/util/json_util.h>
15-
#include "generated/s2p_interface.pb.h"
15+
#include "generated/target_api.pb.h"
1616

1717
using namespace filesystem;
1818
using namespace google::protobuf;

cpp/test/s2p_parser_test.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#include "base/property_handler.h"
1111
#include "s2p/s2p_parser.h"
1212
#include "shared/s2p_exceptions.h"
13-
#include "generated/s2p_interface.pb.h"
13+
#include "generated/target_api.pb.h"
1414

1515
using namespace s2p_interface;
1616
using namespace s2p_parser;

cpp/test/test_shared.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#include "shared/scsi.h"
1414
#include "base/property_handler.h"
1515
#include "devices/storage_device.h"
16-
#include "generated/s2p_interface.pb.h"
16+
#include "generated/target_api.pb.h"
1717

1818
using namespace filesystem;
1919
using namespace s2p_interface;

0 commit comments

Comments
 (0)