From ab0326236c58f236d4300bacbf701e1562c4be6c Mon Sep 17 00:00:00 2001 From: "c.lamboo" Date: Tue, 26 Sep 2023 21:11:10 +0200 Subject: [PATCH] Use renamed dialect generate slot CURA-11082 --- include/plugins/converters.h | 8 ++++---- include/plugins/slots.h | 3 ++- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/include/plugins/converters.h b/include/plugins/converters.h index ad4b1f8bca..12401a237b 100644 --- a/include/plugins/converters.h +++ b/include/plugins/converters.h @@ -8,8 +8,8 @@ #include "WallToolPaths.h" #include "cura/plugins/slots/broadcast/v0/broadcast.grpc.pb.h" #include "cura/plugins/slots/broadcast/v0/broadcast.pb.h" -#include "cura/plugins/slots/dialect/v0/modify.grpc.pb.h" -#include "cura/plugins/slots/dialect/v0/modify.pb.h" +#include "cura/plugins/slots/dialect/v0/generate.grpc.pb.h" +#include "cura/plugins/slots/dialect/v0/generate.pb.h" #include "cura/plugins/slots/gcode_paths/v0/modify.grpc.pb.h" #include "cura/plugins/slots/gcode_paths/v0/modify.pb.h" #include "cura/plugins/slots/handshake/v0/handshake.grpc.pb.h" @@ -102,12 +102,12 @@ struct postprocess_response : public details::converter +struct dialect_generate_request : public details::converter { value_type operator()(const native_value_type& gcode) const; }; -struct dialect_generate_response : public details::converter +struct dialect_generate_response : public details::converter { native_value_type operator()([[maybe_unused]] const value_type& message) const; }; diff --git a/include/plugins/slots.h b/include/plugins/slots.h index 32a5db2794..3383fc118e 100644 --- a/include/plugins/slots.h +++ b/include/plugins/slots.h @@ -10,6 +10,7 @@ #include "cura/plugins/slots/infill/v0/generate.grpc.pb.h" #include "cura/plugins/slots/postprocess/v0/modify.grpc.pb.h" #include "cura/plugins/slots/simplify/v0/modify.grpc.pb.h" +#include "cura/plugins/slots/dialect/v0/generate.grpc.pb.h" #include "cura/plugins/v0/slot_id.pb.h" #include "infill.h" #include "plugins/converters.h" @@ -124,7 +125,7 @@ template using slot_dialect_generate_ = SlotProxy< v0::SlotID::DIALECT_GENERATE, "0.1.0-alpha", - slots::dialect::v0::modify::DialectModifyService::Stub, + slots::dialect::v0::generate::DialectGenerateService::Stub, Validator, dialect_generate_request, dialect_generate_response,